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

ImportError: cannot import name 'KaitaiStruct' #7

Open
omhmega opened this issue Jun 20, 2020 · 3 comments
Open

ImportError: cannot import name 'KaitaiStruct' #7

omhmega opened this issue Jun 20, 2020 · 3 comments

Comments

@omhmega
Copy link

omhmega commented Jun 20, 2020

This is a normal unencrypted backup with only -i -o and -v parameters. I get: ImportError: cannot import name 'KaitaiStruct'

Kaitaistruct package is present in iTBR root. Running Python 3.6.5

Traceback (most recent call last):
File "C:\temp\iTunes_Backup_Reader-4.0\iTunes_Backup_Reader.py", line 18, in
from helpers import plist_parser, recreator
File "C:\temp\iTunes_Backup_Reader-4.0\helpers\recreator.py", line 17, in
from helpers import decryptor
File "C:\temp\iTunes_Backup_Reader-4.0\helpers\decryptor.py", line 17, in
from kaitaistruct import KaitaiStruct, KaitaiStream, BytesIO
ImportError: cannot import name 'KaitaiStruct'

@jfarley248
Copy link
Owner

Looking into this now. Are you able to use the executable?

@omhmega
Copy link
Author

omhmega commented Jun 20, 2020

Looking into this now. Are you able to use the executable?

Didn't try the exe.
I used the previous version directly from Python just fine.

Great project, BTW. Thank you

@omhmega
Copy link
Author

omhmega commented Jun 22, 2020

It seems that "from kaitaistruct import KaitaiStruct, KaitaiStream, BytesIO" is redundant as the kaitai lib is only referred to in the helpers/decryptor.py (code) and construct/core.py (comment) files. KaitaiStruct and KaitaiStream are not mentioned anywhere in the code (except the import line), and BytesIO is imported from the Python io library.

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