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

Failed to unlock the collection #7032

Closed
4 tasks done
cossio opened this issue Nov 15, 2022 · 2 comments
Closed
4 tasks done

Failed to unlock the collection #7032

cossio opened this issue Nov 15, 2022 · 2 comments
Labels
status/duplicate Duplicate issues

Comments

@cossio
Copy link

cossio commented Nov 15, 2022

  • Poetry version: Poetry (version 1.2.2)

  • Python version: 3.9.13

  • OS version and name: Ubuntu 20.04.3 LTS

  • pyproject.toml:

[tool.poetry]
name = "celeba"
version = "0.1.0"
description = ""
authors = ["Cossio"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.9"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
poetry debug info
Poetry
Version: 1.2.2
Python:  3.9.13

Virtualenv
Python:         3.9.13
Implementation: CPython
Path:           /home/cossio/.cache/pypoetry/virtualenvs/celeba-z-TBHf72-py3.9
Executable:     /home/cossio/.cache/pypoetry/virtualenvs/celeba-z-TBHf72-py3.9/bin/python
Valid:          True

System
Platform:   linux
OS:         posix
Python:     3.9.13
Path:       /home/cossio/anaconda3
Executable: /home/cossio/anaconda3/bin/python3.9
  • I am on the latest stable Poetry version, installed using a recommended method.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.
poetry -vvv add numpy

Output: https://gist.github.com/cossio/c7e5b00222bfb1926d71d9a7db79c330

Issue

Trying to add any package produces an error, Failed to unlock the collection!. This is on a fresh poetry install.

@cossio cossio added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Nov 15, 2022
@neersighted
Copy link
Member

Duplicate #1917.

@neersighted neersighted closed this as not planned Won't fix, can't repro, duplicate, stale Nov 15, 2022
@neersighted neersighted added status/duplicate Duplicate issues and removed kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Nov 15, 2022
alexanderkjackson-protonmail-com added a commit to alexanderkjackson-protonmail-com/etcWatch that referenced this issue Sep 14, 2023
See: python-poetry/poetry#1917
Prior duplicate with exact matching error message:
   python-poetry/poetry#7032

Encountered a poetry bug: "Failed to unlock the collection"
Unsure if this bug is per-project. If it recurs:
   Temporary fix:
   ```PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring```
      Or switch to a working backend.
   Permanent fix (disables Python keyring facilities):
   ```python3 -m keyring --disable```

I am uncertain if this bug is elicited by particular project settings,
but it is by particular environments.
Copy link

github-actions bot commented Mar 1, 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 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

2 participants