pyglet.image.load(fname, decoder=PNGImageDecoder()) works but is super slow.

On 7 January 2014 15:33, Luke Miller <[email protected]> wrote:
> Hi,
>
> On MacOS 10.5, using python 3.4 and the latest pyglet (pip3 install of
> 1.2 tip) this line throws an error:
>
> image = pyglet.image.load(filename)
>
> I believe related to python3 string handling and the MacOS quicktime
> PNG decoder:
>
>   File 
> "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyglet/image/__init__.py",
> line 194, in load
>     image = decoder.decode(file, myF)
>   File 
> "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyglet/image/codecs/quicktime.py",
> line 151, in decode
>     dataref = self._get_data_ref(file, filename)
>   File 
> "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyglet/image/codecs/quicktime.py",
> line 123, in _get_data_ref
>     self._filename_hold = filename = Str255(filename)
>   File 
> "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyglet/image/codecs/quicktime.py",
> line 96, in Str255
>     return create_string_buffer(chr(len(value)) + value)
>   File 
> "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/ctypes/__init__.py",
> line 57, in create_string_buffer
>     buf.value = init
> TypeError: bytes expected instead of str instance

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to