-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 can't add any package anymore in a reasonable amount of time #4855
Comments
Edit: Looks like I can't even start a new project from scratch $ poetry new foo
$ cd foo
foo$ poetry install
Creating virtualenv foo in /mypath/foo/.venv
Updating dependencies
Resolving dependencies... (210.8s) ...still hanging |
Can you truss it? see what it's hanging on |
It depends on the run. It looks like it could be related to networking problems #2094 (comment). Still investigating on it. Hints welcome. |
By opening a devcontainer in VSCode and running poetry update in it, I cut a 4000+ second update into a ~200 second update. My lockfile was then up to date and I continue dev as normal. |
Any updates about it? |
Hey @floatingpurr are you still reproducing this issue consistently on 1.1.13? I gave it a try with your toml and had no issues, but the command output is very different as of now. Did you discard network issues on your environment? |
Unfortunately this issue doesn't happen programmatically. Read #2094 for more. |
Ah, it indeed seems quite the non-deterministic issue. Would this count as duplicated of #2094? Might be worth closing in favor of that one. |
Yep, sure. Pls, reference #2094 for further details |
See also #2094 (comment) as a possible solution |
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. |
Issue
Here's my env:
1.1.12
(installed with pipx)I have worked with poetry smoothly so far. Suddenly, it looks like poetry can't resolve dependencies anymore in a reasonable amount of time. It happens, for example, with
pytest
. This is my startingpyproject.toml
click to expand my pyproject.toml
if I run
$ poetry add pytest --dev -vvv
I get this output (ie: poetry stuck in Resolving dependencies... )
click to expand command output
As you can see, I stopped the process after 96s. I can't understand what is going on and why it suddenly started taking so long for installing just
pytest
. How can I fix it up?PS: this issue started after installing
ruamel.yaml
with poetry. I'm quite sure it was just a coincidence. But that is what happened.PPS: the issue persists also after clearing cache with
$ poetry cache clear --all pypi
The text was updated successfully, but these errors were encountered: