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).

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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
cprietocommented, Feb 21, 2019

Yes, time to close this

0reactions
floer32commented, Apr 10, 2019

[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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found