Message11954
I confirm this is a problem, but haven't dug deeper.
PS iss2667> jython -m venv env
C:\Jython\2.7.1\bin\jython.exe: No module named venv
Ok,let's install it ...
PS iss2667> pip -V
pip 9.0.1 from C:\Jython\2.7.1\Lib\site-packages (python 2.7)
PS iss2667> pip install virtualenv
Collecting virtualenv
PS iss2667> virtualenv env
Cannot find file C:\Jython\2.7.1\Include (bad symlink)
New jython executable in C:\Users\Jeff\Documents\Jython\bugs\iss2667\env\bin\jython.exe
Traceback (most recent call last):
File "C:\Jython\2.7.1\Lib\runpy.py", line 161, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Jython\2.7.1\Lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "C:\Jython\2.7.1\bin\virtualenv.exe\__main__.py", line 9, in <module>
File "C:\Jython\2.7.1\Lib\site-packages\virtualenv.py", line 703, in main
create_environment(home_dir,
File "C:\Jython\2.7.1\Lib\site-packages\virtualenv.py", line 925, in create_environment
py_executable = os.path.abspath(install_python(
File "C:\Jython\2.7.1\Lib\site-packages\virtualenv.py", line 1395, in install_python
os.symlink(py_executable_base, full_pth)
AttributeError: 'module' object has no attribute 'symlink'
The bit about "Cannot find file C:\Jython\2.7.1\Include (bad symlink)" is a red herring. (You can make it go away by creating one.)
As for
...
File "C:\Jython\2.7.1\Lib\site-packages\virtualenv.py", line 1395, in install_python
os.symlink(py_executable_base, full_pth)
AttributeError: 'module' object has no attribute 'symlink'
That's ok, we're on Windows. There isn't supposed to be one:
PS iss2667> python -c "import os; print os.symlink"
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'symlink'
I suspect that virtualenv has fallen into the common trap of assuming that if the platform is not Windows it must be POSIX, but here the platform is Java.
We could have done this platform thing differently. At the momemnt the collective judgement of the project is that it is too difficult to change, but I'll see if there's a work-around. |
|
Date |
User |
Action |
Args |
2018-05-07 16:12:03 | jeff.allen | set | messageid: <1525709523.69.0.682650639539.issue2667@psf.upfronthosting.co.za> |
2018-05-07 16:12:03 | jeff.allen | set | recipients:
+ jeff.allen, MightyDash |
2018-05-07 16:12:03 | jeff.allen | link | issue2667 messages |
2018-05-07 16:12:02 | jeff.allen | create | |
|