poetry: Poetry stuck when installing GCP keyring plugin
- Poetry version: 1.2.1
- Python version: 3.9.2
- OS version and name: Debian GNU/Linux 11 (bullseye)
- pyproject.toml: not relevant
- 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.
Issue
I have been trying to install the GCP keyring plugin, but the installer got stuck. It has been resolving for an entire night, so I reran it with -vvv and noticed it stops after indicating it is creating a new session for files.pythonhosted.org . This is the full output:
xyz@xyz:~ $ poetry self add keyrings.google-artifactregistry-auth -vvv
[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 pypi.org
Source (PyPI): 6 packages found for keyrings-google-artifactregistry-auth *
Using version ^1.1.1 for keyrings.google-artifactregistry-auth
Updating dependencies
Resolving dependencies...
1: fact: poetry-instance is 1.2.1
1: derived: poetry-instance
1: fact: poetry-instance depends on poetry (1.2.1)
1: fact: poetry-instance depends on keyrings.google-artifactregistry-auth (^1.1.1)
1: selecting poetry-instance (1.2.1)
1: derived: keyrings.google-artifactregistry-auth (>=1.1.1,<2.0.0)
1: derived: poetry (==1.2.1)
Creating new session for pypi.org
Source (PyPI): 1 packages found for poetry 1.2.1
Source (PyPI): 1 packages found for keyrings-google-artifactregistry-auth >=1.1.1,<2.0.0
1: fact: keyrings-google-artifactregistry-auth (1.1.1) depends on pluggy (*)
1: fact: keyrings-google-artifactregistry-auth (1.1.1) depends on requests (*)
1: fact: keyrings-google-artifactregistry-auth (1.1.1) depends on google-auth (*)
1: fact: keyrings-google-artifactregistry-auth (1.1.1) depends on keyring (*)
1: selecting keyrings-google-artifactregistry-auth (1.1.1)
1: derived: keyring
1: derived: google-auth
1: derived: requests
1: derived: pluggy
Source (PyPI): 179 packages found for keyring *
Source (PyPI): 115 packages found for google-auth *
Source (PyPI): No release information found for requests-0.0.1, skipping
Source (PyPI): No release information found for requests-0.12.01, skipping
Source (PyPI): No release information found for requests-2.15.0, skipping
Source (PyPI): 144 packages found for requests *
Source (PyPI): 17 packages found for pluggy *
1: fact: poetry (1.2.1) depends on dulwich (>=0.20.46,<0.21.0)
1: fact: poetry (1.2.1) depends on urllib3 (>=1.26.0,<2.0.0)
1: fact: poetry (1.2.1) depends on xattr (>=0.9.7,<0.10.0)
1: fact: poetry (1.2.1) depends on virtualenv (>=20.4.3,<20.4.5 || >20.4.5,<20.4.6 || >20.4.6)
1: fact: poetry (1.2.1) depends on tomlkit (>=0.11.1,<0.11.2 || >0.11.2,<0.11.3 || >0.11.3,<1.0.0)
1: fact: poetry (1.2.1) depends on shellingham (>=1.5,<2.0)
1: fact: poetry (1.2.1) depends on requests-toolbelt (>=0.9.1,<0.10.0)
1: fact: poetry (1.2.1) depends on requests (>=2.18,<3.0)
1: fact: poetry (1.2.1) depends on platformdirs (>=2.5.2,<3.0.0)
1: fact: poetry (1.2.1) depends on pkginfo (>=1.5,<2.0)
1: fact: poetry (1.2.1) depends on pexpect (>=4.7.0,<5.0.0)
1: fact: poetry (1.2.1) depends on packaging (>=20.4)
1: fact: poetry (1.2.1) depends on keyring (>=21.2.0)
1: fact: poetry (1.2.1) depends on jsonschema (>=4.10.0,<5.0.0)
1: fact: poetry (1.2.1) depends on importlib-metadata (>=4.4,<5.0)
1: fact: poetry (1.2.1) depends on html5lib (>=1.0,<2.0)
1: fact: poetry (1.2.1) depends on crashtest (>=0.3.0,<0.4.0)
1: fact: poetry (1.2.1) depends on cleo (>=1.0.0a5,<2.0.0)
1: fact: poetry (1.2.1) depends on cachy (>=0.3.0,<0.4.0)
1: fact: poetry (1.2.1) depends on cachecontrol (>=0.12.9,<0.13.0)
1: fact: poetry (1.2.1) depends on poetry-plugin-export (>=1.0.7,<2.0.0)
1: fact: poetry (1.2.1) depends on poetry-core (1.2.0)
1: selecting poetry (1.2.1)
1: derived: poetry-core (==1.2.0)
1: derived: poetry-plugin-export (>=1.0.7,<2.0.0)
1: derived: cachecontrol[filecache] (>=0.12.9,<0.13.0)
1: derived: cachy (>=0.3.0,<0.4.0)
1: derived: cleo (>=1.0.0a5,<2.0.0)
1: derived: crashtest (>=0.3.0,<0.4.0)
1: derived: html5lib (>=1.0,<2.0)
1: derived: importlib-metadata (>=4.4,<5.0)
1: derived: jsonschema (>=4.10.0,<5.0.0)
1: derived: keyring (>=21.2.0)
1: derived: packaging (>=20.4)
1: derived: pexpect (>=4.7.0,<5.0.0)
1: derived: pkginfo (>=1.5,<2.0)
1: derived: platformdirs (>=2.5.2,<3.0.0)
1: derived: requests (>=2.18,<3.0)
1: derived: requests-toolbelt (>=0.9.1,<0.10.0)
1: derived: shellingham (>=1.5,<2.0)
1: derived: tomlkit (>=0.11.1,!=0.11.2,!=0.11.3,<1.0.0)
1: derived: virtualenv (>=20.4.3,!=20.4.5,!=20.4.6)
1: derived: xattr (>=0.9.7,<0.10.0)
1: derived: urllib3 (>=1.26.0,<2.0.0)
1: derived: dulwich (>=0.20.46,<0.21.0)
Source (PyPI): 1 packages found for poetry-core 1.2.0
Source (PyPI): 1 packages found for poetry-plugin-export >=1.0.7,<2.0.0
Source (PyPI): 3 packages found for cachecontrol >=0.12.9,<0.13.0
Source (PyPI): 1 packages found for cachy >=0.3.0,<0.4.0
Source (PyPI): No release information found for cleo-0.2.1, skipping
Source (PyPI): 1 packages found for cleo >=1.0.0a5,<2.0.0
Source (PyPI): 2 packages found for crashtest >=0.3.0,<0.4.0
Source (PyPI): 3 packages found for html5lib >=1.0,<2.0
Source (PyPI): 20 packages found for importlib-metadata >=4.4,<5.0
Source (PyPI): 11 packages found for jsonschema >=4.10.0,<5.0.0
Source (PyPI): 9 packages found for packaging >=20.4
Source (PyPI): No release information found for pexpect-0.97, skipping
Source (PyPI): No release information found for pexpect-2.01, skipping
Source (PyPI): 2 packages found for pexpect >=4.7.0,<5.0.0
Source (PyPI): 10 packages found for pkginfo >=1.5,<2.0
Source (PyPI): 1 packages found for platformdirs >=2.5.2,<3.0.0
Source (PyPI): No release information found for requests-toolbelt-0.0.0, skipping
Source (PyPI): 1 packages found for requests-toolbelt >=0.9.1,<0.10.0
Source (PyPI): 1 packages found for shellingham >=1.5,<2.0
Source (PyPI): 3 packages found for tomlkit >=0.11.1,<0.11.2 || >0.11.2,<0.11.3 || >0.11.3,<1.0.0
Source (PyPI): 32 packages found for virtualenv >=20.4.3,<20.4.5 || >20.4.5,<20.4.6 || >20.4.6
Source (PyPI): No release information found for xattr-0.9.0, skipping
Source (PyPI): 3 packages found for xattr >=0.9.7,<0.10.0
Source (PyPI): No release information found for urllib3-0.3, skipping
Source (PyPI): No release information found for urllib3-0.3.1, skipping
Source (PyPI): No release information found for urllib3-0.4.0, skipping
Source (PyPI): No release information found for urllib3-0.4.1, skipping
Source (PyPI): 13 packages found for urllib3 >=1.26.0,<2.0.0
Source (PyPI): No release information found for dulwich-0.0.1, skipping
Source (PyPI): No release information found for dulwich-0.1.0, skipping
Source (PyPI): No release information found for dulwich-0.1.1, skipping
Source (PyPI): No release information found for dulwich-0.2.1, skipping
Source (PyPI): No release information found for dulwich-0.3.0, skipping
Source (PyPI): No release information found for dulwich-0.3.1, skipping
Source (PyPI): No release information found for dulwich-0.3.2, skipping
Source (PyPI): No release information found for dulwich-0.3.3, skipping
Source (PyPI): No release information found for dulwich-0.4.0, skipping
Source (PyPI): No release information found for dulwich-0.4.1, skipping
Source (PyPI): No release information found for dulwich-0.5.0, skipping
Source (PyPI): No release information found for dulwich-0.6.0, skipping
Source (PyPI): No release information found for dulwich-0.6.1, skipping
Source (PyPI): No release information found for dulwich-0.6.2, skipping
Source (PyPI): No release information found for dulwich-0.7.0, skipping
Source (PyPI): No release information found for dulwich-0.7.1, skipping
Source (PyPI): No release information found for dulwich-0.8.0, skipping
Source (PyPI): No release information found for dulwich-0.8.1, skipping
Source (PyPI): No release information found for dulwich-0.8.2, skipping
Source (PyPI): No release information found for dulwich-0.8.3, skipping
Source (PyPI): No release information found for dulwich-0.8.4, skipping
Source (PyPI): No release information found for dulwich-0.8.5, skipping
Source (PyPI): No release information found for dulwich-0.8.6, skipping
Source (PyPI): No release information found for dulwich-0.8.7, skipping
Source (PyPI): No release information found for dulwich-0.9.0, skipping
Source (PyPI): 1 packages found for dulwich >=0.20.46,<0.21.0
1: selecting poetry-core (1.2.0)
1: fact: poetry-plugin-export (1.0.7) depends on poetry-core (>=1.1.0,<2.0.0)
1: fact: poetry-plugin-export (1.0.7) depends on poetry (>=1.2.0,<2.0.0)
1: selecting poetry-plugin-export (1.0.7)
1: selecting cachy (0.3.0)
1: fact: cleo (1.0.0a5) depends on pylev (>=1.3.0,<2.0.0)
1: fact: cleo (1.0.0a5) depends on crashtest (>=0.3.1,<0.4.0)
1: selecting cleo (1.0.0a5)
1: derived: crashtest (>=0.3.1,<0.4.0)
1: derived: pylev (>=1.3.0,<2.0.0)
Source (PyPI): 2 packages found for pylev >=1.3.0,<2.0.0
1: selecting crashtest (0.3.1)
1: selecting platformdirs (2.5.2)
1: fact: requests-toolbelt (0.9.1) depends on requests (>=2.0.1,<3.0.0)
1: selecting requests-toolbelt (0.9.1)
1: selecting shellingham (1.5.0)
1: fact: dulwich (0.20.46) depends on urllib3 (>=1.25)
1: selecting dulwich (0.20.46)
1: fact: pexpect (4.8.0) depends on ptyprocess (>=0.5)
1: selecting pexpect (4.8.0)
1: derived: ptyprocess (>=0.5)
Source (PyPI): 5 packages found for ptyprocess >=0.5
1: selecting pylev (1.4.0)
1: fact: cachecontrol (0.12.11) depends on cachecontrol (0.12.11)
1: fact: cachecontrol (0.12.11) depends on requests (*)
1: fact: cachecontrol (0.12.11) depends on msgpack (>=0.5.2)
1: fact: cachecontrol (0.12.11) depends on lockfile (>=0.9)
1: selecting cachecontrol[filecache] (0.12.11)
1: derived: lockfile (>=0.9)
1: derived: msgpack (>=0.5.2)
1: derived: cachecontrol (==0.12.11)
Source (PyPI): 4 packages found for lockfile >=0.9
Source (PyPI): 13 packages found for msgpack >=0.5.2
Source (PyPI): 1 packages found for cachecontrol 0.12.11
1: fact: html5lib (1.1) depends on webencodings (*)
1: fact: html5lib (1.1) depends on six (>=1.9)
1: selecting html5lib (1.1)
1: derived: six (>=1.9)
1: derived: webencodings
Source (PyPI): 8 packages found for six >=1.9
Source (PyPI): 6 packages found for webencodings *
1: selecting tomlkit (0.11.5)
1: selecting ptyprocess (0.7.0)
1: selecting webencodings (0.5.1)
1: selecting six (1.16.0)
1: fact: packaging (21.3) depends on pyparsing (>=2.0.2,<3.0.5 || >3.0.5)
1: selecting packaging (21.3)
1: derived: pyparsing (>=2.0.2,!=3.0.5)
Source (PyPI): No release information found for pyparsing-1.1.2, skipping
Source (PyPI): No release information found for pyparsing-1.2, skipping
Source (PyPI): No release information found for pyparsing-1.3.3, skipping
Source (PyPI): 39 packages found for pyparsing >=2.0.2,<3.0.5 || >3.0.5
1: selecting pkginfo (1.8.3)
1: fact: jsonschema (4.16.0) depends on attrs (>=17.4.0)
1: fact: jsonschema (4.16.0) depends on pyrsistent (>=0.14.0,<0.17.0 || >0.17.0,<0.17.1 || >0.17.1,<0.17.2 || >0.17.2)
1: selecting jsonschema (4.16.0)
1: derived: pyrsistent (>=0.14.0,!=0.17.0,!=0.17.1,!=0.17.2)
1: derived: attrs (>=17.4.0)
Source (PyPI): 25 packages found for pyrsistent >=0.14.0,<0.17.0 || >0.17.0,<0.17.1 || >0.17.1,<0.17.2 || >0.17.2
Source (PyPI): 13 packages found for attrs >=17.4.0
1: selecting urllib3 (1.26.12)
Source (PyPI): Getting info for msgpack (1.0.4) from PyPI
Source (PyPI): No dependencies found, downloading archives
Source (PyPI): Downloading sdist: msgpack-1.0.4.tar.gz
Creating new session for files.pythonhosted.org
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 29 (11 by maintainers)
@snthibaud
Thanks for following up. I appreciate your time and feedback. I read all of the comments in the thread and tried everything. I don’t seem to have a
pip.conf
anywhere except/etc/pip.conf
and that didn’t have any auth-related content in it.I was eventually able to work around the problem by running the install like this
This seems like an awful workaround though 😦
The only keyring-related thing I can think of that I did was to copy some SSH keys to the Raspberry Pi and run
ssh-add /path/to/key
. I’m not sure how that would make things get stuck?@snthibaud Having the same problem right now on a Raspberry Pi 400 with Poetry 1.3.2 running Python 3.10.11 installed via pyenv.
The following sequence of actions hangs forever:
The only thing I have configured is to install virtual environments into the project directory: