Skip to content
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

error with keyring on raspberry #11

Open
streanger opened this issue Mar 26, 2024 · 1 comment
Open

error with keyring on raspberry #11

streanger opened this issue Mar 26, 2024 · 1 comment
Assignees

Comments

@streanger
Copy link
Owner

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:

@streanger streanger self-assigned this Mar 26, 2024
@streanger
Copy link
Owner Author

following command will prevent app (abuse) from crash, but now API_KEY won't be set at all (even using internal key command):

  • keyring --disable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant