uv icon indicating copy to clipboard operation
uv copied to clipboard

Incorrect/Confusing resolution failure message when constraint conflicts with dependency

Open notatallshaw-gts opened this issue 1 year ago • 7 comments

Environment: uv 0.4.20 / Linux

Example message:

  × No solution found when resolving dependencies:
  ╰─▶ Because click-extra==4.11.0 depends on tabulate>=0.9,<1.dev0 and tabulate==0.8.10, we can conclude that click-extra==4.11.0 cannot be used.
      And because only click-extra<=4.11.0 is available and you require click-extra>=4.11.0, we can conclude that your requirements are unsatisfiable.

From this message it appears that "click-extra==4.11.0 depends on tabulate>=0.9,<1.dev0 and tabulate==0.8.10", but this isn't true, tabulate==0.8.10 was a constraint, click-extra does not have that requirement.

Steps to reproduce:

  1. Create a constraints.txt file with the following content:
tabulate==0.8.10
  1. Run: uv pip install "click-extra>=4.11.0" -c constraints.txt

notatallshaw-gts avatar Oct 09 '24 19:10 notatallshaw-gts