Skip to content

RuntimeError: The Secret Service daemon is neither running nor activatable through D-Bus #710

@osnwach

Description

@osnwach

I can't use keyring. When I want to set a new password, I get an error as below:

File "/home/ubuntu/mybotenv/lib/python3.12/site-packages/keyring/backends/fail.py", line 28, in get_password
raise NoKeyringError(msg)
keyring.errors.NoKeyringError: No recommended backend was available. Install a recommended 3rd party backend package; or, install the keyrings.alt package if you want to use the non-recommended backends. See https://pypi.org/project/keyring for details.

When I run:

keyring.backends.SecretService.Keyring.viable
gives: False

keyring.backends.SecretService.Keyring.priority
gives:
File "/home/ubuntu/mybotenv/lib/python3.12/site-packages/keyring/backends/SecretService.py", line 44, in priority
raise RuntimeError(
RuntimeError: The Secret Service daemon is neither running nor activatable through D-Bus

Please, kindly help me to resolve this issue

Operating system is Ubuntu 24.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions