I do
import zipfile
zip=zipfile.Zip File('d:\somepa th\cdimage.zip' )
zip.namelist()
['someimage.iso']
then either of the two:
A) file('someimage .iso','w').writ e(zip.read('som eimage.iso'))
or
B) content=zip.rea d('someimage.is o')
but both result in the same error:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "D:\u\Python24\ lib\zipfile.py" , line 357, in read
bytes = dc.decompress(b ytes)
MemoryError
I thought python was supposed to handle memory for you?
The python zipfile module is obviously broken...
Any advise?
import zipfile
zip=zipfile.Zip File('d:\somepa th\cdimage.zip' )
zip.namelist()
['someimage.iso']
then either of the two:
A) file('someimage .iso','w').writ e(zip.read('som eimage.iso'))
or
B) content=zip.rea d('someimage.is o')
but both result in the same error:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "D:\u\Python24\ lib\zipfile.py" , line 357, in read
bytes = dc.decompress(b ytes)
MemoryError
I thought python was supposed to handle memory for you?
The python zipfile module is obviously broken...
Any advise?
Comment