-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Non-local directory chosen when conflicting installs are given #8131
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
Comments
I have difficulties following. Why does installing the package is a problem? What warning message do you expect to be printed? Your description is lacking a lot of context, but there’s nothing pip is doing wrong in this post as far as I see. |
This is related to #8117 (which is still somewhat unclear, TBH, it's a work in progress). You have requested that "example<7" be installed. Currently you have example version 7 on the system, which does not satisfy that requirement, so pip uninstalls that and replaces it with a version that does satisfy that requirement. The The only effect of Also, I'm assuming that including (To be clear, I'm sympathetic with the view that this is not very intuitive. But it's long-established pip behaviour, and it's not entirely clear to me that any other behaviour wouldn't have equally non-intuitive cases.) |
@pfmoore, IIUC, the |
Indeed, if |
Ah, OK. So that doesn't satisfy "example<7". I'm not 100% sure how the current resolver will process this, but it's likely that the What behaviour do you get with the new resolver ( |
I get an error.
|
OK, cool. Looks like the new resolver handles this fine. Although the error is pretty unhelpful - I can tell it's saying "I tried to check Thanks very much for testing. We'll need to ensure that we improve the error message for this case. @pradyunsg @uranusjr this would make a good test case for the error handling. |
Hi @PythonCoderAS. We have now implemented an improved error message in the new resolver for this case. With a stripped-down version of your example, I now get the following error:
Is that message a clear enough explanation of what went wrong here for you? |
@pfmoore Yeah the error message is much clearer. Although you should bring the "For help visit ..." onto a new line. |
@PythonCoderAS Thanks for the feedback! On that basis, I'll close this issue. @ei8fdb See the comment above about putting the "For help..." text on a new line. Can you review and consider how we can take that into account, please? (We might want something more than just "ResolutionImpossible" on the "ERROR:" line). |
Environment
Description
If I have version 7 of a package on my local system, and then run an install such as
pip install --upgrade . example<7
, example < 7 gets installed, disregarding the local copy.Expected behavior
A warning to be printed to the user
How to Reproduce
Output
I used the package
praw
.The text was updated successfully, but these errors were encountered: