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.17k stars 100 forks source link

Unable to run osxphotos successfully #1023

Closed OmarWazzan closed 1 year ago

OmarWazzan commented 1 year ago

Before submitting a bug report, please ensure you are running the most recent version of osxphotos and that the bug is reproducible on the latest version

OSXPhotos is upgraded to the latest version.

Describe the bug A clear and concise description of what the bug is.

When running a command, whether or not I specify the library path using --library or --db, or letting it default, the command fails and errors out, but have tried various differences in the commands, but can never get it to work.

To Reproduce Steps to reproduce the behavior:

  1. What' the full command line you used with osxphotos?
  2. What was the error output?

1: command is

osxphotos export ~/Desktop/osxphotos \
--library "/Users/omar/Pictures/Photos Library.photoslibrary" \
--export-by-date \
--download-missing \
--use-photokit \
--exportdb \
--retry 3 \filename “{original_name}” \
--exiftool \
--person-keyword \
--sidecar xmp \
--touch-file

2: Error is:

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.
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 '3' does not exist.

Expected behavior A clear and concise description of what you expected to happen.

A successful run of osxphotos

Desktop (please complete the following information):

Thanks, appreciated!

RhetTbull commented 1 year ago

You're missing the -- before filename so osxphotos thinks filename is the photos library

OmarWazzan commented 1 year ago

You're missing the -- before filename so osxphotos thinks filename is the photos library

Ah, nice catch. However, tried again and is still errors out

OmarWazzan commented 1 year ago

Nevermind - worked after adding a path to --exportdb

Thank you!