Struggling to get past this error when running:
WARNING: this program will rewrite your Photos library database and could result in total data loss.
Please ensure you have a backup and that the Photos app is not running!
Do you want to proceed? [y/N]: y
Please open Photos and uncheck the box 'Importing: Copy items to the Photos library' in Photos Preferences.
Type 'y' when you have done this. [y/N]: y
Please quit Photos.
Type 'y' when you have done this. [y/N]: y
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.9/site-packages/psutil/_psosx.py", line 343, in wrapper
return fun(self, *args, **kwargs)
File "/opt/homebrew/lib/python3.9/site-packages/psutil/_psosx.py", line 401, in cmdline
return cext.proc_cmdline(self.pid)
ProcessLookupError: [Errno 3] assume no such process (originated from sysctl(KERN_PROCARGS2) -> EINVAL)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/james/Downloads/RepairPhotosBookmarks-main/repair_photos_bookmarks.py", line 356, in <module>
main()
File "/opt/homebrew/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/opt/homebrew/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/opt/homebrew/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/homebrew/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/Users/james/Downloads/RepairPhotosBookmarks-main/repair_photos_bookmarks.py", line 249, in main
while photos_is_running():
File "/Users/james/Downloads/RepairPhotosBookmarks-main/repair_photos_bookmarks.py", line 46, in photos_is_running
return any(p.name() == "Photos" for p in psutil.process_iter())
File "/Users/james/Downloads/RepairPhotosBookmarks-main/repair_photos_bookmarks.py", line 46, in <genexpr>
return any(p.name() == "Photos" for p in psutil.process_iter())
File "/opt/homebrew/lib/python3.9/site-packages/psutil/__init__.py", line 628, in name
cmdline = self.cmdline()
File "/opt/homebrew/lib/python3.9/site-packages/psutil/__init__.py", line 681, in cmdline
return self._proc.cmdline()
File "/opt/homebrew/lib/python3.9/site-packages/psutil/_psosx.py", line 348, in wrapper
raise NoSuchProcess(self.pid, self._name)
psutil.NoSuchProcess: process no longer exists (pid=27506)
I'm on an M1 Mac Studio. Any pointers appreciated.