[New-bugs-announce] [issue1060] zipfile cannot handle files larger than 2GB (inside archive)
report at bugs.python.org
Wed Aug 29 23:34:55 CEST 2007
New submission from Kevin Ar18:
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
dataObj = zipfile.ZipFile("zip.zip","r")
for i in dataObj.namelist():
if(i[-1] == "/"):
fileName = re.split(r".*/",i,0)
fileData = dataObj.read(i)
Python returns the following error:
File "...\zipfile.py", line 491, in read bytes =
OverflowError: long it too large to convert to int
It should copy the data into the variable fileData...
I'll try to post more info in a follow-up.
components: Library (Lib)
nosy: Kevin Ar18
title: zipfile cannot handle files larger than 2GB (inside archive)
type: compile error
versions: Python 2.6
Tracker <report at bugs.python.org>
More information about the New-bugs-announce