Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #11555

Failed to create virtual environment when using --relocatable option, what's wrong?

Date 2011-08-16 22:23 +0800
Subject Failed to create virtual environment when using --relocatable option, what's wrong?
From smith jack <thinke365@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.63.1313504629.27778.python-list@python.org> (permalink)

Show all headers | View raw


all things works well without --relocatable option, the error info
when using --relocatable option is as follows :

F:\PythonEnv\djangoEnv>virtualenv f:\PythonEnv\djangoEnv2 --relocatable
PYTHONHOME is set.  You *must* activate the virtualenv before using it
The environment doesn't have a file f:\PythonEnv\djangoEnv2\Scripts\activate_thi
s.py -- please re-run virtualenv on this environment to update it
Traceback (most recent call last):
  File "E:\Tools\gov\tools\chrome_python\Scripts\virtualenv-script.py", line 7,
in ?
    sys.exit(
  File "e:\tools\gov\tools\chrome_python\lib\site-packages\virtualenv-1.6.4-py2.
4.egg\virtualenv.py", line 802, in main
    make_environment_relocatable(home_dir)
  File "e:\tools\gov\tools\chrome_python\lib\site-packages\virtualenv-1.6.4-py2.
4.egg\virtualenv.py", line 1338, in make_environment_relocatable
    fixup_scripts(home_dir)
  File "e:\tools\gov\tools\chrome_python\lib\site-packages\virtualenv-1.6.4-py2.
4.egg\virtualenv.py", line 1357, in fixup_scripts
    for filename in os.listdir(bin_dir):
WindowsError: [Errno 3] : 'f:\\PythonEnv\\djangoEnv2\\Scripts/*.*'

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Failed to create virtual environment when using --relocatable option,  what's wrong? smith jack <thinke365@gmail.com> - 2011-08-16 22:23 +0800
  Re: Failed to create virtual environment when using --relocatable option, what's wrong? alex23 <wuwei23@gmail.com> - 2011-08-17 20:08 -0700

csiph-web