Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 2 Errors: self._cleanup() and unexpected keyword argument 'decrypt_chunk_size' #123

Open
Box333 opened this issue Oct 31, 2024 · 5 comments

Comments

@Box333
Copy link

Box333 commented Oct 31, 2024

Must have

  • WhatsApp Backup Extractor version: 10.5
  • iOS - 17.x
  • Platform: Windows 11
  • Branch and version: main

Trackback:

Encryption detected on the backup!
Enter the password for the backup:
Trying to decrypt the iOS backup...WARN: Cleanup failed. You may want to delete the decrypted temporary file found at:
Exception ignored in: <function EncryptedBackup.__del__ at 0x00000248DC5D63E0>
Traceback (most recent call last):
  File "D:\Code\Python311\Lib\site-packages\iphone_backup_decrypt\iphone_backup.py", line 109, in __del__
    self._cleanup()
  File "D:\Code\Python311\Lib\site-packages\iphone_backup_decrypt\iphone_backup.py", line 118, in _cleanup
    print("    '{}'".format(self._temp_decrypted_manifest_db_path))
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'EncryptedBackup' object has no attribute '_temp_decrypted_manifest_db_path'
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "D:\Code\Python311\Scripts\wtsexporter.exe\__main__.py", line 7, in <module>
  File "D:\Code\Python311\Lib\site-packages\Whatsapp_Chat_Exporter\__main__.py", line 471, in main
    ios_media_handler.extract_media(args.backup, identifiers, args.decrypt_chunk_size)
  File "D:\Code\Python311\Lib\site-packages\Whatsapp_Chat_Exporter\ios_media_handler.py", line 86, in extract_media
    extract_encrypted(base_dir, password, identifiers, decrypt_chunk_size)
  File "D:\Code\Python311\Lib\site-packages\Whatsapp_Chat_Exporter\ios_media_handler.py", line 19, in extract_encrypted
    backup = EncryptedBackup(
             ^^^^^^^^^^^^^^^^
TypeError: EncryptedBackup.__init__() got an unexpected keyword argument 'decrypt_chunk_size'

Hi Knugi.

Above ist the traceback of 2 Errors.

I installed a fresh python 3.11.09 and then Whatsapp_Chat_Exporter exatcly as described in the Wiki.

Update: Tried Version 0.10. This one does not throw the 2 errors !!

@KnugiHK
Copy link
Owner

KnugiHK commented Nov 2, 2024

Oops... Forgot to update KnugiHK/iphone_backup_decrypt. Please reinstall it from the main branch. The repo is undergoing significant rebasing, so let me know if you encounter any issues.

@Box333
Copy link
Author

Box333 commented Nov 2, 2024

i found another small error in line 507 in main.py.

when using the --per-chat switch the code will not write json files, if the contact name has reserved characters such as "<>:".

@KnugiHK
Copy link
Owner

KnugiHK commented Nov 13, 2024

i found another small error in line 507 in main.py.

when using the --per-chat switch the code will not write json files, if the contact name has reserved characters such as "<>:".

Can you paste the lines around 507 here? If there are any errors, please also share.

@Box333
Copy link
Author

Box333 commented Nov 13, 2024

its very simple to understand. If your conact name is "One>Way" for example, you have to strip or replace the ">" , because windows cant create filenames with ">" and your pre-chat function will fail.

@KnugiHK
Copy link
Owner

KnugiHK commented Nov 14, 2024

I added the > to one of the contact name and -j --per-chat works fine with the > being striped by the sanitize_filename function properly.

If there are any error messages or stack trace, please share.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants