picklepete / pyicloud

A Python + iCloud wrapper to access iPhone and Calendar data.
MIT License
2.57k stars 452 forks source link

unrecognized arguments: --store-in-keyring #348

Open esp32x opened 3 years ago

esp32x commented 3 years ago

The problem

Missing or gone command line option for icloud unrecognized arguments: --store-in-keyring

Environment

Traceback/Error logs

api = PyiCloudService("user@example.com")
Traceback (most recent call last):
  File "/Users/test/PycharmProjects/icloud/main.py", line 119, in <module>
    print_icloud('PyCharm')
  File "/Users/test/PycharmProjects/icloud/main.py", line 17, in print_icloud
    api = PyiCloudService("user@example.com")
  File "/Users/test/PycharmProjects/icloud/venv/lib/python3.9/site-packages/pyicloud/base.py", line 214, in __init__
    password = get_password_from_keyring(apple_id)
  File "/Users/test/PycharmProjects/icloud/venv/lib/python3.9/site-packages/pyicloud/utils.py", line 39, in get_password_from_keyring
    raise PyiCloudNoStoredPasswordAvailableException(
pyicloud.exceptions.PyiCloudNoStoredPasswordAvailableException: No pyicloud password for user@example.com could be found in the system keychain.  
Use the `--store-in-keyring` command-line option for storing a password for this username.

Process finished with exit code 1

Then I try

icloud --username=user@example.com --store-in-keyring

and get

icloud: error: unrecognized arguments: --store-in-keyring
dHumanities commented 11 months ago

Same problem here.