question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Unable to store the password for poetry-repository-pypi in the key ring: Failed to unlock the collection!

See original GitHub issue

Hi, I am getting [KeyRingError] Unable to store the password for poetry-repository-pypi in the key ring: Failed to unlock the collection! when running:

poetry config pypi-token.pypi <MY PYPI TOKEN>

Searched for this error everywhere but couldn’t find anything. Running on the last version of Poetry and Ubuntu 18.04 LTS.

Also, if I set the token using an environment variable I get: Unable to retrieve the password for poetry-repository-pypi from the key ring.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:27
  • Comments:24 (4 by maintainers)

github_iconTop GitHub Comments

43reactions
KafCoppeliacommented, Feb 21, 2022

OK keyringerror again. Then fixed it by keyring --disable in terminal on Ubuntu. Then poetry publish --build as usual OK!

27reactions
Carducommented, Feb 17, 2022

Had the same problem in a container, solved it by setting the null keyring within the underlying lib, it’s just an env variable:

PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring

see https://pypi.org/project/keyring/ disabling keyring

Read more comments on GitHub >

github_iconTop Results From Across the Web

python poetry 1.0.0 private repo issue fix - Frank-Mich's Blog
After investigating, I've found out that the password key/value was ... It turns out that keyring comes with a backend aptly named “fail” ......
Read more >
Repositories | Documentation | Poetry - Python dependency ...
If a system keyring is available and supported, the password is stored to and retrieved from the keyring. In the above example, the...
Read more >
Make your passkeys and passwords available on all your ...
Make your passkeys and passwords available on all your devices with iPhone and iCloud Keychain. Use iCloud Keychain to keep your website and...
Read more >
Poetry - The Blue Book
If access to keyring fails or is unsupported, this will fall back to writing the password to the auth.toml file along with the...
Read more >
keyring: Access the System Credential Store from R
A keyring is a collection of keys that can be treated as a unit. A keyring typically has a name and a password...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found