[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-distutils-sig
Subject:    [Distutils] [issue160] bootstrap of virtualenv.py fails on setuptools 12.4
From:       Hannes Doyle <setuptools () bugs ! python ! org>
Date:       2015-03-05 14:27:07
Message-ID: 1425565627.75.0.0842093079418.issue160 () psf ! upfronthosting ! co ! za
[Download RAW message or body]

New submission from Hannes Doyle:

Hi,

We are running virtualenv 1.7.2 with python 2.7.3

when executing the following 
mkdir pyenv
virtualenv.py -p /<python path>/bin/python2.7 pyenv

I get the errors shown in the err.txt

But if I do the following it works fine:
mkdir pyenv 
wget 'https://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg#md5=fe1f997bc722265116870bc7919059ea'
 wget 'https://pypi.python.org/packages/source/p/pip/pip-6.0.8.tar.gz#md5=2332e6f97e75ded3bddde0ced01dbda3'
 virtualenv.py --never-download -p /<python path>/bin/python2.7 pyenv

And since this started to show at 2015-03-04 17:00 CET I suspect that it's related to \
the release of 12.4 that were released on the same day. I'm not sure if it might be \
here or in the virtualenv forum this should be posted though.

Regards Hannes

----------
files: err.txt
messages: 748
nosy: marulkan
priority: bug
status: unread
title: bootstrap of virtualenv.py fails on setuptools 12.4
Added file: http://bugs.python.org/setuptools/file173/err.txt

_______________________________________________
Setuptools tracker <setuptools@bugs.python.org>
<http://bugs.python.org/setuptools/issue160>
_______________________________________________


["err.txt" (text/plain)]

Running virtualenv with interpreter /<python path>/bin/python2.7
New python executable in pyenv/bin/python2.7
Also creating executable in pyenv/bin/python
Installing setuptools................................................
Complete output from command /home/marulkan/pyenv/bin/python2.7 -c "#!python
\"\"\"Bootstra...sys.argv[1:])

" --always-copy -U setuptools:
Downloading http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
 Searching for setuptools
Reading http://pypi.python.org/simple/setuptools/
Best match: setuptools 12.4
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-12.4.zip#md5=b088ed7a43a93a1fd1fcabdf73bfa0bf
 Processing setuptools-12.4.zip
Running setuptools-12.4/setup.py -q bdist_egg --dist-dir \
/tmp/easy_install-GP0RiD/setuptools-12.4/egg-dist-tmp-7KgrMA /<python \
path>/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: \
'src_root' warnings.warn(msg)
Traceback (most recent call last):
File "<string>", line 279, in <module>
File "<string>", line 214, in main
File "/home/marulkan/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", \
line 1712, in main File \
"/home/marulkan/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line \
1700, in with_ei_usage File \
"/home/marulkan/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line \
1716, in <lambda> File "/<python path>/lib/python2.7/distutils/core.py", line 152, in \
setup dist.run_commands()
File "/<python path>/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/<python path>/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/marulkan/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", \
line 211, in run File \
"/home/marulkan/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line \
446, in easy_install File \
"/home/marulkan/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line \
476, in install_item File \
"/home/marulkan/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line \
655, in install_eggs File \
"/home/marulkan/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line \
930, in build_and_install File \
"/home/marulkan/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line \
919, in run_setup File \
"/home/marulkan/setuptools-0.6c11-py2.7.egg/setuptools/sandbox.py", line 62, in \
run_setup File "/home/marulkan/setuptools-0.6c11-py2.7.egg/setuptools/sandbox.py", \
line 105, in run File \
"/home/marulkan/setuptools-0.6c11-py2.7.egg/setuptools/sandbox.py", line 64, in \
<lambda> File "setup.py", line 186, in <module>
File "/<python path>/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/<python path>/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/<python path>/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/marulkan/setuptools-0.6c11-py2.7.egg/setuptools/command/bdist_egg.py", \
line 167, in run File "/<python path>/lib/python2.7/distutils/cmd.py", line 326, in \
run_command self.distribution.run_command(command)
File "/<python path>/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/marulkan/setuptools-0.6c11-py2.7.egg/setuptools/command/egg_info.py", \
line 169, in run File "/home/marulkan/setuptools-0.6c11-py2.7.egg/pkg_resources.py", \
                line 1959, in load
ImportError: <module 'setuptools.command.egg_info' from \
'/home/marulkan/setuptools-0.6c11-py2.7.egg/setuptools/command/egg_info.py'> has no \
                'write_setup_requirements' attribute
----------------------------------------
...Installing setuptools...done.
Traceback (most recent call last):
File "/<virtualenv path>/bin/virtualenv.py", line 2429, in <module>
main()
File "/<virtualenv path>/bin/virtualenv.py", line 942, in main
never_download=options.never_download)
File "/<virtualenv path>/bin/virtualenv.py", line 1052, in create_environment
search_dirs=search_dirs, never_download=never_download)
File "/<virtualenv path>/bin/virtualenv.py", line 598, in install_setuptools
search_dirs=search_dirs, never_download=never_download)
File "/<virtualenv path>/bin/virtualenv.py", line 570, in _install_req
cwd=cwd)
File "/<virtualenv path>/bin/virtualenv.py", line 1020, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /home/marulkan/pyenv/bin/python2.7 -c "#!python
\"\"\"Bootstra...sys.argv[1:])

" --always-copy -U setuptools failed with error code 1



_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic