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.

Reply via email to