-
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 hangs when installing libraries depending on pyparsing
on M1 Apple Silicon
#6030
Comments
I've previously seen people report that this goes away after they clear their cache. However at that point they've cleared their cache and have no means to reproduce the problem and no-one can debug it. So if you're willing to do a bit of work, it would be lovely if you can
Of course this might not be anything to do with the cache at all, who knows. |
Thanks, David! I tried deleting and re-creating the cache, and that worked. I also tried to dissect the problem and found a possible culprit: an I'm sharing a Google Drive link (here) with two _http folders. The one suffixed with Sadly, I do not know about the structure of this folder or its contents, so I'm not able to debug it myself. Hopefully, somebody may have a look at it. If not, I can take a look at it, but I'll need some guidance on how to do so 😅 |
pretty sure the problem is going to be this lockfile: I imagine you hit Ctrl-C or similar at some inopportune moment, and that left your cache locked forever. Ultimately that file will I think come from
I don't know whether it's even possible to write Which is to say that I think poetry is likely stuck with this: and will just have to keep recommending that folk clear their cache when they hit it. |
Thanks for the input and clarification, David. Your description makes total sense to me. I was in an airport with a very bad internet connection and probably hit Ctrl+C to restart the network or something similar. It's good that we found a possible culprit for this issue. Sadly it is not something that poetry/contributors can change/fix anytime soon, but it's 100% understandable why. I'm happy with the solution clearing cache as it works perfectly. Having said that, I would close the issue. However, I do not know if you guys prefer to have it open to keep track of a (possible?) change in |
Yes. Many Unixes have
Nit: |
should be fixed by cachecontrol 0.12.12 |
ugh, cachecontrol 0.12.12 has been yanked on the grounds that it was breaking, with 0.13.0 promised but not yet released. Fingers crossed... |
Shall we vendor a fixed version of CacheControl in the meantime? |
So, ugh, I think I've hit the same issue with |
The fix is in Poetry 1.3 -- we're planning to cut a beta soon, and to release 1.3 very soon after that. I suggest trying an install from Git in the mean time if you'd like to test the fix. |
This fixed the issue for me:
Thanks to #6526 (comment) and #7076 (comment) ! |
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. |
-vvv
option).Issue
Hello! I recently changed my intel mac with an M1 one.
In the process, I noticed that all my poetry installations hang (more than 900secs without finishing) if any library I'm installing depends on
pyparsing (>=2.0.2,!=3.0.5)
.The followings are the steps to reproduce my environment.
Then I comment the pytest dependency in the default
pyproject.toml
file, it should look like the following:Then I run the following command (using the
-vvv
) option:The output of this command is the following
The installation then hangs and never ends (at least not after 900secs which is the max amount of time I've waited). I don't know if this is something related to my python version (3.9.7). This happened as well with other libraries, such as
dask
usingpoetry add "dask[complete]"
If you need more info by running other commands I'm more than happy to help.
The text was updated successfully, but these errors were encountered: