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 pleed
Recipients pleed
Date 2012-03-15.11:15:45
SpamBayes Score 6.661338e-14
Marked as misclassified No
Message-id <1331810146.14.0.995585507713.issue14315@psf.upfronthosting.co.za>
In-reply-to
Content
zipfile.ZipFile("bla.apk") crashes, but should not since other tools work perfectly with this file.

Python 2.7.2+ (default, Oct  4 2011, 20:06:09) 
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import zipfile
>>> zipfile.ZipFile("bla.apk")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/zipfile.py", line 710, in __init__
    self._GetContents()
  File "/usr/lib/python2.7/zipfile.py", line 744, in _GetContents
    self._RealGetContents()
  File "/usr/lib/python2.7/zipfile.py", line 803, in _RealGetContents
    x._decodeExtra()
  File "/usr/lib/python2.7/zipfile.py", line 369, in _decodeExtra
    tp, ln = unpack('<HH', extra[:4])
struct.error: unpack requires a string argument of length 4
History
Date User Action Args
2012-03-15 11:15:46pleedsetrecipients: + pleed
2012-03-15 11:15:46pleedsetmessageid: <1331810146.14.0.995585507713.issue14315@psf.upfronthosting.co.za>
2012-03-15 11:15:45pleedlinkissue14315 messages
2012-03-15 11:15:45pleedcreate