-
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 add takes forever #8790
Comments
obviously this doesn't happen for everyone else unless you can provide a reproducible example it's unlikely that anyone but you can debug what's happening. A dockerfile is a particularly convenient way of sharing such an example, ensuring that it really does reproduce not only on your machine |
As the bug template asks for, what happens when you add -vvv to the add command? Have you tried disabling the keyring? Possibly it's building a package, are there any processes kicked off? |
Happens for me too.
In my case, the reason is in fact that it tries to access the keyring and doesn't get a DBus reply. I found this by judicious use of
Have you tried teaching poetry to tell us (a) that this might be necessary (b) how to do it? Adding a breakpoint to this classes' Finally, (c), I have to admit that I fail to understand why poetry even tries to do any keyring operations when it clearly doesn't need to. And no in my case it's not building anything (and there is no reason why it should need any privileges even if it did), just pulling stuff from pypi and unpacking it into a venv; in fact, the aforementioned hack results in a perfectly working |
IMO, this is too much of an edge case to put into
I'm not that deep into this keyring topic, but I suppose #7038 (comment) might be a reason why we are trying to use keyring even if it's not necessary. |
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. |
Hi,
I'm a Linux user, new to poetry. Installed Poetry (1.7.1) with
curl -sSL https://install.python-poetry.org | python3 -
then I created a virtual environtment with
mkvirtualenv myenv -p ~/.pyenv/versions/3.9.16/bin/python3.9
Then after
poetry init
, I gotpyproject.toml
:When I do
poetry add
any packages, the command just hang for several minutes until I hit Ctrl C to kill it.Poetry self update stuck on
Updating Poetry version ...
forever (10min until I turn it off).Please tell me if you need any information to demystify this.
The text was updated successfully, but these errors were encountered: