The library is PIL with JPEG support under Snow Leopard?

The problem is the following: do not put PIL with support for JPEG. The libjpeg library installed via macport:

sudo python setup.py build

running build

running build_py

running build_ext

— using frameworks at /System/Library/Frameworks

— PIL 1.1.7 SETUP SUMMARY

— version 1.1.7

platform darwin 2.7 (r27:82508, Jul 3 2010, 21:12:11)

[GCC 4.0.1 (Apple Inc. build 5493)]

— — TKINTER support available

— JPEG support available

— ZLIB (PNG/ZIP) support available

— FREETYPE2 support available

— LITTLECMS support available

— To check the build, run the selftest.py script.

running build_scripts


— JPEG support available — all OK, library is


Set make
python selftest.py

— PIL 1.1.7 TEST SUMMARY

— Python modules loaded from ./PIL

Binary modules loaded from ./PIL

— — PIL CORE support ok

— TKINTER support ok

*** JPEG support not installed

— ZLIB (PNG/ZIP) support ok

— FREETYPE2 support ok

— LITTLECMS support ok

— Running selftest:

*****************************************************************

Failure in example:

try:

_info(Image.open(os.path.join(ROOT, "Images/lena.jpg")))

except IOError, v:

print v

from line #24 of selftest.testimage

Expected: ('JPEG', 'RGB', (128, 128))

Got: decoder jpeg not available

1 items had failures:

1 of 57 in selftest.testimage

***Test Failed*** 1 failures.

*** 1 tests of 57 failed.


Says that JPEG support not installed and of course not working.


Pre-PIL was removed and put in the new one, with the same result.


Has anyone faced such a problem?
October 14th 19 at 10:26
1 answer
October 14th 19 at 10:28
As a result, without any problems installed version 1.1.6 yet, but it would be interesting to know what's the trouble with 1.1.7

Find more questions by tags PILPython