zlib Error -3

DeepBleu DeepBleu at DeepBleu.org
Mon Jan 7 15:01:44 EST 2002


I am using WinPython 2.1 and the zlib library that came with it.
I have a zip file:  test.zip made by running WinZip on a text file.
I need to decompress this file with a Python script.

>>> import zlib
>>> zlib.decompress("c:\\test.zip")
Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
error: Error -3 while decompressing data: unknown compression method

This is my first attempt at using zlib with Python.  How can I avoid this
error.
Thanks,
DeepBleu





More information about the Python-list mailing list