470,636 Members | 1,616 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,636 developers. It's quick & easy.

PIL / libjpeg install problem

Hello all,

I am installing the Python Imaging Library (1.1.5). Following the
README that came with PIL sources, I ran "path/to/python setup.py
build_ext -i" which informed me that JPEG support is OK.

However when I run "path/to/python selftest.py" from the same package,
I get an IOError: decoder jpg not available.

This is a RHEL4 server and I am building PIL for a selfcompiled Python
2.3.5 install.

Libjpeg and libjpeg-devel are installed via RPM.

Any help appreciated.

Full error here:

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 21, in _info
im.load()
File "PIL/ImageFile.py", line 180, in load
d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
File "PIL/Image.py", line 328, in _getdecoder
raise IOError("decoder %s not available" % decoder_name)
IOError: decoder jpeg not available
1 items had failures:
1 of 55 in selftest.testimage
***Test Failed*** 1 failures.
*** 1 tests of 55 failed.

--
Mikko Koivunen

Apr 25 '06 #1
0 1269

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by MuZZy | last post: by
7 posts views Thread by p | last post: by
3 posts views Thread by beantant | last post: by
3 posts views Thread by Jean-Marc Blaise | last post: by
???
reply views Thread by Stoney L | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.