-
Notifications
You must be signed in to change notification settings - Fork 573
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
icloud and keyring not saved #871
Comments
my steps: docker run --rm -it debian:bookworm in container: apt-get update
apt-get install -y wget
wget https://github.com/icloud-photos-downloader/icloud_photos_downloader/releases/download/v1.20.0/icloudpd-1.20.0-linux-arm64
chmod +x ./icloudpd-1.20.0-linux-arm64
./icloudpd-1.20.0-linux-arm64 -u [email protected] -d . --recent 1 I got prompt for password, then MFA code, and then one image was downloaded. |
key ring saves password per user. as long as you have different user names, you can have separate passwords saved in keyring
|
Thank you |
Sorry for confusing you. I used docker as a way to get access to a clean debian install. Inside the container I tested as if I were using debian terminal (as root of course). To be clear: I was not able to repro your issue on a clean debian bookworm x64 (as a container) and icloudpd v1.20.0 linux amd64 binary. |
Thank you Maybe it is the lxc template with a minimal System? |
|
I will test it now, bit I habe see you use icloudpd I have tried with icloud for the keyring: https://github.com/icloud-photos-downloader/icloud_photos_downloader/blob/master/FAQ.md#system-keyring |
Now I have tried with a fresh Debian:bookworm Docker
Now the Commands with output: Add data to keyring
Try to list libraries with keyring
Only for a test to delete keyring:
Your example direct and without keyring is working.
|
I think I getting better idea of the problem. icloudpd --username [email protected] --list-libraries --password-provider keyring fails when you do not have keyring. That is expected because you specified only one password provider and it does not have password. If you specify ./icloud-1.20.0-linux-amd64 --username [email protected] exception looks like a recently introduced bug. I'll take a look at it. As a work around you can try using prior version of |
|
1.20.1 doesn't appear to fix this for me, see output below. Not sure what else I should provide to help troubleshoot.
|
More testing...
|
Interesting. When I try adding a new Apple account with So I figured maybe this other account is just messed up and needs to be resetup completely. So I deleted the cookie files in ~/.pyicloud and ran
|
@petebocken errors look like macOS-specific issues. There are reports about similar issue for other apps on macOS, but I did not find root cause, solution, or work around. Old #469 in this repo seems to solve similar issue somehow. |
@AndreyNikiforov it appears it's completely hosed, I can't get anything to work. Just confirming, icloudpd should work with python 3.12, correct? I tried uninstalling all versions but that and no luck. I had 3.9, 3.10, 3.11, and 3.12 installed initially. I'm trying to get the binary to work for now, but not sure exactly if I'm doing it right:
|
try regular, not experimental, version icloudpd-1.20.1-macos-amd64. You do not need python for binary packages. |
@AndreyNikiforov 1.19.1 works for me, but not 1.20.1. I was also able to pop the binary path into my script that I always use and it ran just fine and downloaded photos. This makes sense to me since everything stopped working as of 1.20/1.20.1. So doesn't seem like it's particularly a Mac issue or my Mac exactly? Something was introduced in 1.20/1.20.1 that broke this for me.
|
Another update so far... I switched to using the binaries since the pip version continues to not work after 1.19.1. Binaries have been working up until 1.21.0. I get the error below now. 1.20.4 binary works fine.
|
I think I found the problem. In 1.20.0 we introduced pluggable password providers. As part of that change, keyring provider got a capability to save validated password to key chain - in 1.19 and before saving password to keychain was only possible from separate There is some unresolved error in macos when saving password to keychain throws an error. Seems that it is not only related to |
Steps to Reproduce
System
Tested on Debian Bookworm and Alpine
Solution to install
I have downloaded this two files, copied to /usr/local/bin and get correct chmod
icloudpd-1.20.0-linux-amd64
icloud-1.20.0-linux-amd64
My system:
Reproduce
In your example the system should ask for the password. But I get this message:
If I use
I can enter the MFA Code. But I think Keyring don't work
I get this Traceback:
And if I try to delete the keyring I get also en error
Other Question:
The text was updated successfully, but these errors were encountered: