[Zope] Photo browsing products for Zope

Dieter Maurer dieter@handshake.de
Wed, 1 Jan 2003 20:46:19 +0100


Ed Leafe wrote at 2002-12-30 21:08 -0500:
 > ,,,
 > 	I've been trying various other things after Googling a bit, and now I 
 > get the following message when try the sample code:
 > 
 > Python 2.2.1 (#1, Aug 30 2002, 12:15:30)
 > [GCC 3.2 20020822 (Red Hat Linux Rawhide 3.2-4)] on linux2
 > Type "help", "copyright", "credits" or "license" for more information.
 >  >>> import PIL.Image
 >  >>> a = PIL.Image.open('Images/lena.jpg')
 >  >>> a.load()
 > Traceback (most recent call last):
 >    File "<stdin>", line 1, in ?
 >    File "PIL/ImageFile.py", line 140, in load
 >      d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
 >    File "PIL/Image.py", line 255, in _getdecoder
 >      raise IOError("decoder %s not available" % decoder_name)
 > IOError: decoder jpeg not available
The error message is very clear: PIL lacks the "jpeg" decoder.

Modern PIL versions lack this decoder only when the jpeg library was
missing when PIL was installed.

Please read the PIL installation instructions about the prerequisite
libraries, PIL needs for full support.


Dieter