-
-
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
With Git bash, cannot create virtualenv with a nested path. #1582
Comments
Does it work if you pass the windows path separator instead of the UNIX one you do in your example? I feel like the error message is bad, but seems you're trying to use Unix paths on windows. |
Yes, it'll work:
Although, "I didn't have issues before" ™️ , but also usually don't have issues doing so using Git Bash with other python application.
I do understand that virtualenv is likely doing way more stuff with that path, with millions of ways for things to go haywire. Yet, that's a regression in virtualenv IMO. |
If you don't make headway on this I'll look into it tomorrow why this fails, and if it would be possible to make it work 🤞if you can come up with a pr that would be epic though 👍 |
@gaborbernat Do you remember why you decided to explicitly dissalow virtualenv/src/virtualenv/create/creator.py Line 120 in 0e00194
524d95e Did you hit some specific issues with it? |
Some tools support altsep so using them might break things. To be fair this would only be an issue if the paths we write into the activation scripts are used in the altsep form. If you can add tests/validate that we normalize altsep to pathsep during the env creation I think we can remove this constraint. |
I'm not sure I understand: Wouldn't it be the opposite: those tools support
(emphasis mine) Could you be interpreting that Edit: |
Yeah I think you're right should be altpathsep |
Alright, glad this was cleared up :) Although, don't go searching for I can submit and MR, which essentially is a revert of 524d95e |
Hello, a fix for this issue has been released via virtualenv 20.0.4; see https://pypi.org/project/virtualenv/20.0.4/ (https://virtualenv.pypa.io/en/latest/changelog.html#v20-0-4-2020-02-14). Please give a try and report back if your issue has not been addressed; if not, please comment here, and we'll reopen the ticket. We want to apologize for the inconvenience this has caused you and say thanks for having patience while we resolve the unexpected bugs with this new major release. |
With Git Bash, virtualenv refuses to create a virtualenv with a nested directory (ex:
foo/bar
), reporting that/
is a path seperator and shouldn't be in the destination path.I have no idea why
/
is considered a path separator (usually;
or:
, depending on OS, right?)pip list
outputEnvironment: Windows 10, with Git Bash, using Python 3.7.
Example:
And FYI:
The text was updated successfully, but these errors were encountered: