Skip to content

Poetry takes very much time to lock on a specific set of dependencies #2137

Closed

Description

@KristobalJunta
  • 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

While this is not technically a bug, this situation is affecting user experience quite much. With the set of dependencies provided in the linked pyproject file, Poetry takes too long to resolve and generate a lock file. About 1.5 hrs on my machine (quad-core @ 3.7 GHz, so not quite low-end), to be specific.

I have tested this with pip and pipenv, and the latter generates lock in about 17s.

I wonder, if something can be done to improve dependency resolution in such cases, as pipenv test shows that it's totally possible. Though, usually pipenv takes more time to lock & install for me than Poetry.

Activity

  1. added
    area/solverRelated to the dependency resolver
    and removed
    kind/bugSomething isn't working as expected
    on Mar 7, 2020
  2. dimbleby commented on Apr 18, 2022

    @dimbleby
    Contributor

    I don't know whether this was true two years ago, but today it takes poetry a long time to work its way back through awscli versions and find one that's compatible with python 3.5.

    This is somewhat improved by #5335, but really in such cases the pragmatic thing to do is to put an upper bound on awscli (or use a more recent python) so that poetry doesn't have to check all of the hundreds of later versions.

  3. mkniewallner commented on Jul 10, 2022

    @mkniewallner
    Member

    Since Python 3.5 is considered end of life since almost 2 years, and there are actionable solutions to make the resolver faster here (setting a lower bound for awscli, or using more recent Python versions), going to close this issue, because there's not that much things that Poetry can do given how the resolver works.

  4. mm-matthias commented on Jul 12, 2022

    @mm-matthias

    Probably a duplicate of #5896 .

  5. github-actions commented on Mar 1, 2024

    @github-actions

    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.

  6. locked as resolved and limited conversation to collaborators on Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/solverRelated to the dependency resolver

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions