-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import hangs #1737
Comments
osxphotos import
Alternative: use osxphotos sync
Usage: osxphotos sync [OPTIONS]
Sync metadata and albums between Photos libraries.
Use sync to update metadata in a local Photos library to match metadata in
another Photos library. The sync command works by finding identical photos
in the local library and the import source and then updating the metadata in
the local library to match the metadata in the import source. Photos are
considered identical if their original filename and fingerprint match.
The import source can be a Photos library or a metadata export file created
with the --export option.
(...)
1. Export metadata from original Library databaseosxphotos sync --verbose --timestamp --not-hidden --export MetaData.db --library /path/to/your/PhotosLibrary.photoslibrary/ 2. Transfer all the pics to your new Mac. Transfer also the MetaData.db file to your new Mac3. Then open the new library in Photos and import all the pics normally. The sync magic will come next.
4. Open the new library in Photos and import metadata database. Use either --merge or --set as appropriate to your case.caffeinate -s osxphotos sync --verbose --timestamp --import MetaData.db --unmatched --merge albums,description,favorite,keywords,location,title --library ~/Pictures/Photos.photoslibrary --report sync.csv
(...)
Importing metadata for DSC01534-a-2.JPG (ABDC3178-96D3-49FF-82A8-DF8B4AE6FF20)
Adding to album ABC
Creating album 'ABC'
Added DSC01534-a-2.JPG (ABDC3178-96D3-49FF-82A8-DF8B4AE6FF20) to album ABC
(...) |
Thanks @oPromessa for the detailed reply. @breun The collection phase is slower than I'd like but shouldn't be this slow. I'll see if I can replicate this to get some additional data. |
@oPromessa Thanks for your reply. The source library is on my girlfriend's computer and still available. Our use case is that every now and then we want to share specific albums, like when we've taken photos on a vacation and we want those pictures in both of our libraries. What method would you recommend for this if not the one I've tried? |
I'd go with the sync as it will bring all the metadata/changes done on the "source library" into the "destination library". In fact, the intention of sync! You may include the options "--album VacationsXYZ" on step 1. sync export above to limit the operation to just the "specific albums" you want. You may use multiple --album entries which are treated as OR, so brining pics from several albums into the Metadata.db. |
I did some testing with a similar size import and the grouping took 200 seconds. Still far too long but not the 3.5+ hours you experienced. I'll keep digging to see if I can figure out what is going in. |
Describe the bug
I'm trying to import an export created with osxphotos, but after 3.5 hours the step 'Grouping files into import groups' was still at 0%, while the Python process had been running at 100% CPU:
To Reproduce
Steps to reproduce the behavior:
There was no error output, but the import process hadn't made any progress in over 3.5 hours.
Expected behavior
I expected at least some progress within 3.5 hours.
Desktop (please complete the following information):
osxphotos --version
)osxphotos, version 0.68.6
Python 3.12.7 (main, Oct 5 2024, 01:39:55) [Clang 16.0.0 (clang-1600.0.26.3)]
macOS 15.1.0, arm64
Additional context
There are 1448 files in
~/Downloads/export
, including AAE files. The export was created on another Mac with this command:osxphotos export --export-aae --exiftool --album "${ALBUM_NAME}" "${DESTINATION}"
.The text was updated successfully, but these errors were encountered: