Step missing in setup instructions
Running ./install in my Ubuntu setup causes the following output
OSError: Command /home/ruy/projects/m...pment/env/bin/python -c "#!python
\"\"\"Bootstra...sys.argv[1:])
" --always-copy -U setuptools failed with error code 1
./install: line 4: env/bin/easy_install: No such file or directory
./install: line 8: ../env/bin/crepo: No such file or directory
./install: line 10: ./go: No such file or directory
Corrected by running:
$ virtualenv env
before ./install
Hmmm. If you look at the install script, all it does is download virtualenv and execute it. The installer doesn't assume that you have virtualenv present already. Can you run through the install script line by line and see if you can't figure out what needs to change in it?
Seems to be a permission problem:
$ python virtualenv.py env
New python executable in env/bin/python
Installing setuptools...................
Complete output from command /home/ruy/projects/m...pment/env/bin/python -c "#!python
\"\"\"Bootstra...sys.argv[1:])
" --always-copy -U setuptools:
/home/ruy/projects/mootools-development/env/lib/python2.6/site-packages/distribute-0.6.10-py2.6.egg/setuptools/command/easy_install.py:198: UserWarning: Unbuilt egg for setuptools [unknown version] (/usr/lib/python2.6/dist-packages)
self.local_index = Environment(self.shadow_path+sys.path)
Searching for distribute
Reading http://pypi.python.org/simple/distribute/
Reading http://packages.python.org/distribute
Best match: distribute 0.6.19
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.19.tar.gz#md5=45a17940eefee849d4cb8cc06d28d96f
Processing distribute-0.6.19.tar.gz
Running distribute-0.6.19/setup.py -q bdist_egg --dist-dir /tmp/easy_install-csZgHI/distribute-0.6.19/egg-dist-tmp-J_4LjR
Before install bootstrap.
Scanning installed packages
Setuptools installation detected at /usr/lib/python2.6/dist-packages
Non-egg installation
Removing elements out of the way...
Renaming /usr/lib/python2.6/dist-packages/setuptools.egg-info into /usr/lib/python2.6/dist-packages/setuptools.egg-info.OLD.1309887643.96
error: Permission denied
----------------------------------------
...Installing setuptools...done.
Traceback (most recent call last):
File "virtualenv.py", line 1965, in <module>
main()
File "virtualenv.py", line 795, in main
never_download=options.never_download)
File "virtualenv.py", line 895, in create_environment
search_dirs=search_dirs, never_download=never_download)
File "virtualenv.py", line 588, in install_setuptools
search_dirs=search_dirs, never_download=never_download)
File "virtualenv.py", line 562, in _install_req
cwd=cwd)
File "virtualenv.py", line 863, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /home/ruy/projects/m...pment/env/bin/python -c "#!python
\"\"\"Bootstra...sys.argv[1:])
" --always-copy -U setuptools failed with error code 1
I don't get it. Why would running virtualenv to a specific target try and alter your copy of setuptools elsewhere? Shouldn't it be putting setuptools into that environment? Not in /usr/lib?
I'm not quite sure. I have no experience with python or virtualenv, so I'm not really quite sure I know what's happening here. But my broad impression is that this is trying to install a "local" copy of python and it shouldn't need to go out of the "sandbox". I tried uninstalling the python-virtualenv package before rerunning the virtualenv.py and got the same results.
For what it's worth, I'm running Ubuntu 10.04, Python 2.6.5
can you tell me what the pwd is? specifically, I'm wondering if you have any spaces in the path where you're installing this.
/home/ruy/projects/mootools-development
Would it have anything to do with "Setuptools" already being available? Would this have been because of installation of python-virtualenv? If it helps, I am on IRC#mootools
the path looks fine. I don't think it has anything to do with setuptools already being available.
Opened this ticket: https://github.com/pypa/virtualenv/issues/147