Note that there are some explanatory texts on larger screens.

plurals
  1. POInstalling PIL on Snow Leopard -- NOTHING WORKS
    text
    copied!<p>I'm trying to install PIL on Snow Leopard, using Python 2.6.1, GCC 4.2.1, PIL 1.1.7, and have tried with both libjpeg6b and libjpeg7 -- nothing works. I've cleared out every trace of libjpeg/pil/zlib from fink, tried various compiler options, etc. and used <a href="http://jetfar.com/libjpeg-and-python-imaging-pil-on-snow-leopard/" rel="nofollow noreferrer">http://jetfar.com/libjpeg-and-python-imaging-pil-on-snow-leopard/</a> and http:// www.brambraakman.com/blog/comments/installing_pil_in_snow_leopard_jpeg_resync_to_restart_error/ (not a link because StOv only lets me post one...)</p> <p>4 bits of potentially useful information:</p> <p>OTOOL does not show libjpeg as a dependency</p> <pre><code>otool -L /Library/Python/2.6/site-packages/PIL/_imaging.so /Library/Python/2.6/site-packages/PIL/_imaging.so: /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0) </code></pre> <p>I get these weird compiler messages</p> <pre><code>i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused because linking not done i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because linking not done i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused because linking not done i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because linking not done gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -I/System/Library/Frameworks/Tcl.framework/Headers -I/System/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/sw/include/freetype2 -I/sw/include -I/opt/local/include -I/System/Library/Frameworks/Python.framework/Versions/2.6/include -I/usr/local/include -I/usr/include -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c Tk/tkImaging.c -o build/temp.macosx-10.6-universal-2.6/Tk/tkImaging.o -framework Tcl -framework Tk In file included from /System/Library/Frameworks/Tk.framework/Headers/tk.h:78, from Tk/tkImaging.c:51: </code></pre> <p>selftest.py fails because of _imagingmath (after I used the second link given above, before it too failed due to _imaging)</p> <pre><code>Themistocles:Imaging-1.1.7 me$ python selftest.py Traceback (most recent call last): File "selftest.py", line 11, in &lt;module&gt; from PIL import ImageMath File "./PIL/ImageMath.py", line 19, in &lt;module&gt; import _imagingmath ImportError: No module named _imagingmath </code></pre> <p>Anything but selftest.py fails because of _imaging</p> <pre><code>&gt;&gt;&gt; import _imaging Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; ImportError: dlopen(/Library/Python/2.6/site-packages/PIL/_imaging.so, 2): Symbol not found: _jpeg_resync_to_restart Referenced from: /Library/Python/2.6/site-packages/PIL/_imaging.so Expected in: flat namespace in /Library/Python/2.6/site-packages/PIL/_imaging.so </code></pre> <p>Please, please help! This is getting ridiculous. I'd even be happy to be able to compile PIL sans jpeg support at this point!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload