[Image-SIG] can't build JPEG support with PIL 1.1.6

Bill Janssen janssen at parc.com
Tue Feb 5 20:37:11 CET 2008

Odd thing going on here.  I've got libjpeg built and installed, with
include files, under /local, on a PowerPC Mac, running 10.4.11, which
means Python 2.3.5.  I unpack Imaging-1.1.6, edit setup.py to tell it
where to find libjpeg, and do the build:

wjanssen % python setup.py build
running build
running build_py
creating build
creating build/lib.darwin-8.11.0-Power_Macintosh-2.3
copying PIL/__init__.py -> build/lib.darwin-8.11.0-Power_Macintosh-2.3
copying PIL/ArgImagePlugin.py -> build/lib.darwin-8.11.0-Power_Macintosh-2.3
version       1.1.6
platform      darwin 2.3.5 (#1, Oct  5 2005, 11:07:27)
              [GCC 3.3 20030304 (Apple Computer, Inc. build 1809)]
--- TKINTER support ok
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok
--- FREETYPE2 support ok
To check the build, run the selftest.py script.
running build_scripts
wjanssen % python selftest.py
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 22, in _info
  File "PIL/ImageFile.py", line 180, in load
    d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
  File "PIL/Image.py", line 375, in _getdecoder
    raise IOError("decoder %s not available" % decoder_name)
IOError: decoder jpeg not available
1 items had failures:
   1 of  57 in selftest.testimage
***Test Failed*** 1 failures.
*** 1 tests of 57 failed.
wjanssen % 

More information about the Image-SIG mailing list