-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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 fails with space in virtualenv path #994
Comments
Both Apple's XNU kernel [1] and Linux [2] cuts off interpreter name at the first whitespace. In other words, paths with whitespaces (' ' 0x20 and '\t' 0x09) can't work correctly. I suggest virtualenv forbid such paths. [1] https://github.com/opensource-apple/xnu/blob/10.11/bsd/kern/kern_exec.c#L532-L535 |
Seems this issue is identical to pypa/pip#923 |
+1. I'm also facing this issue. |
This looks to me like a duplicate of #53 "Whitespace in root path of virtualenv breaks scripts". Maybe we should collect all three aspects of fragile kernel shebang parsing into one issue, so that we can be sure that one fix can address spaces, length, and non-ASCII characters? I nominate #53, because it's the oldest. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Just add a comment if you want to keep it open. Thank you for your contributions. |
This issue may be a manifestation of an underlying problem tracked by #53. According to #53 (comment), "It appears this bug is fixed by pip 10.0.0, released 2018-04-14." So, is this issue fixed in pip 10.0.0 as well? |
You are right, thanks! |
Failed to execute process '/Users/.../venv/bin/pip'. Reason:
The file '/Users/.../venv/bin/pip' does not exist or could not be executed.
python 2.7 installed via homebrew
virtualenv installed via pip
The text was updated successfully, but these errors were encountered: