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

Poetry version solving fails when adding seaborn and matplotlib #6916

Closed
gerazov opened this issue Oct 29, 2022 · 2 comments
Closed

Poetry version solving fails when adding seaborn and matplotlib #6916

gerazov opened this issue Oct 29, 2022 · 2 comments
Labels
status/duplicate Duplicate issues

Comments

@gerazov
Copy link

gerazov commented Oct 29, 2022

Issue

Poetry fails to version solve when adding both seaborn and matplotlib.

I ran poetry init in my project directory, switched to the venv using poetry shell and there added poetry add seaborn and then poetry add matplotlib:

$ poetry add seaborn
Using version ^0.12.1 for seaborn

Updating dependencies
Resolving dependencies... (0.1s)

Writing lock file

Package operations: 17 installs, 1 update, 0 removalsInstalling pyparsing (3.0.9)
  • Installing numpy (1.23.4)
  • Installing packaging (21.3)
  • Updating setuptools (63.2.0 -> 65.5.0)
  • Installing six (1.16.0)
  • Installing tomli (2.0.1)
  • Installing typing-extensions (4.4.0)
  • Installing contourpy (1.0.5)
  • Installing cycler (0.11.0)
  • Installing fonttools (4.38.0)
  • Installing kiwisolver (1.4.4)
  • Installing pillow (9.2.0)
  • Installing python-dateutil (2.8.2)
  • Installing pytz (2022.5)
  • Installing setuptools-scm (7.0.5)
  • Installing matplotlib (3.6.0)
  • Installing pandas (1.5.1)
  • Installing seaborn (0.12.1)

$ poetry add matplotlib
Using version ^3.6.1 for matplotlib

Updating dependencies
Resolving dependencies... (0.0s)

Because no versions of matplotlib match >3.6.1,<4.0.0
 and seaborn (0.12.1) depends on matplotlib (>=3.1,<3.6.1 || >3.6.1), seaborn (0.12.1) requires matplotlib (>=3.1,<3.6.1 || >=4.0.0).
And because no versions of seaborn match >0.12.1,<0.13.0, seaborn (>=0.12.1,<0.13.0) requires matplotlib (>=3.1,<3.6.1 || >=4.0.0).
So, because git-denoiser depends on both seaborn (^0.12.1) and matplotlib (^3.6.1), version solving failed.

Even though seaborn already installs matplotlib 3.6.0, poetry doesn't detect it's there. Instead it tries installing a version that's incompatible with seaborn, i.e. ^3.6.1.

Reversing the steps also doesn't work.

@gerazov gerazov added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Oct 29, 2022
@dimbleby
Copy link
Contributor

duplicate #707

@neersighted neersighted added status/duplicate Duplicate issues and removed kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Oct 29, 2022
@neersighted neersighted closed this as not planned Won't fix, can't repro, duplicate, stale Oct 29, 2022
Copy link

github-actions bot commented Mar 1, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

3 participants