Poetry resolving dependencies is amazingly slow
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: macOS 10.14
- Poetry version: 0.11.5
- Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/cprieto/b5996c4ffd2e77c7ab05253022c482bd
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 includes pytest
) 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 https://github.com/sdispater/poetry/issues/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/ed5def2f51e8e16328770ebd76a6355e
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Poetry is extremely slow when resolving the dependencies
If you are having issues with Poetry taking a long time to resolve dependencies, please first open a Discussion or start on Discord,...
Read more >Tangent: Poetry can have very slow dependency resolution. It ...
Tangent: Poetry can have very slow dependency resolution. It doesn't cut to the core of the problem: Pypi doesn't enforce clearly specifying dependencies....
Read more >FAQ | Documentation | Poetry - Python dependency ...
FAQ Why is the dependency resolution process slow? While the dependency resolver at the heart of Poetry is highly optimized and should be...
Read more >poetry-python: profile slow dependency resolution - Reddit
If this slowness is indeed because there's some PyPi dependencies which are missing proper metadata and having to be downloaded, is there any ......
Read more >Python Poetry vs PIP - Unbiased Coder
I can say here that while Poetry can be extremely slow at some times it's better at resolving package dependencies.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, time to close this
[for posterity]
Even aside from network or PyPI issues, sometimes clearing out the cache from
filelock
/cachecontrol
, can help. (tangentially related to https://github.com/sdispater/poetry/issues/832 perhaps)