Skip to content
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

Closed
mnm678 opened this issue Dec 8, 2016 · 7 comments
Closed

Pip fails with space in virtualenv path #994

mnm678 opened this issue Dec 8, 2016 · 7 comments

Comments

@mnm678
Copy link

mnm678 commented Dec 8, 2016

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

@yan12125
Copy link

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
[2] https://github.com/torvalds/linux/blob/v4.9-rc8/fs/binfmt_script.c#L60-L68

@yan12125
Copy link

Seems this issue is identical to pypa/pip#923

@batmanav
Copy link

batmanav commented Jan 7, 2017

+1. I'm also facing this issue.

@JDLH
Copy link

JDLH commented Feb 25, 2017

This looks to me like a duplicate of #53 "Whitespace in root path of virtualenv breaks scripts".
I want to repeat the comment from #997 (comment), "virtualenv are broken with fragile kernel shebang parsing." And in that spirit, #1014 "Not compatible with a directory having emojis in its path" is another example of virtualenv being broken by fragile kernel shebang parsing. I'll bet the problem occurs with any non-ASCII characters in the path, I'll bet.

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.

@stale
Copy link

stale bot commented Jan 14, 2019

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.

@stale stale bot added the wontfix label Jan 14, 2019
@JDLH
Copy link

JDLH commented Jan 15, 2019

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?

@stale stale bot removed the wontfix label Jan 15, 2019
@gaborbernat
Copy link
Contributor

You are right, thanks!

@pypa pypa locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants