-
-
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
activate_this.py failed for python2 virtualenvs #1776
Comments
virtualenv 20 no longer supports the relocatable feature. The fact that that package hasn't been updated in a while feels to me like it's no longer compatible with
You can still set environment variables to switch to verbose output per https://virtualenv.pypa.io/en/latest/cli_interface.html#environment-variables
Link to this feature, description of this feature? Can you replicate this without pipenv by just doing virtualenv call? Provide the python version of both the host and target python. |
to this one
|
The host python is Python 3.6.8, also tested on 3.7.2. The target python is already shown in the output (2.7.17) |
I consider this kind of aggressive finger-pointing non-constructive here. I've simply asked for some more information, not to be told of; sigh you're welcome for free labour. |
Well I'm not trying to finger-pointing you. I'm not familiar with English, and it's my fault to let you feeling so :( Please pardon me for my bad English. |
Hello, this now has been released via https://pypi.org/project/virtualenv/20.0.19/ |
Issue
It seems recently pipenv introduced a new type of activate_this.py. On windows the content of activate_this.py has something like this:
As you can see the "'..\Lib\site-packages" is obviously wrong.
Environment
Provide at least:
OS: Windows 10
pip list
of the host python wherevirtualenv
is installed:Output of the virtual environment creation
As I'm using virtualenv through pipenv, so I failed to grab the virtualenv output
However I've located the related code and wrote out its runtime variable information:
The following is the output of _repr_unicode function in
src/virtualenv/activation/python/__init__.py
As you can see, there's an additional ' before each item. I've done a small experiment on python 3.6 and 3.7:
I believe there's something wrong with this function. This function is introduced in PR #1503
The text was updated successfully, but these errors were encountered: