Skip to content

Saving to Keyring in Docker on synology NAS #539

@Jholmgren5

Description

@Jholmgren5

Having an issue with Python and saving to system keyring. Using a fully updated synology NAS with Docker. Everything works fine, and I can pull photos down, log in, 2FA, etc, all working. However when I go to save my iCloud password, after i type “y”, this is the error:

ave password in keyring? [y/N]: y
Traceback (most recent call last):
File "/usr/bin/icloud", line 8, in
sys.exit(main())
File "/usr/lib/python3.9/site-packages/pyicloud_ipd/cmdline.py", line 209, in
main
utils.store_password_in_keyring(username, password)
File "/usr/lib/python3.9/site-packages/pyicloud_ipd/utils.py", line 53, in sto
re_password_in_keyring
return keyring.set_password(
File "/usr/lib/python3.9/site-packages/keyring/core.py", line 48, in set_passw
ord
_keyring_backend.set_password(service_name, username, password)
File "/usr/lib/python3.9/site-packages/keyrings/alt/file_base.py", line 90, in
set_password
password_base64 = base64.encodestring(password_encrypted).decode()
AttributeError: module 'base64' has no attribute 'encodestring'

When I type in my password, my iDevice does pop up with a 2FA alert.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions