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 <>
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("","r")

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

Python returns the following error:
File "...\", line 491, in read bytes = 
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.
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: <>
2007-08-29 21:34:55Kevin Ar18linkissue1060 messages
2007-08-29 21:34:55Kevin Ar18create