The library is PIL with JPEG support under Snow Leopard?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
17 views
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, same result.


Has anyone faced such a problem?
by | 17 views

1 Answer

0 like 0 dislike
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
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Apr 27, 2019 by YardalGedal
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
asked May 21, 2019 by matthewstafford
110,608 questions
257,186 answers
0 comments
28,013 users