-
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
pip 10.0.0 fails silently if it cannot install due to missing write permissions #5237
Comments
Hey @pv! Thanks for reporting this. Relavant Code: pip/src/pip/_internal/commands/install.py Lines 361 to 380 in 28f3ce6
FWIW:
|
Adding
so it's EACCES, not EPERM |
Thanks!
Indeed. Just looked it up at https://serialio.com/support/UnixErrorNumbers.htm and currently feeling stupid. :) |
@pv will you be able to check the PR? ideally, we'd like to get this into 10.0.1. |
I'm ok with the proposed changes, lgtm from my side.
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description:
When installing to a site-packages directory where the current user is not able to write, pip 10.0.0 does not show an error message. It returns with nonzero exit code, but since there is no error message printed it's easy to miss the installation failed.
This is a common situation when using system-wide Python installations and forgetting to give the
--user
flag to pip.This is a regression, as in this situation pip 9 prints an the error traceback that says "PermissionError: [Errno 13] Permission denied".
What I've run:
Reproducing shell script
produces
Note that pip does not print any message saying the installation was not successful, and what's printed looks like the installation was successful, contrary to what actually happened.
The text was updated successfully, but these errors were encountered: