[Image-SIG] PIL Installation Issue

Stani spe.stani.be at gmail.com
Fri Feb 29 00:18:54 CET 2008


On Ubuntu you can install PIL by:
sudo apt-get install python-imaging

On Thu, Feb 28, 2008 at 11:51 PM, Joe Blubaugh <cblubaug at purdue.edu> wrote:
> I am attempting to install PIL on Ubuntu 7.10.  On running the in-place
>  install, I get this output:
>
>     joe at Norrell:/usr/lib/python2.5/Imaging-1.1.6$ python setup.py
>     build_ext -i
>     running build_ext
>     building '_imagingft' extension
>     gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
>     -Wstrict-prototypes -fPIC -I/usr/include/freetype2 -IlibImaging
>     -I/usr/include -I/usr/lib -I/usr/include/tcl8.4/
>     -I/usr/local/include -I/usr/include/python2.5 -c _imagingft.c -o
>     build/temp.linux-i686-2.5/_imagingft.o
>     gcc -pthread -shared -Wl,-O1 build/temp.linux-i686-2.5/_imagingft.o
>     -L/usr/local/lib -L/usr/include/tcl8.4/ -lfreetype -o PIL/_imagingft.so
>     --------------------------------------------------------------------
>     PIL 1.1.6 BUILD SUMMARY
>     --------------------------------------------------------------------
>     version       1.1.6
>     platform      linux2 2.5.1 (r251:54863, Oct  5 2007, 13:36:32)
>                   [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)]
>     --------------------------------------------------------------------
>     --- TKINTER support ok
>     --- JPEG support ok
>     --- ZLIB (PNG/ZIP) support ok
>     --- FREETYPE2 support ok
>     --------------------------------------------------------------------
>     To check the build, run the selftest.py script.
>
>
>  Which appears ok (including jpeg support). However, on running the
>  selftest.py script, I error on one of the tests:
>
>     *****************************************************************
>     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.
>
>  I haven't been able to find a reason for this failure yet. Have you seen
>  these kind of install issues before?
>
>
>  Joe Blubaugh
>  cblubaug at purdue.edu
>  _______________________________________________
>  Image-SIG maillist  -  Image-SIG at python.org
>  http://mail.python.org/mailman/listinfo/image-sig
>



-- 
http://pythonide.stani.be


More information about the Image-SIG mailing list