[Python-Dev] zipfile module can't handle large files

Guido van Rossum guido at python.org
Wed Aug 29 22:16:58 CEST 2007


Please file a bug at the new bug tracker (bugs.python.org). Please add
a small self-contained code sample that shows the issue, and specify
what you would like to see instead (keeping in mind that you just
can't allocate 2 GB on a 32-bit box).

--Guido

On 8/29/07, Kevin Ar18 <kevinar18 at hotmail.com> wrote:
>
> Create a zip file with a file inside consisting of several GB (say 2 or 5 GB).  The zipfile module will fail, when attempting to extract the large file.
>
> The issue is near line 490 in zifile.py.  It appears that read (a file operation) is unable to read such large amounts of data.  I tried editing zipfile.py so that read would read things piece by piece but just got a memory error.
>
> Does anyone know how to fix this limitation in the zipfile module?
> _________________________________________________________________
> See what you're getting into…before you go there
> http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_preview_0507
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org
>


-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list