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

Fails with error: TypeError: cannot unpack non-iterable NoneType object #12

Open
aleksandarristic opened this issue Dec 28, 2023 · 0 comments

Comments

@aleksandarristic
Copy link

The tool fails soon after starting. Seems that cur.fetchone() in decrypt_with_manifest is returning None.

The error message is:

Traceback (most recent call last):
  File "/Users/leka/.local/share/rtx/installs/python/3.9.16/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/Users/leka/.local/share/rtx/installs/python/3.9.16/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/Users/leka/.local/share/rtx/installs/python/3.9.16/lib/python3.9/site-packages/triangle_check/__main__.py", line 49, in <module>
    main()
  File "/Users/leka/.local/share/rtx/installs/python/3.9.16/lib/python3.9/site-packages/triangle_check/__main__.py", line 29, in main
    results = checker.scan_dir(dir, password, ask_password)
  File "/Users/leka/.local/share/rtx/installs/python/3.9.16/lib/python3.9/site-packages/triangle_check/__init__.py", line 208, in scan_dir
    path_osanalytics = self.decrypt_with_manifest('Library/Preferences/com.apple.osanalytics.addaily.plist', 'HomeDomain')
  File "/Users/leka/.local/share/rtx/installs/python/3.9.16/lib/python3.9/site-packages/triangle_check/__init__.py", line 69, in decrypt_with_manifest
    fileID, plist = cur.fetchone()
TypeError: cannot unpack non-iterable NoneType object

I am running the tool with rtx-installed python on the latest version of MacOS. The provided error message was produced using python 3.9.16, but I've also tried with python 3.11.2 with the same result.

Also I'm running the tool from my home directory, with the full path to backup directory as a parameter (I've verified that I have the Manifest.db and Manifest.plist, among other things, within the backup directory). The backup is encrypted and I've tried with both interactively providing the password as well as providing it as an argument - no changes here either.

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

1 participant