RhetTbull / osxphotos

Python app to work with pictures and associated metadata from Apple Photos on macOS. Also includes a package to provide programmatic access to the Photos library, pictures, and metadata.
MIT License
2.16k stars 99 forks source link

Path does not exist? #1266

Closed CarotMagic closed 1 year ago

CarotMagic commented 1 year ago

I cant seem to get past this error.

My Command: Osxphotos export \ --album instagram \ --db /Users/landy/Pictures/PhotosLibrary.photoslibrary \ “/Volumes/T7 Touch/iPhone Backup”

Error: WARNING: photos_library is deprecated. The PHOTOS_LIBRARY argument is deprecated and will be removed in a future version of osxphotos. Use --library instead to specify the Photos Library path. Usage: Osxphotos export [OPTIONS] [PHOTOS_LIBRARY]... DEST Try 'Osxphotos export -h' for help.

Error: Invalid value for '[PHOTOS_LIBRARY]...': Path '“/Volumes/T7' does not exist.

RhetTbull commented 1 year ago

The deprecation warning happens only if you don't specify --db or --library (they're synonyms for the same thing). The error .': Path '“/Volumes/T7' indicates you've misquoted the path to the destination export folder. It may be a formatting thing when you typed the command in here but I do notice the quotes around the export folder path are not true double-quotes. I think what osxphotos is actually picking up is the destination path is “/Volumes/T7 and it thinks you're passing the library argument after the space after T7 as Touch/iPhone Backup”. Try copying the following and pasting it into Terminal:


osxphotos export \
--album instagram \
--db /Users/landy/Pictures/PhotosLibrary.photoslibrary \
"/Volumes/T7 Touch/iPhone Backup"
CarotMagic commented 1 year ago

You are so right! I've tried both --db and --library and would get the same results. Then I fixed the smart quotes settings under (Edit>Substitutions>Uncheck Smart Quotes) and it fixed it!

Who knew this small little thing could mess me up for 4 hours...