-
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 update never finishes resolve and Poetry show --outdated hangs #832
Comments
After I press CTRL+C, I noticed this message:
|
For some reason, I found out that 'bit-vector = "0.42a0"' is causing this hang. Any of the following is the cause of the hang. I found this when I reported #824.
|
I think it may have something to do with Poetry's use of If you dig through Poetry's source you'll see there is a class What you can do in the meantime is to delete the Poetry cache dir and try running again. At first I thought I was still having the issue, but after a bit it moved on. So it really was a filelock deadlock at first for me, and for some reason always getting back into the state upon trying again... but 🤷♂️ I guess it is something intermittent. How to find your cache - well, check the Poetry configuration docs to see about the OS-specific defaults. And you can delete it by hand that way. There is also |
@hangtwenty thanks for your point. I often hit outdated cache when i switch from one project to another. Uploading a new release of a libs in pypi doesn't invalidate poetry pypi cache. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I hit the same and I can confirm that running: |
Has anybody solved this? My installation is stuck and |
Can you share your |
I've had Poetry take over 800 seconds before giving up [it was bascially never finishing]. I tried poetry 1.0.0, 1.0.5, 1.1.0a1 and had the same results. I also cleared the cache on each poetry version I tried, with the same problem still happening. Here is the log: Poetry never finishing update.txt I've attached a So I tried adding this to my .toml file: Pinned Dep, poetry finishing update.txt So for now I'll have to keep docutils pinned <0.16 my self, but it would have been really nice for poetry to figure it out on it's own! |
Thinking about this more, I suppose it's normal for it to go back and try older versions. In this case, botocore has a lot of versions to go though. So it may be using a depth-first search? Perhaps it should be a breadth-first search? Perhaps it could try each older version of each dependency it needs to figure out a solution for before trying two-versions back? |
I also tried doing I think this makes it do a depth-limited search on botocore, so it can stop searching for solutions that never work and try something else that will work faster. |
I ran into this issue trying to run an update today. Clearing the cache appears to have resolved it, but resolution of packages across multiple indeces is extremely slow. When scanning for a package, if found in the default index, it proceeds to scan the secondary indeces anyways (where I have three in all so each package install is taking around TEN seconds). |
I ran into a similar issue today with poetry version 1.1.4. I was able to "solve" it by doing:
|
I just had this today and it looks like mine was stuck looping on the following:
I had literally hundreds of the above lines printing out before I finally killed it, not sure why that is causing it to get stuck |
I can confirm that this works on poetry 1.0.10 so it is a regression (ref: #3802) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@m-vdb |
Closing this issue, because it's on a quite old version of Poetry, and For the "slowness" of the resolver, there's already a bunch of issues opened, the main one being #2094. |
Just FYI: I had a similar issue like the one above, with py-spy showing the following things:
Running |
I'm having a similar issue, I tried the cache clear and then run |
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. |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: Oracle Linux Server 7.5
Poetry version: 0.12.11
Link of a Gist with the contents of your pyproject.toml file: Part of it included.
pyproject.toml
Issue
When I try to see the list of outdated dependencies (poetry show --outdated), poetry hangs. And "poetry updated" gets stuck on "Resolving dependencies" and incrementing time (166.8s).
Running with --vvv:
Pressing CTRL+C shows:
Update with verbose shows:
The text was updated successfully, but these errors were encountered: