“photos.db” couldn’t be copied because you don’t have permission to access “osxphotos__7gk2b3z” #1017
Unanswered
tdavidesrifrance
asked this question in
Q&A
Replies: 1 comment 2 replies
-
osxphotos needs to create some temporary files during execution and it looks like this process is failing. It's weird as osxphotos creates the temporary folder but then fails to copy the files. Here are two things to try:
If neither works, let me know and I'll explore some more to see if I can replicate this. I am running osxphotos on Ventura to export to external SSD and it works fine for me. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I have been using osxphotos for years and I would like to begin by congratulating you on your work!
I recently installed my mac (Ventura) on an external ssd to improve performance. Everything works fine.
Today, after installing osxphotos, my python script no longer works with the error below. I tried different things with permissions but nothing worked. Do you have an idea, please ? Thanks in advance
Error copying/Volumes/Utilisateurs/lepouldu/Pictures/Photothèque.photoslibrary/database/photos.db to /var/folders/0y/4xkpjl2j02x_t3f4wlykjtxh0000gn/T/osxphotos__7gk2b3z/photos.db
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/osxphotos/photosdb/photosdb.py", line 618, in _copy_db_file
FileUtil.copy(fname, dest_path)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/osxphotos/fileutil.py", line 132, in copy
raise OSError(error[1])
OSError: Error Domain=NSCocoaErrorDomain Code=513 "“photos.db” couldn’t be copied because you don’t have permission to access “osxphotos__7gk2b3z”." UserInfo={NSSourceFilePathErrorKey=/Volumes/Utilisateurs/lepouldu/Pictures/Photothèque.photoslibrary/database/photos.db, NSUserStringVariant=(
Copy
), NSDestinationFilePath=/var/folders/0y/4xkpjl2j02x_t3f4wlykjtxh0000gn/T/osxphotos__7gk2b3z/photos.db, NSFilePath=/Volumes/Utilisateurs/lepouldu/Pictures/Photothèque.photoslibrary/database/photos.db, NSUnderlyingError=0x6000024bbed0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Volumes/Utilisateurs/lepouldu/Scripts/ExportPhotos/exportPhotosAll.py", line 71, in
photosdb = osxphotos.PhotosDB(library_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/osxphotos/photosdb/photosdb.py", line 324, in init
self._tmp_db = self._copy_db_file(self._dbfile)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/osxphotos/photosdb/photosdb.py", line 626, in _copy_db_file
raise Exception
Exception
Beta Was this translation helpful? Give feedback.
All reactions