virtualenv 1.5 error on windows
Hi All, File "virtualenv-1.5\virtualenv.py", line 1645, in <module> main() File "virtualenv-1.5\virtualenv.py", line 556, in main prompt=options.prompt) File "virtualenv-1.5\virtualenv.py", line 645, in create_environment site_packages=site_packages, clear=clear)) File "virtualenv-1.5\virtualenv.py", line 769, in install_python copy_required_modules(home_dir) File "virtualenv-1.5\virtualenv.py", line 723, in copy_required_modules dst_filename = change_prefix(filename, dst_prefix) File "virtualenv-1.5\virtualenv.py", line 704, in change_prefix assert relpath[0] == '/' AssertionError Looks like a classic non-cross-platform piece of code, right? Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk
1.4.9 blows up differently: Traceback (most recent call last): File "virtualenv-1.4.9\virtualenv.py", line 1489, in <module> main() File "virtualenv-1.4.9\virtualenv.py", line 526, in main use_distribute=options.use_distribute) File "virtualenv-1.4.9\virtualenv.py", line 616, in create_environment install_setuptools(py_executable, unzip=unzip_setuptools) File "virtualenv-1.4.9\virtualenv.py", line 361, in install_setuptools _install_req(py_executable, unzip) File "virtualenv-1.4.9\virtualenv.py", line 337, in _install_req cwd=cwd) File "virtualenv-1.4.9\virtualenv.py", line 587, in call_subprocess % (cmd_desc, proc.returncode)) OSError: Command C:\virtualenvs\test\Scripts\python.exe -c "#!python \"\"\"Bootstrap setuptoo... I had to go back to 1.3.4 to get a workinging virtualenv :-( Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk
See http://bitbucket.org/ianb/virtualenv/issue/60/win-assertionerror-in-change_p... 1.5 is basically broken on Windows, and it breaks all packages that rely on virtualenv ... such as tox. We need a new release. As for the error you see with 1.4.9, see http://bitbucket.org/ianb/virtualenv/issue/11/windows-issue -srid On 9/14/2010 2:12 PM, Chris Withers wrote:
Hi All,
File "virtualenv-1.5\virtualenv.py", line 1645, in <module> main() File "virtualenv-1.5\virtualenv.py", line 556, in main prompt=options.prompt) File "virtualenv-1.5\virtualenv.py", line 645, in create_environment site_packages=site_packages, clear=clear)) File "virtualenv-1.5\virtualenv.py", line 769, in install_python copy_required_modules(home_dir) File "virtualenv-1.5\virtualenv.py", line 723, in copy_required_modules dst_filename = change_prefix(filename, dst_prefix) File "virtualenv-1.5\virtualenv.py", line 704, in change_prefix assert relpath[0] == '/' AssertionError
Looks like a classic non-cross-platform piece of code, right?
Chris
participants (2)
-
Chris Withers
-
Sridhar Ratnakumar