PIL - inflateInit?

Fredrik Lundh effbot at telia.com
Sat May 13 16:09:58 CEST 2000


Jason Long <NOSPAMjason at NOSPAMstreetrodstuff.com> wrote:
> Hey all, need a little help with PIL.  I'm running a stock RH 6.1 system
> and I just installed PIL with *almost* no problems.  If I fire up the
> python prompt, I am able to import Image, but when I try to import
> _imaging, I get the following:  
> 
> >>> import _imaging
> Traceback (innermost last):
>   File "<stdin>", line 1, in ?
> ImportError: /usr/lib/python1.5/site-packages/PIL/_imaging.so: undefined
> symbol: inflateInit_

this probably means that PIL was configured with zlib support,
but you (for some reason) failed to link with libz.

figure out if/where libz is installed on your box, make sure there's
an -L path in the Setup file that points to that directory, and re-
build.

if that doesn't help, let us know (either here, or better, on the
image-sig mailing list).

(that trailing underscore looks a bit strange, though.  it could also
be some kind of zlib header/library mismatch?)

</F>

<!-- the python imaging library:
http://www.pythonware.com/products/pil
-->




More information about the Python-list mailing list