-
Notifications
You must be signed in to change notification settings - Fork 3k
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
message_about_scripts_not_on_PATH does not expanduser() #6414
Comments
The purpose of this message is to help users identify why a particular script I tested several shells and it appears that only
Versions:
As a result, if |
Do we want to implement anything related to this or should we leave it as-is with the justification given above? |
I think the current behaviour is fine. We don't want to go down the rabbit hole of trying to second-guess subtleties in the user's shell. Note that the OP was able to interpret the message and fix the issue (and actually, could probably have left their |
OP here. I guess I shouldn't be surprised this is tied to a bashism. If you look at the issue linked in the description you can see that I did not have the option of just ignoring this message -- there was a subtle failure in that I couldn't use What would be better? I'm not sure exactly. Could the test for existence actually be delegated to the user's shell? I mean the trouble here is that some Python code is trying to replicate what the shell is doing and if we're to avoid implementing various shell subtleties then why not go straight to the shell for the answer wrapping around something like |
How is that related to the I'm confused as to what you're asking for here. The message about "not on |
What if we warn about this case if we see a path in PATH that starts with
|
@chrahunt I like what you've proposed and am quite convinced that my time-to-grok the issue would have been significantly shortened had this been in place. |
Hi. I would like to work on this PR. |
Please review and let me know your comments. I was not sure what to pick as the extension for the news fragment and chose feature since this issue was marked as enhancement. Please let me know if the name for news file should be different. Thank you. |
Environment
from python3-pip-18.1-1.fc29.noarch
Description
I was trying to install PyGitUp with
pip3 install --user git-up
and ran into an issue where I was warned:I callled BS because I knew this was on my PATH. But then I noticed my PATH actually had
~/.local/bin
and not/home/jflorian/.local/bin
as claimed. I looked atwheel.py
where the error originates and sure enough, there was no usage ofos.path.expanduser()
. I changed my PATH to have this already expanded and the error message disappeared.Expected behavior
Most tools seem to know how to expand the tilde in my PATH, I would expect Pip to do so as well.
How to Reproduce
~/.local/bin
--user
option./home/jflorian/.local/bin
and observe the behavior I'd expect in step 3.The text was updated successfully, but these errors were encountered: