FindMyHistory icon indicating copy to clipboard operation
FindMyHistory copied to clipboard

Full Disk Access issue

Open yasingunaydiin opened this issue 11 months ago • 7 comments

I've granted it access in the Security settings and I've tried to add 'sudo' in the commandline but I cant get it to work.

sudo git clone https://github.com/fjxmlzn/FindMyHistory.git cd FindMyHistory pip3 install -r requirements.txt python3 main.py Password: fatal: destination path 'FindMyHistory' already exists and is not an empty directory. Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: tabulate[widechars] in /Users/yasingunaydin/Library/Python/3.9/lib/python/site-packages (from -r requirements.txt (line 1)) (0.9.0) Requirement already satisfied: wcwidth in /Users/yasingunaydin/Library/Python/3.9/lib/python/site-packages (from tabulate[widechars]->-r requirements.txt (line 1)) (0.2.13) WARNING: You are using pip version 21.2.4; however, version 24.0 is available. You should consider upgrading via the '/Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade pip' command. Traceback (most recent call last): File "/Users/yasingunaydin/FindMyHistory/main.py", line 125, in <module> curses.wrapper(partial(main, args=args)) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/curses/__init__.py", line 94, in wrapper return func(stdscr, *args, **kwds) File "/Users/yasingunaydin/FindMyHistory/main.py", line 91, in main log_manager.refresh_log() File "/Users/yasingunaydin/FindMyHistory/lib/log_manager.py", line 83, in refresh_log items_dict = self._get_items_dict() File "/Users/yasingunaydin/FindMyHistory/lib/log_manager.py", line 60, in _get_items_dict raise RuntimeError(f'No devices found. Please check if Full Disk ' RuntimeError: No devices found. Please check if Full Disk Access has been granted to Terminal. yasingunaydin@Air-van-Yasin FindMyHistory %

yasingunaydiin avatar Mar 13 '24 14:03 yasingunaydiin

same problem here!:(

arielleko1 avatar Mar 17 '24 11:03 arielleko1

This sounds like Terminal does not have Full Write Access (it doesn't get it by default).

https://www.alfredapp.com/help/troubleshooting/indexing/terminal-full-disk-access/

Make sure to grant it this access via the "Privacy" tab in System Preferences. @yasingunaydiin @arielleko1

kamikaziH2Omln avatar Mar 22 '24 19:03 kamikaziH2Omln

This sounds like Terminal does not have Full Write Access (it doesn't get it by default).

https://www.alfredapp.com/help/troubleshooting/indexing/terminal-full-disk-access/

Make sure to grant it this access via the "Privacy" tab in System Preferences. @yasingunaydiin @arielleko1

I have granted it access like i said. Turned it off and on 3 times. @kamikaziH2Omln

yasingunaydiin avatar Mar 22 '24 19:03 yasingunaydiin

I'm having a similar issue as well, and I'm wondering if its associated with a recent MacOS update. I had the script working this morning on Sonoma 14.3.1 (M1 MacMini). I then upgraded to 14.4.1 and now I'm getting errors that suggest checking Full Write Access (which I've had enabled since when everything was working).

johndugan@Johns-Mac-mini-2 FindMyHistory % python3 main.py                                  
Traceback (most recent call last):
  File "/Users/johndugan/FindMyHistory/main.py", line 125, in <module>
    curses.wrapper(partial(main, args=args))
  File "/opt/homebrew/Cellar/[email protected]/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
  File "/Users/johndugan/FindMyHistory/main.py", line 91, in main
    log_manager.refresh_log()
  File "/Users/johndugan/FindMyHistory/lib/log_manager.py", line 83, in refresh_log
    items_dict = self._get_items_dict()
  File "/Users/johndugan/FindMyHistory/lib/log_manager.py", line 60, in _get_items_dict
    raise RuntimeError(f'No devices found. Please check if Full Disk '
RuntimeError: No devices found. Please check if Full Disk Access has been granted to Terminal.

duganj avatar Mar 28 '24 19:03 duganj

See comments here, looks like Apple may have encrypted those .data files with the recent update. https://gist.github.com/henrik242/1da3a252ca66fb7d17bca5509a67937f

duganj avatar Mar 28 '24 19:03 duganj

I am writing this for people like me who get errors due to simple mistakes:

  1. You must be logged in to osx with your Apple ID.
  2. You must run the FindMy app at least once.
  3. As Duganj said, if you have run FindMy even once, there should be a ~~.data file in the $HOME/Library/Caches/com.apple.findmy.fmipcore/ path. 4.Full Access permission must be granted. (Terminal permission must be granted as in the README text.)
  4. As Duganj said, it cannot be run on sonoma or later versions where .data is encrypted.

Location tracking is not supported in my country, so it appears to be NULL.

wkddudwo avatar Jun 12 '24 09:06 wkddudwo

I am writing this for people like me who get errors due to simple mistakes:

  1. You must be logged in to osx with your Apple ID.
  2. You must run the FindMy app at least once.
  3. As Duganj said, if you have run FindMy even once, there should be a ~~.data file in the $HOME/Library/Caches/com.apple.findmy.fmipcore/ path. 4.Full Access permission must be granted. (Terminal permission must be granted as in the README text.)
  4. As Duganj said, it cannot be run on sonoma or later versions where .data is encrypted.

Location tracking is not supported in my country, so it appears to be NULL.

스크린샷 2024-06-12 180224

wkddudwo avatar Jun 12 '24 09:06 wkddudwo