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

Keyring not working correctly on Ubuntu #6354

Closed
eduDorus opened this issue Sep 2, 2022 · 4 comments
Closed

Keyring not working correctly on Ubuntu #6354

eduDorus opened this issue Sep 2, 2022 · 4 comments
Labels
kind/bug Something isn't working as expected status/duplicate Duplicate issues

Comments

@eduDorus
Copy link

eduDorus commented Sep 2, 2022

  • OS version and name: Ubuntu 20.04 LTS
  • Poetry version: 1.2.0
  • Python version: 3.10.6

Issue

Ubuntu 20.04 LTS seems to have a problem with the cleo poetry uses. The keyring is not willing to authenticate unless I set the keyring backend to null.

Project environment contains an empty path in sys_path, ignoring.
[keyring.backend] Loading KWallet
[keyring.backend] Loading SecretService
[keyring.backend] Loading Windows
[keyring.backend] Loading chainer
[keyring.backend] Loading libsecret
[keyring.backend] Loading macOS

  Stack trace:

  29  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/cleo/application.py:329 in run
       327│
       328│             try:
     → 329│                 exit_code = self._run(io)
       330│             except Exception as e:
       331│                 if not self._catch_exceptions:
  KeyringLocked

  Failed to unlock the collection!

  at ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/keyring/backends/SecretService.py:67 in get_preferred_collection
       63│             raise InitError("Failed to create the collection: %s." % e)
       64│         if collection.is_locked():
       65│             collection.unlock()
       66│             if collection.is_locked():  # User dismissed the prompt
    →  67│                 raise KeyringLocked("Failed to unlock the collection!")
       68│         return collection
       69│
       70│     def unlock(self, item):
       71│         if hasattr(item, 'unlock'):

Solution

export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
@eduDorus eduDorus added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Sep 2, 2022
@neersighted neersighted added status/duplicate Duplicate issues and removed status/triage This issue needs to be triaged labels Sep 7, 2022
@neersighted
Copy link
Member

Duplicate #1917 (also, not related to Cleo, but to Keyring)

@neersighted neersighted closed this as not planned Won't fix, can't repro, duplicate, stale Sep 7, 2022
@vahvero
Copy link

vahvero commented Oct 6, 2022

export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring

This resolved our install error today which froze to

[keyring.backend] Loading KWallet
[keyring.backend] Loading SecretService
[keyring.backend] Loading Windows
[keyring.backend] Loading chainer
[keyring.backend] Loading libsecret
[keyring.backend] Loading macOS
# nothing happens after this, execution is in frozen state

text when installing with maximum verbosity. I could not deduce whether this is an issue with poetry or some derivative libraries.

Poetry (version 1.2.1)

@pranavm1502
Copy link

export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring

This resolved our install error today which froze to

[keyring.backend] Loading KWallet
[keyring.backend] Loading SecretService
[keyring.backend] Loading Windows
[keyring.backend] Loading chainer
[keyring.backend] Loading libsecret
[keyring.backend] Loading macOS
# nothing happens after this, execution is in frozen state

text when installing with maximum verbosity. I could not deduce whether this is an issue with poetry or some derivative libraries.

Poetry (version 1.2.1)

This also holds true for Peotry (version 1.4.2) and Ubuntu 20.04 LTS

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

4 participants