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 Kevin Ar18
Recipients Kevin Ar18
Date 2007-08-29.21:34:55
SpamBayes Score 0.65723
Marked as misclassified No
Message-id <1188423295.47.0.201015368946.issue1060@psf.upfronthosting.co.za>
In-reply-to
Content
Summary:
If you have a zip file that contains a file inside of it greater than
2GB, then the zipfile module is unable to read that file.

Steps to Reproduce:
1. Create a zip file several GB in size with a file inside of it that is
over 2GB in size.
2. Attempt to read the large file inside the zip file.  Here's some
sample code:
import zipfile
import re

dataObj = zipfile.ZipFile("zip.zip","r")

for i in dataObj.namelist():
   if(i[-1] == "/"):
      print "dir"
   else:
      fileName = re.split(r".*/",i,0)[1]
      fileData = dataObj.read(i)


Result:
Python returns the following error:
File "...\zipfile.py", line 491, in read bytes =
self.fp.read(zinfo.compress_size) 
OverflowError: long it too large to convert to int

Expected Result:
It should copy the data into the variable fileData...

I'll try to post more info in a follow-up.
History
Date User Action Args
2007-08-29 21:34:55Kevin Ar18setspambayes_score: 0.65723 -> 0.65723
recipients: + Kevin Ar18
2007-08-29 21:34:55Kevin Ar18setspambayes_score: 0.65723 -> 0.65723
messageid: <1188423295.47.0.201015368946.issue1060@psf.upfronthosting.co.za>
2007-08-29 21:34:55Kevin Ar18linkissue1060 messages
2007-08-29 21:34:55Kevin Ar18create