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

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -