Closed user799595 closed 1 year ago
maybe keyring stuff per #1917
Thanks @dimbleby.
I tried the following:
$ export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
$ poetry install -vvvv
Loading configuration fileLibrary/Application Support/pypoetry/config.toml
Adding repository PyPI (https://pypi.org/simple/) and setting it as primary
Adding repository internal (https://internal/artifactory/api/pypi/python-releases/simple) and setting it as supplemental
Using virtualenv: test/.venv
Installing dependencies from lock file
Finding the necessary packages for the current system
Package operations: 2 installs, 0 updates, 0 removals
β’ Installing internal_dependency (1.0.0): Pending...
No suitable keyring backend found
No suitable keyring backends were found
Keyring is not available, credentials will be stored and retrieved from configuration files as plaintext.
Creating new session for internal
<rest of output identical>
Interestingly, it works if I disable the cache
poetry install --no-cache
This issue happened only with my homebrew installed poetry, wasn't able to reproduce with git cloned version.
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.
[[tool.poetry.source]] name = "internal" url = "https://internal/artifactory/api/pypi/internal-python-releases/simple/" priority = "supplemental"
[tool.poetry] name = "test project" version = "0.0.1" description = "Test" authors = ["user799595"]
[tool.poetry.dependencies] python = ">=3.10,<3.11" internal_dependency = { version = "^1.0.0" }
$ poetry install Installing dependencies from lock file
Package operations: 2 installs, 0 updates, 0 removals
β’ Installing internal_dependency (1.0.0): Failed
RuntimeError
Retrieved digest for link internal_dependency-1.0.0-py3-none-any.whl(md5:) not in poetry.lock metadata {'sha256:'}
at poetry/1.5.1/venv/lib/python3.10/site-packages/poetry/installation/chooser.py:117 in _get_links 113β 114β selected_links.append(link) 115β 116β if links and not selected_links: β 117β raise RuntimeError( 118β f"Retrieved digest for link {link.filename}({h}) not in poetry.lock" 119β f" metadata {hashes}" 120β ) 121β
$ poetry install -vvvv Loading configuration file Library/Application Support/pypoetry/config.toml Adding repository PyPI (https://pypi.org/simple/) and setting it as primary Adding repository internal (https://internal/artifactory/api/pypi/python-releases/simple) and setting it as supplemental Using virtualenv: test/.venv Installing dependencies from lock file
Finding the necessary packages for the current system
Package operations: 2 installs, 0 updates, 0 removals
β’ Installing internal_dependency (1.0.0): Pending... [keyring.backend] Loading KWallet [keyring.backend] Loading SecretService [keyring.backend] Loading Windows [keyring.backend] Loading chainer [keyring.backend] Loading libsecret [keyring.backend] Loading macOS Creating new session for internal [urllib3.connectionpool] Starting new HTTPS connection (1): internal:443 [urllib3.connectionpool] https://internal:443 "GET /artifactory/api/pypi/python-releases/simple/internal_dependency/ HTTP/1.1" 200 None Source (internal): Downloading: https://internal/artifactory/api/pypi/python-releases/internal_dependency/1.0.0/internal_dependency-1.0.0-py3-none-any.whl#md5=
[urllib3.connectionpool] https://internal:443 "GET /artifactory/api/pypi/python-releases/internal_dependency/1.0.0/internal_dependency-1.0.0-py3-none-any.whl HTTP/1.1" 200 100003