On Tue, Sep 4, 2012 at 1:11 PM, viper <[email protected]> wrote:
> Now this line in the shader wrapper: src = (c_char_p * count)(*strings)
> is causing this error: TypeError: bytes or integer address expected instead
> of str instance
> I think python 3 may not like this. I googled around and got reference to
> making something a byte perhaps, but I'm clearly out of my depth here.
> If you have any suggestions I'd be pleased to try them out.

Probably because python 3 strings are unicode by default. You can try
str.encode() or bytes() to convert it to bytes?

http://docs.python.org/release/3.0.1/whatsnew/3.0.html#text-vs-data-instead-of-unicode-vs-8-bit

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to