Help urgently needed for utter noob who can't get his command to run! #612
-
so i sat and became a 'student' of osxphotos command line control lol. I've put together a command so that I can get as much as possible as I can from my photo library export so that I can migrate to LRclassic. here it is: when I put it into terminal on mac I get this: Current thread 0x0000000102704580 (most recent call first): I don't know what that means but I'm guessing it is something to do with python? what do I need to do to fix this please? |
Beta Was this translation helpful? Give feedback.
Replies: 16 comments 58 replies
-
ps i've just reinstalled the latest version of python and installed the certificate but it hasn't helped :( |
Beta Was this translation helpful? Give feedback.
-
as an important side note, once i get it all working, is there anything else I can do to export any more stuff from photos library? |
Beta Was this translation helpful? Give feedback.
-
I see the confusion...the help uses A couple of notes:
I think this will work:
|
Beta Was this translation helpful? Give feedback.
-
thanks Rhet, as always. Super quick response and super helpful information. can I also ask if --missing, or another command, will find any photos within the .photolibrary file that are no longer in the photos database (effectively lost but present to export if found) and allow me to export them? is there anything else I need to do to get the most out of my export? |
Beta Was this translation helpful? Give feedback.
-
So, this is my first time actually (finally) exporting my library to prepare for migration to LR classic. My mac is churning away at a 1.87tb photos library! i have a feeling it is going to take a long time (especially with all the extra commands I included lol) I just hope it doesn't crash half way through. actually can I just start the command again and it will pick up where it crashed or will it start it all again? |
Beta Was this translation helpful? Give feedback.
-
That's going to take a long time! I recommend you make sure you have the most current version of osxphotos. I rewrote the export code in version 0.45 to make the export process faster (released yesterday).
Yes, if you run it with
Only if you are using I recommend you only download a subset of photos before the whole 1.87 TB library until you tested the export parameters and can ensure you can import everything to LR. For example, you could use --album to export only certain albums or --from-date to export only photos newer than a certain date. You can also select photos in Photos then use --selected. |
Beta Was this translation helpful? Give feedback.
-
actually i've just seen this error popup: Error adding photo 2020-02-08 11.48.53.JPG (DAD9B278-830E-4BD9-BD2E-FA3D6E8F85D1) to album OSXphotosEXPORTED: Photos got an error: AppleEvent timed out. (-1712) app='Photos' range=18878-18903 probably because I minimised osxphotos and photos windows? and have started using another app now and it is slowing down photos operations. as the idea above, it may be useful to extend how long the script waits for photos to respond with individual images/videos too? |
Beta Was this translation helpful? Give feedback.
-
adding media to photos albums is taking far too long (because of photos and a large library). I'm going to run it without this feature. |
Beta Was this translation helpful? Give feedback.
-
i also notice that there was a beta fix for dealing with raw files. is this fixed enough to be confident I don't need to check through my raw files? |
Beta Was this translation helpful? Give feedback.
-
Yes. I need to clean up the docs as the RAW issue is fixed. By default, osxphotos will export both RAW and JPEG images for RAW+JPEG pairs.
No. I have to fix the code. |
Beta Was this translation helpful? Give feedback.
-
i am foreseeing one issue that i will have in the future (because I am exporting date ranges). when I scroll to the top of my photos library the date range at the top says "31 Dec 1 BC - 4 Apr 1933 AD". it is a bit odd considering I have photos from 2019 in there. |
Beta Was this translation helpful? Give feedback.
-
Still working on the fix for the files with Also, I should have mentioned to your earlier comment about the AppleScript timeout errors and Photos crashing, it would be better to add Since you're using
If you're exporting each export to the same directory, then use |
Beta Was this translation helpful? Give feedback.
-
I think 0.45.4 fixes the problem with files named |
Beta Was this translation helpful? Give feedback.
-
That's exactly what osxphotos does (but it looks at file signatures, not checksums as computing checksums is as slow as just exporting the file). It's odd it would take as long. One thing to note is that osxphotos needs to read the entire Photos database in to memory to process the data. For my 80GB Library (27k images), this is about 500MB. Your library is so large that this could be taking up a fair bit of time depending on speed of computer and how much RAM you have. Did any photos get updated? It should be pretty fast if not exporting any photos. Also, if exporting over a NAS it will be faster if you store the export database on the local machine using the --exportdb option. (But if you didn't previously do this, you'll want to copy the original export database from the export location (~/path/to/export/.osxphotos_export.db). |
Beta Was this translation helpful? Give feedback.
-
That'll definitely do it. osxphotos needs to copy the photo off the external disk to the local disk, run exiftool on it, then copy it to the other external disk. There's not really a way to speed that up too much (except maybe multiprocessing...see below) Moving the export database using |
Beta Was this translation helpful? Give feedback.
-
Hi rhet, i need your advise again 😂. I've come across some old libraries that i want to export. Using my normal commands in finding that photos brings up a prompt about every single photo that is missing. This is too much to hold escape button for ages to get through the library. How can i skip missing files automatically? Do i just turn off the command that tells oddities to download missing photos? I noticed you have added ramdb too! I'm excited to give that a go, thank you! 👍 |
Beta Was this translation helpful? Give feedback.
I see the confusion...the help uses
<Photos database path>
as a placeholder for the photos database. The<
and>
shouldn't be used as part of the actual argument. They're a common idiom in command lines tools to mean "placeholder". I'll try to clarify the help.A couple of notes:
--db <"/Volumes/8Tb HDD 01/Storage/Pictures/Photos/zPhotos Library/Photos Library.photoslibrary">
should be
--db "/Volumes/8Tb HDD 01/Storage/Pictures/Photos/zPhotos Library/Photos Library.photoslibrary"
--export-db
argument needs to be a file, not a folder (you specified your Desktop folder). I don't think you really need to specify this (it's a niche use case to change the export-db location) but if you really …