Re: PIL on Python 3?

Fredrik Lundh <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>
2010/12/18 Rohan Pai <[email protected]>:
> The current version of PIL I installed is version 1.1.7 for Python 2.6, and
> when I try to run it on Python 3, it doesn't work. I know the syntaxes like
> print "Hello World" and raw_input() are actually print ("Hello World") and
> input(). I don't know the other syntaxes that have changed, but if you can't
> figure them out either, then you should try using lib2to3 to convert PIL's
> Python 2 code to Python 3 code.

Well, it's a bit harder than that: PIL depends heavily on binary
string processing, which is one of the things that has undergone big
changes in Python 3.  There are a few manual ports out there, and I
just submitted a bunch of changes to trunk that make PIL's Python code
build and install cleanly under 2.3-3.2 (even if the functionality
under 3.X is rather limited at this point...).

</F>
_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.