[Image-SIG] Problems with JPEG support with PIL 1.1.5 on Mac OSX 10.4

Andy Todd andy47 at halfcooked.com
Sun Dec 25 09:57:31 CET 2005


I've installed libjpeg using Fink on my Mac (Tiger, 10.4.3) and when I 
install PIL from source it tells me that jpeg support is OK;

--- TKINTER support ok
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok
*** FREETYPE2 support not available

But when I run selftest.py I get this error message;

Failure in example: _info(Image.open("Images/lena.jpg"))
from line #24 of selftest.testimage
Exception raised:
Traceback (most recent call last):
   File "./doctest.py", line 499, in _run_examples_inner
     exec compile(source, "<string>", "single") in globs
   File "<string>", line 1, in ?
   File "./selftest.py", line 21, in _info
   File "PIL/ImageFile.py", line 180, in load
     d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
   File "PIL/Image.py", line 328, in _getdecoder
     raise IOError("decoder %s not available" % decoder_name)
IOError: decoder jpeg not available
1 items had failures:
    1 of  55 in selftest.testimage
***Test Failed*** 1 failures.
*** 1 tests of 55 failed.

All I've done to install libjpeg is from an admin account type;

sudo apt-get install libjpeg

Which has also instaleld the libjpeg-bin and libjpeg-shlibs.

Can anyone help?

 From the desk of Andrew J Todd esq - http://www.halfcooked.com/

More information about the Image-SIG mailing list