[Image-SIG] not finding libraries

David Bear David.Bear at asu.edu
Wed Aug 2 03:12:56 CEST 2006


On Tue, Aug 01, 2006 at 08:45:04PM +0900, Jim Tittsler wrote:
> 
> On Aug 1, 2006, at 10:19, David Bear wrote:
> 
> > On Mon, Jul 31, 2006 at 06:10:25PM -0700, Chris Cogdon wrote:
> >>
> >> On Jul 31, 2006, at 18:07, David Bear wrote:
> >>
> >>> I am attempting to build pil1-5 and it is not finding the libraries.
> >>>
> >>> /installs/web/Imaging-1.1.5> /work/webenv/bin/python setup.py
> >>> build_ext -i
> >>> running build_ext
> >>> [...]
> >>> Yet, I do have jpeg libraries installed
> >>>
> >>> rpm -qa | grep jpeg
> >>> jpeg-6b-738
> >>> libjpeg-32bit-9.3-7
> >>> libjpeg-6.2.0-738
> >>>
> >>> Any way to make sure pil finds these?
> >>
> >> You need to install the -devel sub-packages. This is generally true
> >> when you're "compiling against" these libraries, and not just using
> >> them.
> >
> > sub-packages? are these components of libjpeg rpms listed?
> 
> Additional packages, with the headers (and often shared object files)  
> for the associated package.  For example for libjpeg-x.y.z, install  
> the libjpeg-devel-x.y.z package.

thanks for the infor.

I went back and loaded all the devel rpms that I could find dealing
with jpeg and freetype. Here is what I get now:

PIL 1.1.5 BUILD SUMMARY
--------------------------------------------------------------------
version       1.1.5
platform      linux2 2.4.2 (#5, Aug  1 2006, 17:25:34)
              [GCC 3.3.5 20050117 (prerelease) (SUSE Linux)]
--------------------------------------------------------------------
*** TKINTER support not available
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok
--- FREETYPE2 support ok
--------------------------------------------------------------------
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.

To check the build, run the selftest.py script.

So, PIL is finding what it needs in the setup script. However, running
the test gives me :

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 ?
  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.

is it that 'lena.jpg' is not found, ir is a decoder elsewhere not
found?


> 
> 
> -- 
> Jim Tittsler     http://www.OnJapan.net/      GPG: 0x01159DB6
> Python Starship  http://Starship.Python.net/crew/jwt/
> Mailman IRC      irc://irc.freenode.net/#mailman
> 
> 
> 
> _______________________________________________
> Image-SIG maillist  -  Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig

-- 
David Bear
phone: 	602-496-0424
fax: 	602-496-0955
College of Public Programs/ASU
University Center Rm 622
411 N Central
Phoenix, AZ 85007-0685
 "Beware the IP portfolio, everyone will be suspect of trespassing"


More information about the Image-SIG mailing list