Re: Bad magic no. in python zipfile

2005-10-13 Thread [EMAIL PROTECTED]
okay, I've figured out the problem - the zip file was being mangled by a file transfer. I was fetching a remote python-generated zip file in 8k chunks, and then writing those chunks to a file. At first I was using an array to store the data in, and had the 'bad magic number' problem. This may ha

Re: Bad magic no. in python zipfile

2005-10-12 Thread Peter Hansen
[EMAIL PROTECTED] wrote: \> I'm able to create a new zipfile with the module's ZipFile class and > add files to it. After closing the file, I'm able to view the contents > of it with WinZip. I can also confirm that it is a python zip file by > using the is_zipfile() method. All good so far. How