AttributeError: ZipFile instance has no attribute 'open' in python 2.4 -


storefile(ftpcon, file, archive.open('nonvol/'+file)) 

gives me attributeerror: zipfile instance has no attribute open

but when change .open .read (since open() not available in 2.4) get:

attributeerror: str object has no attribute read

in:

ftpcon.storbinary('stor ' + filename.strip(), file) 


Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -