[Distutils] virtualenv 1.5 error on windows

Sridhar Ratnakumar sridharr at activestate.com
Wed Sep 15 06:14:22 CEST 2010


  See 
http://bitbucket.org/ianb/virtualenv/issue/60/win-assertionerror-in-change_prefix

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
>



More information about the Distutils-SIG mailing list