-
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
Dependency resolution takes awfully long time #5194
Comments
It might be related #4924 (if not the exact same) |
Also looks related to #5121. Note the "retries" name various combinations of versions of pandas and numpy. |
Indeed, looks like it's the same issue. I'll leave this open because of the second part though, I think poetry should not try querying PyPI for private packages. |
For those hitting this, I added a couple tips on this issue on how to improve issues with Poetry being slow: #2094 (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. |
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 Big Sur
Poetry version: 1.1.13
Link of a Gist with the contents of your pyproject.toml file: I can provide upon request.
Issue
Version resolution in our moderately large (25 immediate dependencies) project is taking too long. For me it is about 200-250 seconds each time, and my colleagues have reported times even up to 1000 seconds.
A common scenario in this project is to update version constraint on one of the dependencies or add a new one, and then run
poetry lock --no-update
. It seems that the algorithm behind this command is not optimal in our case.I will try to describe what I see in verbose (
-vvv
) output. Full output may be found here: https://gist.github.com/maksbotan/a72f5d801e8515b74a9f0ab7fbcef321This concrete run had no changes in
pyproject.toml
and took 220 seconds anyway. As far as I see, poetry tries different solutions with different version ofnumpy
, even ifnumpy
version is not changed:I do not understand why poetry needs to retry different numpy constraints, especially when nothing changed in that regard, and why it comes up with three overrides for it with intervals that can be simplified to one. For the record, resolved version of numpy is 1.21.4.
Also, this may be related: looks like poetry tries to query global PyPI for information about packages from our private repo, even though they have
[package.source]
section inpoetry.lock
. From log:Thanks in advance!
The text was updated successfully, but these errors were encountered: