python install problem 1 test failed selftest.testimage

View: New views
2 Messages — Rating Filter:   Alert me  

python install problem 1 test failed selftest.testimage

by Brian J. Gibbons :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is the error generated when running selftest.py :


python/Imaging-1.1.6> python selftest.py
*****************************************************************
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 <module>
  File "./selftest.py", line 22, 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 375, in _getdecoder
    raise IOError("decoder %s not available" % decoder_name)
IOError: decoder jpeg not available
1 items had failures:
   1 of  57 in selftest.testimage
***Test Failed*** 1 failures.
*** 1 tests of 57 failed.


Any suggestions?


Sincerely,

Brian Gibbons



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Brian Gibbons, Ph.D.
Roger Kornberg Lab
Stanford School of Medicine
Department of Structural Biology
299 Campus Drive West
Fairchild Building Rm. D125
Stanford, CA 94305
(650)723-6986
_______________________________________________
Image-SIG maillist  -  Image-SIG@...
http://mail.python.org/mailman/listinfo/image-sig

Re: python install problem 1 test failed selftest.testimage

by Fredrik Lundh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It tries to tell you that PIL's _imaging.so module was built without
JPEG support, which means that the setup.py script couldn't find or
set up the libjpeg library.

If setup claims that it did find libjpeg, make sure you don't have
multiple _imaging.so modules around (the selftest in 1.1.6 can
sometimes accidentally pick up older versions; the upcoming 1.1.7
version is a bit more careful, but it too could probably provide a bit
more details when this happens).

</F>

On Wed, Sep 2, 2009 at 11:03 PM, Brian J. Gibbons <bgibbons@...> wrote:

> This is the error generated when running selftest.py :
>
>
> python/Imaging-1.1.6> python selftest.py
> *****************************************************************
> 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 <module>
>  File "./selftest.py", line 22, 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 375, in _getdecoder
>    raise IOError("decoder %s not available" % decoder_name)
> IOError: decoder jpeg not available
> 1 items had failures:
>   1 of  57 in selftest.testimage
> ***Test Failed*** 1 failures.
> *** 1 tests of 57 failed.
>
>
> Any suggestions?
>
>
> Sincerely,
>
> Brian Gibbons
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Brian Gibbons, Ph.D.
> Roger Kornberg Lab
> Stanford School of Medicine
> Department of Structural Biology
> 299 Campus Drive West
> Fairchild Building Rm. D125
> Stanford, CA 94305
> (650)723-6986
> _______________________________________________
> Image-SIG maillist  -  Image-SIG@...
> http://mail.python.org/mailman/listinfo/image-sig
>
_______________________________________________
Image-SIG maillist  -  Image-SIG@...
http://mail.python.org/mailman/listinfo/image-sig