Problem pyton PIL

Spinxer spinxer at wolke7.net
Tue Apr 15 06:00:12 PDT 2014


Hi!

I finally managed to install ImageMagick and Python PIL. At least I 
thought so.

But when I do:

$ python
Python 2.7 (r27:82508, Jul  3 2010, 21:12:11)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> from PIL import Image

I get this error message:

Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/Image.py", 
line 53, in <module>
     from PIL import _imaging as core
ImportError: 
dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/_imaging.so, 
2): Symbol not found: _jpeg_resync_to_restart
   Referenced from: 
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/_imaging.so
   Expected in: dynamic lookup

I have virtually no experience with MacPorts nor with Python. I just 
wanted to use a pythonscript which requires the image library. But that 
gives:

ImportError: No module named Image

Is here anyone who can give advice?

I'm using OS X 10.5.8, MacPorts 2.2.1 and already did a ports selfupdate




More information about the macports-users mailing list