E
E
ExcimeR2010-12-09 13:48:28
Python
ExcimeR, 2010-12-09 13:48:28

Installing JPEG-enabled PIL library under Snow Leopard?

Problem in the following: PIL with JPEG support is not put. Installed the libjpeg library 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 - everything is OK, the library is worth
Installing, doing
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 test of 57 failed.
Says that JPEG support is not installed and naturally does not work.
Previously, PIL was deleted and installed in a new way, the result is the same.
Has anyone encountered such a problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
ExcimeR, 2010-12-09
@ExcimeR

As a result, I installed version 1.1.6 without any problems for now, but it would be interesting to know what the trouble is with 1.1.7

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question