I've been trying to install the Python Imaging Library (PIL) on a FC3 system and hit problems in recognising jpeg images. It's not a Python problem as the code works fine on FC1 and Windows. A post on comp.lang.python yielded no answers - can anyone here help?
The error message when I try to display a jpeg is:-
[kpeter@localhost jpgTest]$ python pil_jpg.py
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.3/lib-tk/Tkinter.py", line 1345, in __call__
return self.func(*args)
File "pil_jpg.py", line 26, in do_something
a.thumbnail((200,150))
File "/usr/lib/python2.3/site-packages/PIL/Image.py", line 1422, in thumbnail
self.load()
File "/usr/lib/python2.3/site-packages/PIL/ImageFile.py", line 180, in load
d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
File "/usr/lib/python2.3/site-packages/PIL/Image.py", line 328, in _getdecoder
raise IOError("decoder %s not available" % decoder_name)
IOError: decoder jpeg not available
I am running Python 2.3.4, PIL 1.1.5 on a Fedora Core 3 system. I've Googled for clues, but although it seems to be a known issue I haven't found any comprehensible solutions.
Searching around for files that look as if they may be the jpeg libraries I can find
/usr/lib/libjpeg.so.62.0.0, and a symbolic link /usr/lib/libjpeg.so.62
I think I somehow have to configure PIL to recognise these, but I am not sure and anyway don't know how to do this.
Any ideas?