Skip to content

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

@aleksandarristic

Description

@aleksandarristic

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions