poetry: 'poetry add wasmer' and 'show --outdated' hang forever on macOS

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.

Issue

On macOS this is how I could reproduce the hang:

  • poetry init -n
  • poetry add wasmer

Also, if I already have wasmer in my project dependencies, then poetry show --outdated hangs forever.

However, on Linux I could not reproduce the issue, so there seems to be something macOS specific.

This is different from the other hang I reported in #3200. In the case of #3200, the bug cannot be triggered via Poetry CLI and there’s a simple workaround. In this case I’m using Poetry CLI as designed and I have not found any workarounds.

% poetry init -n
[...]
% time poetry add -vvv wasmer
Creating virtualenv test-y5X0okRo-py3.9 in /Users/marti.raudsepp/Library/Caches/pypoetry/virtualenvs
Using virtualenv: /Users/marti.raudsepp/Library/Caches/pypoetry/virtualenvs/test-y5X0okRo-py3.9
^Cpoetry add -vvv wasmer  0.92s user 3.63s system 0% cpu 12:56.92 total

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

probably duplicate #6030 in which we learned that cachecontrol uses lockfiles and, presumably, if you hit Ctrl-C or similar at an unfortunate moment then that lockfile gets left lying around - at which point you are stuck until you remove it.

pip has no issue with it

% pip install wasmer
Collecting wasmer
  Downloading wasmer-0.4.1-py3-none-any.whl (1.3 kB)
Installing collected packages: wasmer
Successfully installed wasmer-0.4.1