-
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 resolving dependencies is amazingly slow #476
Comments
There must be something wrong on your system. Here is my output on a fresh cache (both pip and poetry caches):
As you can see, it takes less than 30 seconds in total to resolve the dependencies and install them. I am also on MacOS 10.14. The only thing I can think of is that you have trouble contacting either PyPI or files.pythonhosted.org where the files are hosted. |
That is weird, a simple ping to files.pythonhosted.org or PyPI didn't help, but after doing a simple Is there any way I can tell |
I actually think it was something wrong with my connection since yesterday, I just cleared the cache and run it again and I got much better numbers: https://gist.github.com/cprieto/63274728f066403cfed7c0fd58b33548 It went down to less than 6 seconds. I was thinking adding some flag or way to diagnose problems like this, it sounds weird to me but to be honest it is not the first time this happens (at least for me), maybe something in the debug flag to see the performance call or output the request/response between I don't know, I want to help to whoever has a problem like this in the future. |
This is not an issue with Poetry, it's a problem with your internet connection and IMO that should be handled by other tools (e.g. a speed test, |
@cprieto - any chance you could close this issue? Trying to help @sdispater with issue cleanup :-) |
Yes, time to close this |
[for posterity] Even aside from network or PyPI issues, sometimes clearing out the cache from |
Not sure why this issue is closed, clearly there is something wrong with poetry I left my computer open one day and this still did not work |
I am also facing same issue with poetry 1.2.0 |
Please people, don't comment on closed bugs,. If you have a problem, please fill out the bug report, and give us all the details that we actually need to debug a problem. Saying your setup is slow does not help at all. |
-vvv
option).Issue
I just created a new project with
poetry new
and just added one package,petl
, I was surprised when I found out in a new project (which includespytest
) it took over half an hour to install, yes, I know no cache was used, and yes, I know it has to download all the dependencies and handle their installation, but this time was insane.I know this has been reported before in #65 but maybe I am missing some discussion about how to improve this time, because honestly, waiting between 3min to 30min to install a package is too much, especially when the package size is small.
I included the output of my
time poetry add -vvv petl
command: https://gist.github.com/cprieto/ed5def2f51e8e16328770ebd76a6355eThe text was updated successfully, but these errors were encountered: