[Image-SIG] Question on PIL

Fredrik Lundh fredrik@pythonware.com
Thu, 12 Jul 2001 18:18:23 +0200

christian wrote:

> My Setup.in contains:
> *shared*
> _imaging  _imaging.c decode.c encode.c map.c display.c outline.c path.c \
>         -IlibImaging libImaging/libImaging.a \
> # *** IJG JPEG library (libjpeg) location
>         -I/mc/usr/include -L/mc/usr/lib -ljpeg \
> # *** ZLIB (libz) location
>         -I/mc/usr/include -L/mc/usr/lib -lz
> the exception is an:
> IOError: decoder zip not available
>       args = ('decoder zip not available',) 
>       errno = None 
>       filename = None 
>       strerror = None   

the ./configure script probably failed to find your libz and libjpeg
files (if that's the case, it told you so, but that message is easy
to miss).

the quickest way to fix this is to edit the libImaging/ImConfig.h
file to make sure the right "HAVE" defines are set (see comments
at the top of the file), and rebuild everything.

(if you're successful, the ZipEncode.o and ZipDecode.o files should
be at least a few kb's large -- and that error should go away...)

Cheers /F