[Image-SIG] decoder zip not available but PIL install summary says it is
Erik Myllymaki
erik.myllymaki at gmail.com
Wed Jan 27 05:43:37 CET 2010
I'm trying to use PIL with a module in OpenERP but am getting the
following error:
File
"/opt/openerp/stable/5.0/addons/report_openoffice/barcode/barcode.py",
line 38, in make_barcode
im = bar.getImage(code,height)
File
"/opt/openerp/stable/5.0/addons/report_openoffice/barcode/EANBarCode.py",
line 173, in getImage
font =
ImageFont.load("/opt/openerp/stable/5.0/addons/report_openoffice/barcode/courB08.pil")
File
"/usr/lib/python2.5/site-packages/PIL-1.1.7-py2.5-linux-x86_64.egg/ImageFont.py",
line 193, in load
f._load_pilfont(filename)
File
"/usr/lib/python2.5/site-packages/PIL-1.1.7-py2.5-linux-x86_64.egg/ImageFont.py",
line 95, in _load_pilfont
return self._load_pilfont_data(file, image)
File
"/usr/lib/python2.5/site-packages/PIL-1.1.7-py2.5-linux-x86_64.egg/ImageFont.py",
line 117, in _load_pilfont_data
image.load()
File
"/usr/lib/python2.5/site-packages/PIL-1.1.7-py2.5-linux-x86_64.egg/ImageFile.py",
line 189, in load
d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
File
"/usr/lib/python2.5/site-packages/PIL-1.1.7-py2.5-linux-x86_64.egg/Image.py",
line 385, in _getdecoder
raise IOError("decoder %s not available" % decoder_name)
IOError: decoder zip not available
Most of what I have turned up suggests this is due to PIL not linking to
zlib properly, but the PIL install summary seems to indicate that it has:
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version 1.1.7
platform linux2 2.5.2 (r252:60911, Jul 22 2009, 15:33:10)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)]
--------------------------------------------------------------------
*** TKINTER support not available (Tcl/Tk 8.4 libraries needed)
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
--- FREETYPE2 support available
*** LITTLECMS 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.
Any advice appreciated.
More information about the Image-SIG
mailing list