-
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 wheel fails without useful error message when --wheel-dir not writable #5740
Comments
This issue is a good starting point for anyone who wants to help out with pip's development -- it's simple and the process of fixing this should be a good introduction to pip's development workflow. There's an existing PR for this, with an additional change suggested there. |
This issue is partially solved in master, following #7285. pip/src/pip/_internal/wheel_builder.py Lines 488 to 496 in ef20309
|
We are having lots of problems with pip-19.3.1 (
The absence of an error message is the biggest problem. We could probably work around this if only we knew it was related to this other ownership bug. |
I think it's pretty clear that we want to be printing a better error message in this situation. PRs are welcome for fixing this! |
Hi @pradyunsg , @sbidoul I do see that as per pip/src/pip/_internal/commands/wheel.py Lines 182 to 189 in 720c77a
The
So are we looking for a better error message than this? If yes, what details would such an error message cover? |
No. To me, the error message is fine in pip 20. So I think we can now close this issue. |
If that is the case, we can close the issue, although I don't have permission to do that. |
Environment
Description
When wheel is invoked specifying a non-writable destination directory with
--wheel-dir
, it fails but doesn't give an error indicating the cause of the failure.Adding
-vvv
to thepip3
command line provides more output but still no useful error message.Expected behavior
I would expect to see something like:
How to Reproduce
mkdir not_writable_directory; chmod 555 not_writable_directory
pip3 wheel --wheel-dir=not_writable_directory .
Output
See above.
Note
This was originally raised as a bug in wheel: pypa/wheel#246
The text was updated successfully, but these errors were encountered: