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

Incomplete export #73

Open
pimduin opened this issue Nov 17, 2023 · 6 comments
Open

Incomplete export #73

pimduin opened this issue Nov 17, 2023 · 6 comments

Comments

@pimduin
Copy link

pimduin commented Nov 17, 2023

Hi,

I'm running into a problem where chats aren't fully exported. Text chats seem to be exported fine (also vcards), but all the media seems to be completely missing.

wtsexporter -i --preserve-timestamp -b ./backup_directory/
Encryption detected on the backup!
Enter the password for the backup:
Decrypting WhatsApp database...Done
Exception in thread Thread-1 (extract_files_by_domain):
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run() extracting files   
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
TypeError: EncryptedBackup.extract_files_by_domain() takes 3 positional arguments but 4 were given
All required files decrypted and extracted.
Processing contacts...(163)
Processing messages...(100762/100762)
Processing media...(20790/20790)
Processing vCards...(17/17)
Generating chats...(164/164)
Copying media directory...

Everything is done!```
@KnugiHK
Copy link
Owner

KnugiHK commented Nov 18, 2023

Hi. Could you check if lines 38 to 41 of extract_iphone_media.py is identical to the following?

    extract_thread = threading.Thread(
        target=backup.extract_files_by_domain,
        args=(identifiers.DOMAIN, identifiers.DOMAIN, bplist_reader)
    )

@pimduin
Copy link
Author

pimduin commented Nov 21, 2023

I'm not that familiar with Python. Where can I find that file? (I'm on MacOS)

edit
-- Never mind, I found it at:
/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/Whatsapp_Chat_Exporter/

I think I installed the dev branch. The lines 38 to 41 look identical:

    extract_thread = threading.Thread(
        target=backup.extract_files_by_domain,
        args=(identifiers.DOMAIN, identifiers.DOMAIN, bplist_reader)
    )

@KnugiHK
Copy link
Owner

KnugiHK commented Dec 3, 2023

I think I installed the dev branch. The lines 38 to 41 look identical:

    extract_thread = threading.Thread(
        target=backup.extract_files_by_domain,
        args=(identifiers.DOMAIN, identifiers.DOMAIN, bplist_reader)
    )

Strange. The args is indeed 3 arguments not 4.

@pimduin
Copy link
Author

pimduin commented Jan 31, 2024

I've (finally) investigated a bit further. The problem was that I also needed your fork of iphone_backup_decrypt (https://github.com/KnugiHK/iphone_backup_decrypt)

Maybe I installed WhatsApp-Chat-Exporter wrongly, but it seems that the original iphone_backup_decrypt was installed as a dependency instead of your fork.

After installing the forked iphone_backup_decrypt everything seemed to work perfectly. Thanks!

@KnugiHK
Copy link
Owner

KnugiHK commented Jan 31, 2024

I've (finally) investigated a bit further. The problem was that I also needed your fork of iphone_backup_decrypt (https://github.com/KnugiHK/iphone_backup_decrypt)

Maybe I installed WhatsApp-Chat-Exporter wrongly, but it seems that the original iphone_backup_decrypt was installed as a dependency instead of your fork.

After installing the forked iphone_backup_decrypt everything seemed to work perfectly. Thanks!

Yes. I did not upload the fork to PyPi and one must install it through the repo. Glad it works for you!

@KnugiHK
Copy link
Owner

KnugiHK commented Jan 31, 2024

Btw, you shouldn't get the original iphone_backup_decrypt installed automatically, as I did not include that in the setup file.

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