PIL: decode jpeg not available

Victor S. Miller victor at idaccr.org
Wed Sep 22 16:51:24 EDT 1999


I have Python 1.5.2 build on Solaris 2.6 with gcc 2.7.2.2.  I also
have tcl8.1 and tk8.1, IJG jpeg-6b and zlib-1.1.3.  I built PIL 1.0
with all these, and uncommented and built Python with the WITH_PIL
stuff for tkinter.  However, when I try to use the viewer.py script
that came with PIL with a jpeg file, I get the following error:

Traceback (innermost last):
  File "viewer.py", line 45, in ?
    UI(root, im).pack()
  File "viewer.py", line 24, in __init__
    self.image = ImageTk.PhotoImage(im)
  File "/usr/local/coop/lib/python1.5/site-packages/PIL/ImageTk.py", line 85, in __init__
    self.paste(image)
  File "/usr/local/coop/lib/python1.5/site-packages/PIL/ImageTk.py", line 107, in paste
    im.load()
  File "/usr/local/coop/lib/python1.5/site-packages/PIL/ImageFile.py", line 133, in load
    d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
  File "/usr/local/coop/lib/python1.5/site-packages/PIL/Image.py", line 229, in _getdecoder
    raise IOError, "decoder %s not available" % decoder_name
IOError: decoder jpeg not available

Is there something that I've forgotten?  Any suggestions as to how to
track down the problem?
-- 
Victor S. Miller     | " ... Meanwhile, those of us who can compute can hardly
victor at idaccr.org    | be expected to keep writing papers saying 'I can do the
CCR, Princeton, NJ   | following useless calculation in 2 seconds', and indeed
    08540 USA        | what editor would publish them?"  -- Oliver Atkin




More information about the Python-list mailing list