-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Poetry stuck when installing GCP keyring plugin #6668
Comments
probably a stray |
@dimbleby Thank you! Unfortunately the find/delete command did not help. |
You're likely going to have to debug this yourself then, or at least provide some way to reproduce. It works fine here! |
I'd suggest blowing away your Poetry cache (be aware this will also nuke your virtual environments) with |
Alright. I will try clearing all caches. Another thing that might have an influence is that I am running this on a Rapsberry Pi 4. I guess it has a different architecture (arm) from most computers on which Poetry is installed, so perhaps it's important to reproduce? |
@neersighted I tried your suggestion as well and it did result in a slightly different output, but it still hangs.
How can I join the discord discussion? |
I thought it was perhaps compiling the msgpack package, but the CPU usage is also very low, so I do not think it is. |
I would shove a strace in front of the command See what happens at the end of the log when the process has apparently hung. |
@clintonroy Thank you!
|
looks like you might have to follow the children |
@clintonroy Thanks again!
|
looks like keyring is asking you for a username |
or possibly keyring is doing nothing and the repository is asking you for a username. Anyway you'll want to set up authentication, I expect |
I see. Thank you! But authentication to what? |
|
Hmm... why is it looking there, actually? It looks like a URL related to my GCP repo, but I do not want to install this plugin from there. I am running the poetry add command outside of any Poetry project as well. |
And I want to install this plugin specifically to handle the authentication. |
no idea, this doesn't look like anything to do with poetry, best of luck. did you try googling? |
Interesting. I did create that Stackoverflow issue myself in the past. The solution does not work now. I will try to figure out more a bit later. Thanks! |
adding a -s 10000 might make it a bit easier to understand |
I like above pull request to resolve the hidden prompt issue and also resolved this specific issue now. |
@snthibaud The following sequence of actions hangs forever: $ poetry new test
$ cd test/
$ poetry install
$ poetry add requests -vvvvv
Loading configuration file /home/pi/.config/pypoetry/config.toml
Using virtualenv: /home/pi/repos/bossqa3/.venv
[keyring.backend] Loading KWallet
[keyring.backend] Loading SecretService
[keyring.backend] Loading Windows
[keyring.backend] Loading chainer
[keyring.backend] Loading libsecret
[keyring.backend] Loading macOS The only thing I have configured is to install virtual environments into the project directory: $ cat ~/.config/pypoetry/config.toml
[virtualenvs]
in-project = true |
@sfoley-gpqa Hello Sean, did you check my last comment? Not sure if the cause is similar in your case, but that resolved it for me. |
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 I was eventually able to work around the problem by running the install like this $ PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring poetry install 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 |
Sure! I am not a developer of Poetry, so I cannot say whether or not it is related. It seems improbable. |
I hit this too. No amount of deleting I did get a password prompt at one point but cancelled it and then never saw it again. There's no reason that poetry should be trying to authenticate my keychain that I can figure out. FWIW I'm running Fedora 36 edit: rebooting fixed the issue |
The solution below from this issue cleared the issue up for me.
|
Same issue on Debian 12. Anyway, running |
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. |
-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:
The text was updated successfully, but these errors were encountered: