Error from zipfile

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Tue Jul 1 17:45:23 CEST 2008


On Tue, 01 Jul 2008 16:38:23 +0100, Wesley Brooks wrote:

> Dear Users,
> 
> I'm having a problem when trying to move script from Linux to Windows.
> A zipfile opperation is failing with the message:
> 
> "BadZipFile: File is not a zip file"
> 
> I have a simple scripts that reads a zip file in the same way as any
> other file into a string, then sends it across to a network where it
> is saved as perusual into a file, […]

Are you sure you read and save the file in binary mode, especially on
windows!?

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list