Hi David,
thanks a lot for your reply ... but ...
On Mon, 30 Mar 2015, David Barton wrote:
Hi,
I think the problem is that Python 3 now distinguishes between strings
(unicode) and binary strings (not unicode?). Try using
img_string = b"\77\77\77\33\177\177\177\44\277\277\277\55\377\0\0\66" + \
b"\0\377\0\77\0\01\37\0"
Note the extra "b" before the leading quotes. This problem comes up in quite
a few places with Python 3 that I've been encountering recently, not just
with PyX.
I've not tested this but hopefully it works!
... the problem persists for me
(actually, in my original usage scenario, the image
comes via the python image library and it seems that the RGBA
with the "A" is problematic, while an example with just RGB works fine).
Best, Arnd
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user