virtualenv version: 1.5.1
python version: 2.6.5
OS: ubuntu-server
executing:
virtualenv test
retuns this output:
New python executable in test/bin/python
Installing setuptools.......................done.
Complete output from command /home/phaethon/test/bin/python /home/phaethon/test/bin/easy_install /home/phaethon/lib/python/virt...ar.gz:
Processing pip-0.8.1.tar.gz
Running pip-0.8.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-CjEzjq/pip-0.8.1/egg-dist-tmp-fC6emG
Traceback (most recent call last):
File "/home/phaethon/test/bin/easy_install", line 8, in <module>
load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
File "/home/phaethon/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 1712, in main
File "/home/phaethon/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 1700, in with_ei_usage
File "/home/phaethon/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 1716, in <lambda>
File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File "/home/phaethon/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 211, in run
File "/home/phaethon/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 427, in easy_install
File "/home/phaethon/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 476, in install_item
File "/home/phaethon/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 655, in install_eggs
File "/home/phaethon/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 930, in build_and_install
File "/home/phaethon/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 919, in run_setup
File "/home/phaethon/setuptools-0.6c11-py2.6.egg/setuptools/sandbox.py", line 52, in run_setup
AttributeError: 'module' object has no attribute '__getstate__'
----------------------------------------
Traceback (most recent call last):
File "/home/phaethon/bin/virtualenv", line 8, in <module>
load_entry_point('virtualenv==1.5.1', 'console_scripts', 'virtualenv')()
File "/home/phaethon/lib/python/virtualenv.py", line 558, in main
prompt=options.prompt)
File "/home/phaethon/lib/python/virtualenv.py", line 656, in create_environment
install_pip(py_executable)
File "/home/phaethon/lib/python/virtualenv.py", line 415, in install_pip
filter_stdout=_filter_setup)
File "/home/phaethon/lib/python/virtualenv.py", line 624, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /home/phaethon/test/bin/python /home/phaethon/test/bin/easy_install /home/phaethon/lib/python/virt...ar.gz failed with error code 1
virtualenv is installed in my home dir using the install-option="--home=~"
I found out what was causing this.
There was some old versions of setuptools on my ~/.local/ that seemed to interfere.
I only show a warning when using --distribute flag, so I just removed those and it worked. Go distrubute!