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
I am using pycrytodome instead of pycryto on centos and currently not able to decrypt the logs that seen.
Saving file 2490_XXXXXXX.log locally to the 'fail' folder local variable 'uncompressed_and_decrypted_file_content' referenced before assignment Traceback (most recent call last):
File "LogsDownloader.py", line 224, in handle_file
decrypted_file = self.decrypt_file(result[1], logfile)
File "LogsDownloader.py", line 339, in decrypt_file
return uncompressed_and_decrypted_file_content
UnboundLocalError: local variable 'uncompressed_and_decrypted_file_content' referenced before assignment
2023-08-16 14:13:12,346 ERROR Failed to downloading index file and starting to download all the log files in it - write() argument must be str, not bytes, Traceback (most recent call last):
File "LogsDownloader.py", line 224, in handle_file
decrypted_file = self.decrypt_file(result[1], logfile)
File "LogsDownloader.py", line 339, in decrypt_file
return uncompressed_and_decrypted_file_content
UnboundLocalError: local variable 'uncompressed_and_decrypted_file_content' referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "LogsDownloader.py", line 131, in get_log_files
self.first_time_scan()
File "LogsDownloader.py", line 200, in first_time_scan
success = self.handle_file(log_file_name)
File "LogsDownloader.py", line 237, in handle_file
file.write(result[1])
TypeError: write() argument must be str, not bytes
The text was updated successfully, but these errors were encountered:
@dkalwat have you implemented this code change on your own system? I ask because it looks like you are running the older 2.x version of the script and I am moving forward with the 3.0 version of the script.
I am using pycrytodome instead of pycryto on centos and currently not able to decrypt the logs that seen.
Saving file 2490_XXXXXXX.log locally to the 'fail' folder local variable 'uncompressed_and_decrypted_file_content' referenced before assignment Traceback (most recent call last):
File "LogsDownloader.py", line 224, in handle_file
decrypted_file = self.decrypt_file(result[1], logfile)
File "LogsDownloader.py", line 339, in decrypt_file
return uncompressed_and_decrypted_file_content
UnboundLocalError: local variable 'uncompressed_and_decrypted_file_content' referenced before assignment
2023-08-16 14:13:12,346 ERROR Failed to downloading index file and starting to download all the log files in it - write() argument must be str, not bytes, Traceback (most recent call last):
File "LogsDownloader.py", line 224, in handle_file
decrypted_file = self.decrypt_file(result[1], logfile)
File "LogsDownloader.py", line 339, in decrypt_file
return uncompressed_and_decrypted_file_content
UnboundLocalError: local variable 'uncompressed_and_decrypted_file_content' referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "LogsDownloader.py", line 131, in get_log_files
self.first_time_scan()
File "LogsDownloader.py", line 200, in first_time_scan
success = self.handle_file(log_file_name)
File "LogsDownloader.py", line 237, in handle_file
file.write(result[1])
TypeError: write() argument must be str, not bytes
The text was updated successfully, but these errors were encountered: