Skip to content
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 install gets stuck indefinitely for >10min and even -vvv does not contain useful debug information #7010

Closed
4 tasks done
corneliusroemer opened this issue Nov 11, 2022 · 4 comments
Labels
status/needs-attention Needs eyeballs and discussion from regular contributors

Comments

@corneliusroemer
Copy link

corneliusroemer commented Nov 11, 2022

General info

  • Poetry version: Poetry version 1.1.15
  • Python version: 3.10.6
  • OS version and name: macOS 13.0.1 using ARM64
  • pyproject.toml: https://gist.github.com/corneliusroemer/e8292beef1a0610f7962f1b65c5d1eeb
  • 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've just started to try out poetry. I am very surprised to find that even in debug mode (-vvv) the solver doesn't report any progress for 10 minutes - nothing, no information whether anything is happening or not, whether it's a bandwidth issue, the solver got stuck etc.

This is very unwelcoming to new users. I would expect that at the very least in debug mode I have granular access to logs that help me figure out the problem.

The output shown below appeared within a few seconds, after that nothing happened until I aborted.

image

@corneliusroemer corneliusroemer added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Nov 11, 2022
@dimbleby
Copy link
Contributor

delete the cache, try again

@corneliusroemer
Copy link
Author

Deleted cache poetry cache clear pypi --all, doesn't help. Sorry I realized my gist was set on secret.

I managed to make it work by changing dependencies, but that's not a solution to the problem of poetry getting stuck and not providing any sort of information about what's wrong.

Using the original toml, this is where it gets stuck now.

image

@neersighted
Copy link
Member

Your first pyproject.toml locks fine for me on 1.2.2 (after 120s -- it's a really wide search space) -- you likely should blow away the entirety of ~/.cache/pypoetry as something is severely broken in there. We have much more robust prevention of corrupted caches in the upcoming 1.3 release; in the mean time try not to abort Poetry when it is solving as you can leave stale lock files.

@neersighted neersighted closed this as not planned Won't fix, can't repro, duplicate, stale Nov 11, 2022
@neersighted neersighted added status/needs-attention Needs eyeballs and discussion from regular contributors and removed kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Nov 11, 2022
Copy link

github-actions bot commented Mar 1, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/needs-attention Needs eyeballs and discussion from regular contributors
Projects
None yet
Development

No branches or pull requests

3 participants