This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Yasar L. Ahmed
Recipients Yasar L. Ahmed
Date 2015-07-12.19:24:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1436729041.05.0.00377626127771.issue24621@psf.upfronthosting.co.za>
In-reply-to
Content
I have a zip-file that can be opened/extracted with 7zip but gives an error when I try work with it in python:
Py2 (2.7.3 / Linux/Debian7):
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/zipfile.py", line 714, in __init__
    self._GetContents()
  File "/usr/lib/python2.7/zipfile.py", line 748, in _GetContents
    self._RealGetContents()
  File "/usr/lib/python2.7/zipfile.py", line 763, in _RealGetContents
    raise BadZipfile, "File is not a zip file"
zipfile.BadZipfile: File is not a zip file


Py3 (3.4.3 / Windows 7 /64bit):
Traceback (most recent call last):
  File "<pyshell#20>", line 1, in <module>
    badzip = ZipFile(bad)
  File "C:\Python34\lib\zipfile.py", line 937, in __init__
    self._RealGetContents()
  File "C:\Python34\lib\zipfile.py", line 978, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

The zip-file is attached.
History
Date User Action Args
2015-07-12 19:24:01Yasar L. Ahmedsetrecipients: + Yasar L. Ahmed
2015-07-12 19:24:01Yasar L. Ahmedsetmessageid: <1436729041.05.0.00377626127771.issue24621@psf.upfronthosting.co.za>
2015-07-12 19:24:01Yasar L. Ahmedlinkissue24621 messages
2015-07-12 19:24:00Yasar L. Ahmedcreate