Problem pyton PIL

Ryan Schmidt ryandesign at macports.org
Tue Apr 15 10:10:59 PDT 2014


On Apr 15, 2014, at 08:00, Spinxer wrote:

> 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

Where did /Library/Frameworks/Python.framework come from? It’s not provided by Apple, nor any MacPorts port, and will likely interfere with things you want to install using MacPorts. I recommend you remove it.




More information about the macports-users mailing list