You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a=archive.Archive("testarchive1.rar",base)
a = archive.Archive("\tmp\testarchive1.rar",base) # archive will be created in /tmp
a.set_password("awesomesauce") # set password to the archive
a.set_compression_level(0) # change compression level to Store
a.set_recovery_record(5) # set recovery record to 5%
a.set_volume_size("50k") # split archive based on volume size 50 kilobytes
a.run()
Howver, I get the following error:
AttributeError Traceback (most recent call last)
in
7 a=archive.Archive("testarchive1.rar",base)
8 a = archive.Archive("\tmp\testarchive1.rar",base) # archive will be created in /tmp
----> 9 a.set_password("awesomesauce") # set password to the archive
10 a.set_compression_level(0) # change compression level to Store
11 a.set_recovery_record(5) # set recovery record to 5%
AttributeError: 'Archive' object has no attribute 'set_password'
I am running this code on Windows, I keep getting this error:
AttributeError: 'Archive' object has no attribute 'set_compression_level'
So, other than changing the path, are there any changes that need to be done for the code to work?
The text was updated successfully, but these errors were encountered: