JPEG decoder not available in PIL

Paul Dickson paul at permanentmail.com
Thu Dec 8 10:42:50 EST 2005


On 6 Dec 2005 14:02:37 -0800, Peter wrote:

> I have a problem which seems to come up from time to time but I can't
> find anything relevant in the archives.  I have used PIL v1.1.5 with no
> problem on Windows for some time but now wish to put it on Linux (Suse
> Linux v10.0). I obtained and built the JPEG libraries (jpeg-6b) without
> any problem. The tests for the installation work fine. I built Python
> 2.4.2 from the sources but with no special options, just 'out of the
> box'. This works fine. PIL built as it should but the selftest.py fails
> with the  ‘'decoder jpeg is not available'’ message (the other 54
> tests are OK). Other images are opened and shown with xv, no problem. I
> think that there is something wrong with the libraries or the way they
> linked.  ....

It seems you did not build the RPMs for the JPEG libraries, so the
include files were not placed in the correct location:

# rpm -ql libjpeg-devel
  ...
/usr/include/jpeglib.h
  ...

Perhaps you should try "yum install libjpeg libjpeg-devel" if Suse
supports yum.

	-Paul




More information about the Python-list mailing list