Ok so I installed those libs and now when I run the setup.py script I can see that JPEG support is OK. However if I launch the selftest.py script here's the output I get :
PIL/Image.py:53: RuntimeWarning: Python C API version mismatch for module _imaging: This Python has API version 1012, module _imaging has version 1013. import _imaging PIL/ImageMath.py:19: RuntimeWarning: Python C API version mismatch for module _imagingmath: This Python has API version 1012, module _imagingmath has version 1013. import _imagingmath ***************************************************************** 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 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 tried using a simple thumbnail generation on a gif file but I still get the error : encoder jpeg not available It seems there is a problem with the Python C API version. Thanks for the help. Tom On Tue, 2008-03-11 at 20:04 +0000, Carlos da Silva Santos wrote: > Hello, > > I guess you need libjpeg, libjpeg-dev and python-tk installed. Have > you checked that? > I believe python2.4 is is still the default in debian etch, so to > install packages with python2.5 you will need to make that explicit > (use the python2.5 command instead of python). > > I hope this helps. > > Carlos > > On Tue, Mar 11, 2008 at 5:41 PM, Thomas Zaffran <[EMAIL PROTECTED]> wrote: > > Hello, > > I am running a turbogears webapp using Python 2.5 and I need to use PIL. > > However I can't seem to figure out how to install it with JPEG support. > > I downloaded the Imaging-1.6.6 tar file and extracted it then ran > > "python setup.py install" > > and I get this output : > > > > running install > > running build > > running build_py > > running build_ext > > -------------------------------------------------------------------- > > PIL 1.1.6 BUILD SUMMARY > > -------------------------------------------------------------------- > > version 1.1.6 > > platform linux2 2.4.4 (#2, Apr 5 2007, 20:11:18) > > [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] > > -------------------------------------------------------------------- > > *** TKINTER support not available > > *** JPEG support not available > > --- ZLIB (PNG/ZIP) support ok > > *** FREETYPE2 support not available > > -------------------------------------------------------------------- > > 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. > > running build_scripts > > running install_lib > > running install_scripts > > changing mode of /usr/bin/pilfile.py to 755 > > changing mode of /usr/bin/pilfont.py to 775 > > changing mode of /usr/bin/pilconvert.py to 755 > > changing mode of /usr/bin/pilprint.py to 755 > > changing mode of /usr/bin/pildriver.py to 755 > > creating /usr/lib/python2.4/site-packages/PIL.pth > > > > I tried changing the path in the setup.py file to "/usr/lib" but that > > didn't change anything. > > What am I doing wrong ? > > Thank you for any help you can provide. > > > > -- > > Thomas Zaffran > > Responsable Technique > > CN films > > 11 rue Bergère > > 75009 Paris > > Tel. : +33 (0)1 45 23 08 16 > > Fax : +33 (0)1 48 24 01 81 > > > > _______________________________________________ > > Image-SIG maillist - Image-SIG@python.org > > http://mail.python.org/mailman/listinfo/image-sig > > > -- Thomas Zaffran Responsable Technique CN films 11 rue Bergère 75009 Paris Tel. : +33 (0)1 45 23 08 16 Fax : +33 (0)1 48 24 01 81 _______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig