Closed CCNST closed 6 years ago
Are you sure you copied the entire error message? Please check again
Forgot the last line, now the full message:
./ROSbackup.py decrypt -i 20180819-1152.backup -o 20180819-1152.backup-plain -p ***
Decrypt Backup RouterOS Encrypted Backup Length: 452587 bytes Traceback (most recent call last): File "./ROSbackup.py", line 426, in
main() File "./ROSbackup.py", line 415, in main decrypt(args.input, args.output, args.password) File "./ROSbackup.py", line 225, in decrypt print("Salt (hex):", salt.hex()) AttributeError: 'bytes' object has no attribute 'hex'
When I call this way I get the same output:
python3 ROSbackup.py decrypt -i 20180819-1152.backup -o 20180819-1152.backup-plain -p ***
Another error message:
./ROSbackup.py info -i 20180819-1152.backup
Backup Info RouterOS Encrypted Backup Length: 452587 bytes Traceback (most recent call last): File "./ROSbackup.py", line 426, in
main() File "./ROSbackup.py", line 413, in main info(args.input) File "./ROSbackup.py", line 204, in info print("Salt (hex):", salt.hex()) AttributeError: 'bytes' object has no attribute 'hex'
''' The code raises such exception in Python version <= 3.4 because I used the bytes.hex() API that was introduced since Python 3.5. It should work in Python 3.5 and 3.6. ''' So update python3 to a more recent version
Thank you very much for your help. Installed Python 3.6.5 and now all works fine. Maybe you could put a hint in the README. Great script!
Hi,
when I try to run the script on Centos with Python 3.4.8 I get the following errors:
The installed Python packages are the following ones:
Does anyone have an idea how to fix this?
Best,
Chris