Re: zipfile 2GB problems?



On Jul 15, 5:39 pm, Steve Holden <st...@xxxxxxxxxxxxx> wrote:
xamdam wrote:
Additional info: my file is from a data provider, do not know what
they used to compress it. Previous files worked ok, this one is the
1st over 2GB. Winzip has no problem with it.
It could be you are using a Python with an in-built limit of 2GB on file
size. What happens if you open the file, seek past the 2GB point and
then try and read data?

Steve,
I used is_zipfile function, which from does exactly that from a quick
read - goes to the end, reads expected string. It worked fine. Tried
regular Windows 2.4.4 and 2.5.1, same result.

Fine, if it isn't file size limitations I suspect you need to post some
code and a traceback so we can get better insight into exactly what the
problem is.


It's failing in the ZipFile constructor, which ends up throwing

zipfile(2.4.3).py:291> raise BadZipfile, "Bad magic number for file
header"



.



Relevant Pages

  • Re: zipfile 2GB problems?
    ... xamdam wrote: they used to compress it. ... Winzip has no problem with it. ... if it isn't file size limitations I suspect you need to post some code and a traceback so we can get better insight into exactly what the problem is. ...
    (comp.lang.python)
  • Re: zipfile 2GB problems?
    ... they used to compress it. ... Winzip has no problem with it. ... code and a traceback so we can get better insight into exactly what the ... Well, Steve, I don't know what else to tell you - I certainly do not ...
    (comp.lang.python)
  • Re: zipfile 2GB problems?
    ... xamdam wrote: ... they used to compress it. ... Winzip has no problem with it. ... if it isn't file size limitations I suspect you need to post some ...
    (comp.lang.python)
  • Re: De-compress a file from UNIX
    ... > compressed using the UNIX compress command. ... However, if you know in advance that you have access to WinZip on the host, ... the you could easily command WinZip to decompress the file. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: WinZip 10 "reader"?
    ... The program to use it is free online. ... Does it compress better than Winzip 9? ... Now I'm considering sending .exe files from winRAR - with large ...
    (comp.compression)