Skip to content
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

Outdated dependency versions causing poetry resolution issues #5

Open
RobFirth opened this issue Mar 15, 2022 · 1 comment
Open

Outdated dependency versions causing poetry resolution issues #5

RobFirth opened this issue Mar 15, 2022 · 1 comment

Comments

@RobFirth
Copy link
Contributor

Description

Some of the version restrictions, namely:

regex = "^2021.11.10"
requirements-parser = "^0.2.0"

are causing solver problems:

  SolverProblemError

  Because yourmodule depends on hooks (rev main) which depends on regex (^2021.11.10), regex is required.
  So, because yourmodule depends on regex (^2022.3.2), version solving failed.

and

  SolverProblemError

  Because yourmodule depends on hooks (rev main) which depends on regex (^2021.11.10), regex is required.
  So, because yourmodule depends on regex (^2022.3.2), version solving failed.

specifically, this came up when migrating a project to Poetry.

Suggested Fix

Update the versions.

@humzahjavid-hc
Copy link

I was manually adding packages to poetry, I did not apply a version restriction to regex so the latest regex version caused the same issue for me too

SolverProblemError

Because hooks (rev v0.3.0) depends on regex (^2021.11.10)
and myapp depends on regex (^2022.3.15), hooks is forbidden.
So, because myapp depends on hooks (tag v0.3.0), version solving failed.

But I've worked around it for now by downgrading the myapp regex dependency to (^2021.11.10) as I didn't actually need the latest version).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants