Poetry install is stuck on specific dependency with "pending..."
See original GitHub issue- 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: 10.15.7
- Poetry version: 1.1.4, 1.1.3, 1.0.9
Issue
Hello poetry crew. Loving the work that yall do!
I am having issues with poetry while running poetry install
in one of my projects on one specific machine.
It appears to get stuck on one dependency during the install and it will hang forever. When I kill the process, I see this in my shell (hinting at a race condtion/locking problem):
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/Users/{}/.pyenv/versions/3.6.8/lib/python3.6/concurrent/futures/thread.py", line 40, in _python_exit
t.join()
File "/Users/{}/.pyenv/versions/3.6.8/lib/python3.6/threading.py", line 1056, in join
self._wait_for_tstate_lock()
File "/Users/{}/.pyenv/versions/3.6.8/lib/python3.6/threading.py", line 1072, in _wait_for_tstate_lock
elif lock.acquire(block, timeout):
KeyboardInterrupt
I am on the latest poetry (1.1.4) and have tried 1.1.3 as well with the same results (all of which while running python 3.6.8 (I did use 3.6.5 as well)).
After downgrade to 1.0.9, I no longer faced this issue. I am assuming that there was an update to the way poetry can download multiple deps at the same time. Anyone else facing locking issues? At the very least, poetry should recognize a pending download with no progress being made to exit and fail early, but it simply hung and would never exit (left it going for at least 30 mins).
Issue Analytics
- State:
- Created 3 years ago
- Reactions:18
- Comments:32 (9 by maintainers)
The artifacts and cache dirs were in
~/Library/Caches/pypoetry
on my M1 Mac for those who can’t find it in~/.cache/pypoetry/cache/
Doing that cleared things up for me. Before that, it was consistently hanging on trying to fetch
flake8-bugbear
from pypyI do not know how to help you all here…
My advice would be to try one of those (maybe in that order) if you have not yet:
poetry.lock
file and retrypoetry config experimental.new-installer false
and retry (do not forget to reactivate it afterwards if it proves to have no influence)Also maybe provide some verbose output (
-vvv
), that might be helpful for when one of the maintainers gets the time to handle this ticket. Of course, the best as always is if you can provide a minimal reproducible example that triggers the failure.