Skip to content

error with keyring on raspberry #11

Description

@streanger

part of error message:

(...)
secretstorage.exceptions.PromptDismissedException: Prompt dismissed.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/pi/.local/bin/abuse", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/pi/.local/lib/python3.12/site-packages/abuseipdb_wrapper/abuseipdb_wrapper.py", line 835, in main
    API_KEY = store_api_key()
              ^^^^^^^^^^^^^^^
  File "/home/pi/.local/lib/python3.12/site-packages/abuseipdb_wrapper/utils.py", line 72, in store_api_key
    API_KEY = keyring.get_password("abuse", username)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/.local/lib/python3.12/site-packages/keyring/core.py", line 56, in get_password
    return get_keyring().get_password(service_name, username)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/.local/lib/python3.12/site-packages/keyring/backends/SecretService.py", line 78, in get_password
    collection = self.get_preferred_collection()
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/.local/lib/python3.12/site-packages/keyring/backends/SecretService.py", line 63, in get_preferred_collection
    raise InitError(f"Failed to create the collection: {e}.") from e
keyring.errors.InitError: Failed to create the collection: Prompt dismissed..

as far as I understand it, problem is related directly to keyring, but it should be catched somehow on my side:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions