Wow! That fixed it! (I had already changed 'basestring' missing from Python 3 to 'str'). Huge thanks Greg.
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avg.com <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> On Wed, 22 Apr 2020 at 06:02, Greg Ewing <greg.ew...@canterbury.ac.nz> wrote: > On 22/04/20 12:31 am, Nicky Mac wrote: > > src = (c_char_p * count)(*strings) > > TypeError: bytes or integer address expected instead of str instance > > It looks like this was designed for Python 2. You may > need to encode the strings to bytes, e.g. > > src_bytes = [s.encode() for s in strings] > src = (c_char_p * count)(*src_bytes) > > -- > Greg > > -- > You received this message because you are subscribed to the Google Groups > "pyglet-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pyglet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pyglet-users/0db03378-8d12-8b58-9257-b146a536d0b9%40canterbury.ac.nz > . > -- Nick "Mac" McElwaine -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyglet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pyglet-users/CAKafoGDVT-eMD%3D9BLk8jK8GjEB%2B_UpC6%2BRdRk_viAdtyZj7uWQ%40mail.gmail.com.