how can I put a 1Gb file in a zipfile??

Bennie rotzjes at wanadoo.nl
Sun Mar 20 04:44:06 EST 2005


Hi,

I have a problem with ZipFile.
It works okay untily I come across a file that is greater then 1Gb.
Then it exit with the error:
	OverflowError: long int too large to convert to int

How can I fix this?

souce:
	zip = zipfile.ZipFile(file, 'w')
		
	for all in os.walk(os.getcwd()):
		path = all[0]
		for document in all[2]:
			zipaccview.write(path + os.sep + document)

	zip.close()

Bennie



More information about the Python-list mailing list