zlib and zipfile module in Python2.4
Fredrik Lundh
fredrik at pythonware.com
Mon Apr 11 11:40:16 EDT 2005
Alan Toppen wrote:
> When running my Python script it gives a warning:
>
> /usr/local/lib/python2.4/zipfile.py:7: RuntimeWarning: Python C API
version
> mismatch for module zlib: This Python has C API version 1012, module zlib
> has version 1011.
> import zlib # We may need its compression method
that's usually a non-critical warning.
> But it works. Python 2.2 and 2.3 handle zipfiles out of the box. Could a
> file have been omitted from Python 2.4 by accident?
from your Python 2.4 build, perhaps.
Python 2.4 itself definitely supports zlib/zipfile. e.g.
Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import zlib
>>> import zipfile
I suggest checking with whoever built Python for you.
</F>
More information about the Python-list
mailing list