Incorrect failure message when multiple specifiers mention the same package, one of them pointing to a wrong version #8884
Labels
type: bug
A confirmed bug or unintended behavior
Projects
In the following case, the new dependency resolver exits with an incorrect error message. It does not help the user debugging the situation.
I have multiple
requirements.txt
files that I want to install in a single shot. To do so I runpip install -r <req_file> -r <other_req_file> ...
. With the new resolver, some impossible configurations are detected but with an unhelpful (incorrect?) error message.I'll take the specific example of
pdbpp
:req_a.txt
req_b.txt
run A: only the wrong version, old resolver
The error message is appropriate. The user is clearly informed that its version spec cannot be resolved
run B: only the wrong file, new resolver
The message is less helpful, but still valid.
run C: both files, wrong file before, new resolver:
Same message, still valid
run D: both files, good file before, new resolver
This message is unhelpful: it suggests there is a conflict between both files, though one of the requirements is obviously valid with any version
Additional information
System info:
Other remarks
pip 20.3.dev0
)The text was updated successfully, but these errors were encountered: