triangle_check icon indicating copy to clipboard operation
triangle_check copied to clipboard

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

Open aleksandarristic opened this issue 2 years ago • 0 comments

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.

aleksandarristic avatar Dec 28 '23 14:12 aleksandarristic