2014-05-03 3 views
5

Cela a fonctionné il y a quelques jours mais la création d'un nouveau ververt vertical aujourd'hui cause cet échec.La création de la nouvelle version de virtualenv 1.11.5 a échoué avec le problème de setuptools

L'installation de python-setuptools après l'installation de Python séparément, a également échoué avec le même problème. C'est sur Mac OS.

mac:django bgbb$ virtualenv vnv 
New python executable in vnv/bin/python 
Installing setuptools, pip... 
Complete output from command /Users/bgbb/Developer/django/vnv/bin/python -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip: 
Ignoring indexes: https://pypi.python.org/simple/ 
Downloading/unpacking setuptools 
Cleaning up... 
Exception: 
Traceback (most recent call last): 
File "/Library/Python/2.7/site-packages/virtualenv_support/pip-1.5.5-py2.py3-none-any.whl/pip/basecommand.py", line 122, in main 
    status = self.run(options, args) 
File "/Library/Python/2.7/site-packages/virtualenv_support/pip-1.5.5-py2.py3-none-any.whl/pip/commands/install.py", line 278, in run 
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) 
File "/Library/Python/2.7/site-packages/virtualenv_support/pip-1.5.5-py2.py3-none-any.whl/pip/req.py", line 1197, in prepare_files 
do_download, 
File "/Library/Python/2.7/site-packages/virtualenv_support/pip-1.5.5-py2.py3-none-any.whl/pip/req.py", line 1364, in unpack_url 
unpack_file_url(link, location, download_dir) 
File "/Library/Python/2.7/site-packages/virtualenv_support/pip-1.5.5-py2.py3-none-any.whl/pip/download.py", line 640, in unpack_file_url 
unpack_file(from_path, location, content_type, link) 
File "/Library/Python/2.7/site-packages/virtualenv_support/pip-1.5.5-py2.py3-none-any.whl/pip/util.py", line 621, in unpack_file 
unzip_file(filename, location, flatten=not filename.endswith(('.pybundle', '.whl'))) 
File "/Library/Python/2.7/site-packages/virtualenv_support/pip-1.5.5-py2.py3-none-any.whl/pip/util.py", line 491, in unzip_file 
zip = zipfile.ZipFile(zipfp) 
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/zipfile.py", line 766, in __init__ 
self._RealGetContents() 
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/zipfile.py", line 807, in _RealGetContents 
raise BadZipfile, "File is not a zip file" 
BadZipfile: File is not a zip file 

Storing debug log for failure in /Users/bgbb/.pip/pip.log 
---------------------------------------- 
...Installing setuptools, pip...done. 
Traceback (most recent call last): 
File "/usr/local/bin/virtualenv", line 8, in <module> 
    load_entry_point('virtualenv==1.11.5', 'console_scripts', 'virtualenv')() 
File "/Library/Python/2.7/site-packages/virtualenv.py", line 824, in main 
    symlink=options.symlink) 
File "/Library/Python/2.7/site-packages/virtualenv.py", line 992, in create_environment 
    install_wheel(to_install, py_executable, search_dirs) 
File "/Library/Python/2.7/site-packages/virtualenv.py", line 960, in install_wheel 
    'PIP_NO_INDEX': '1' 
File "/Library/Python/2.7/site-packages/virtualenv.py", line 902, in call_subprocess 
    % (cmd_desc, proc.returncode)) 
OSError: Command /Users/bgbb/Developer/django/vnv/bin/python -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip failed with error code 2 

Répondre

4

beaucoup de messages au sujet de cette question, les rétrogradations à virtualenv 1.10.1 semble être une solution.

github venev issue

+1

par https://bitbucket.org/pypa/setuptools/issue/129/assertionerror-egg-info-pkg-info-is-not-a, pip-1.5.2 et virtualenv-1.11 .2 contiendra ce correctif. Voici mes versions de pip et virtualenv pip - version pip 1.5.4 virtualenv 1.11.5 – Hobaak

+0

J'allais juste vous demander si vous aviez, 1.11.5 est une version de mai je pense. –

+0

Installé 1.11.2 et travaillé. Le virtualenv 1.11.5 (version du 3 mai) a régressé de nouveau clairement. – Hobaak

Questions connexes