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.04k stars 95 forks source link

shared albums with missing photos don't download consistently on Monterey #626

Open RhetTbull opened 2 years ago

RhetTbull commented 2 years ago

Ok, so the behaviour is more inconsistent that I thought. I did try to repair my library before I read your last message, as I had read that could sort issues with regular export of photos.

I tried downloading a different album where my code had resulted in an empty folder. This time some of the photos/videos were downloaded (maybe 10 out of 125). I tried again, and the count went up to ~30.

As for your second suggestion, using --use-photokit fails with:

Error exporting photo (CED06217-BEC1-47CD-A539-3E36017C24FC: IMG_0107.JPG) as IMG_0107.JPG: Could not get authorizaton to use Photos: auth_status = 0

Add: python actually crashes when using --use-photokit. log attached. osxphotos_crash.txt

Originally posted by @moffat in https://github.com/RhetTbull/osxphotos/discussions/624#discussioncomment-2127306

moffat commented 2 years ago

@RhetTbull, I have an older MBP running Catalina. I ran the same python code we discussed in #624 and it worked fine (and vastly faster!), so this does seem to be a Monterey problem.

RhetTbull commented 2 years ago

Thanks -- that's good feedback. I also use an old MBP running Catalina for my development...no problems! I will try to add some instrumentation to get more data on Monterey but until I eventually get access to a Monterey machine, it'll be hard to debug this.

moffat commented 2 years ago

Yeah, I understand. I was about to upgrade that machine but I'll hold off now to keep my shared album backups going! Thank you for all your time and this great software.