python-poetry / poetry

Python packaging and dependency management made easy
https://python-poetry.org
MIT License
29.83k stars 2.22k forks source link

Poetry stuck on install and update #9416

Closed kitswas closed 2 weeks ago

kitswas commented 2 weeks ago

Description

Reopening #7557 as the problem occurs in the latest version 1.8.3 on Ubuntu 22.

Workarounds

Setting

export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring

Poetry Installation Method

pipx

Operating System

Ubuntu 22

Poetry Version

Poetry (version 1.8.3)

Poetry Configuration

cache-dir = "/home/kitswas/.cache/pypoetry"
experimental.system-git-client = false
installer.max-workers = null
installer.modern-installation = true
installer.no-binary = null
installer.parallel = true
keyring.enabled = true
solver.lazy-wheel = true
virtualenvs.create = true
virtualenvs.in-project = null
virtualenvs.options.always-copy = false
virtualenvs.options.no-pip = false
virtualenvs.options.no-setuptools = false
virtualenvs.options.system-site-packages = false
virtualenvs.path = "{cache-dir}/virtualenvs"  # /home/kitswas/.cache/pypoetry/virtualenvs
virtualenvs.prefer-active-python = false
virtualenvs.prompt = "{project_name}-py{python_version}"
warnings.export = true

Python Sysconfig

No response

Example pyproject.toml

N/A. Happens with all poetry projects.

Poetry Runtime Logs

poetry install -vvv 
Loading configuration file /home/kitswas/.config/pypoetry/config.toml
Using virtualenv: [REDACTED]
Installing dependencies from lock file

Finding the necessary packages for the current system

Package operations: 0 installs, 18 updates, 0 removals, 35 skipped

  - Downgrading idna (3.7 -> 3.6): Pending...
Checking if keyring is available
  - Downgrading pyasn1 (0.6.0 -> 0.5.1): Pending...
[keyring:keyring.backend] Loading KWallet
[keyring:keyring.backend] Loading SecretService
[keyring:keyring.backend] Loading Windows
[keyring:keyring.backend] Loading chainer
[keyring:keyring.backend] Loading libsecret
[keyring:keyring.backend] Loading macOS
Using keyring backend 'SecretService Keyring'
dimbleby commented 2 weeks ago

duplicate #8623 etc please close