On 8/26/11 8:19 AM, Ingo Randolf wrote:
another attempt to make PIL run with python3.2 on osx 10.6.7

I found an unofficial release of PIL for py3.2:
https://github.com/sloonz/pil-py3k/tree/a75c372ed17b3d06c0d58c1db03c9215da9c4bbb

it compiles and installs fine with python3.2

when i want to open an image i get:
IOError: cannot identify image file

IIRC, PIL comes with some test code that you can run that tests the C directly, outside of Python --have you tried that? It may give you some hints.

Other than that, you are in uncharted waters -- I'd try asking the author of that port. Otherwise, it seems unlikely that we will have a robust PIL on 3.* until Fredrik gets directly involved :-(

-Chris




with any type of image...

compiling PIL says:
--- TKINTER support ok
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok
--- FREETYPE2 support ok


i do:
from PIL import Image
im = Image.open("path/to/my/image.jpg")

i am on: osx 10.6.7

what am i doing wrong?


please help.
thanks
ingo


Am 23.08.2011 um 14:29 schrieb Ingo Randolf:

hi all.

i had a look into porting PIL for use with python 3.2

well, it does compile now (osx 10.6), i can import PIL in python3.2, but when i 
try to load an image i get this traceback:

Traceback (most recent call last):
  File "<stdin>", line 1, in<module>
  File 
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/PIL/Image.py",
 line 1983, in open
    raise IOError("cannot identify image file")
IOError: cannot identify image file

this happens with any image-kind...

i am new to python, and to PIL... so i have no idea why this happens...

it would be great if PIL would be able to be used with python3.2!

maybe somebody more skilled than me can make it run?

here is the modified version:
http://www.bildstrom.at/dl/Imaging-1.1.7_3.2.zip

ingo



Am 09.08.2011 um 18:18 schrieb Ingo Randolf:

hello.

i want to use PIL with python 3.2.
Any ideas when PIL will be available for python32?

thanks
ingo
_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig


--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

chris.bar...@noaa.gov
_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to