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

KeyRingError: Failed to create the collection: Prompt dismissed.. #3012

Closed
3 tasks done
AbstractUmbra opened this issue Oct 1, 2020 · 3 comments
Closed
3 tasks done
Labels
kind/question User questions (candidates for conversion to discussion)

Comments

@AbstractUmbra
Copy link

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: Debian 10
  • Poetry version: Poetry version 1.0.10
  • Link of a Gist with the contents of your pyproject.toml file: Link!

Issue

Hello!
Just starting out using poetry to build and publish a package - when trying to configure my PyPI token with poetry config pypi-token.pypi <redacted token> I get the following exception:

Loading configuration file /home/penumbra/.config/pypoetry/config.toml

[KeyRingError]
Unable to store the password for poetry-repository-pypi in the key ring: Failed to create the collection: Prompt dismissed..

Traceback (most recent call last):
  File "/home/penumbra/.poetry/lib/poetry/_vendor/py3.8/clikit/console_application.py", line 131, in run
    status_code = command.handle(parsed_args, io)
  File "/home/penumbra/.poetry/lib/poetry/_vendor/py3.8/clikit/api/command/command.py", line 120, in handle
    status_code = self._do_handle(args, io)
  File "/home/penumbra/.poetry/lib/poetry/_vendor/py3.8/clikit/api/command/command.py", line 171, in _do_handle
    return getattr(handler, handler_method)(args, io, self)
  File "/home/penumbra/.poetry/lib/poetry/_vendor/py3.8/cleo/commands/command.py", line 92, in wrap_handle
    return self.handle()
  File "/home/penumbra/.poetry/lib/poetry/console/commands/config.py", line 216, in handle
    password_manager.set_pypi_token(m.group(2), token)
  File "/home/penumbra/.poetry/lib/poetry/utils/password_manager.py", line 139, in set_pypi_token
    self.keyring.set_password(name, "__token__", token)
  File "/home/penumbra/.poetry/lib/poetry/utils/password_manager.py", line 55, in set_password
    raise KeyRingError(

I have searched for this exception and found no other issues. similar. Any help is appreciated!

@AbstractUmbra AbstractUmbra added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Oct 1, 2020
@abn
Copy link
Member

abn commented Oct 1, 2020

Duplicate of #2692

@abn
Copy link
Member

abn commented Oct 1, 2020

@AbstractUmbra please refer to the above issue. This is because your keyring is locked, and seems your shell was not able to create the prompt unlock.

@abn abn added kind/question User questions (candidates for conversion to discussion) and removed kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Oct 1, 2020
@abn abn closed this as completed Oct 1, 2020
Copy link

github-actions bot commented Mar 3, 2024

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 Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/question User questions (candidates for conversion to discussion)
Projects
None yet
Development

No branches or pull requests

2 participants