Problem pyton PIL
Ned Deily
nad at acm.org
Tue Apr 15 12:00:12 PDT 2014
In article <EEF83644-0C87-444D-855E-9BE25EE72B32 at macports.org>,
Ryan Schmidt <ryandesign at macports.org> wrote:
> 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-packa
> > ges/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-packag
> > es/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.
/Library/Frameworks/Python.framework is the installation location for
the Pythons provided by python.org binary installers. They will happily
co-exist with MacPorts- and Apple-provided Pythons. That said, 2.7.0 is
quite old, so consider upgrading it or deleting it if you are now just
going to be using a MacPorts-based Python 2.7.
--
Ned Deily,
nad at acm.org
More information about the macports-users
mailing list