$ python bootstrap.py
Downloading http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg
Download error: [Errno 110] Connection timed out -- Some packages may not be found!
Download error: [Errno 110] Connection timed out -- Some packages may not be found!
Download error: [Errno 110] Connection timed out -- Some packages may not be found!
我收到此错误。奇怪的是获取文件没有问题:
$ wget http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg
--2012-07-11 05:49:52-- http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg
Resolving pypi.python.org... 82.94.164.168
...
2012-07-11 05:49:58 (69.6 KB/s) - `setuptools-0.6c11-py2.6.egg' saved [333447/333447]
也很奇怪:./eggs 中有不同版本的 setuptools 的鸡蛋:setuptools-0.6c12dev_r88846-py2.6.egg
日志如下所示:
Downloading http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg
Download error: [Errno 110] Connection timed out -- Some packages may not be found!
Download error: [Errno 110] Connection timed out -- Some packages may not be found!
Creating directory '/opt/mytardis/releases/0351b5a804156c3d060c7042ad558e87616dee6d/bin'.
Creating directory '/opt/mytardis/releases/0351b5a804156c3d060c7042ad558e87616dee6d/parts'.
Creating directory '/opt/mytardis/releases/0351b5a804156c3d060c7042ad558e87616dee6d/eggs'.
Creating directory '/opt/mytardis/releases/0351b5a804156c3d060c7042ad558e87616dee6d/develop-eggs'.
Getting distribution for 'setuptools'.
Got setuptools 0.6c12dev-r88846.
Download error: [Errno 110] Connection timed out -- Some packages may not be found!
Generated script '/opt/mytardis/releases/0351b5a804156c3d060c7042ad558e87616dee6d/bin/buildout'.
Download error: [Errno 110] Connection timed out -- Some packages may not be found!
Develop: '/opt/mytardis/releases/0351b5a804156c3d060c7042ad558e87616dee6d/.'
有任何想法吗?这是一个 Django 应用程序(不是我编写的),我正试图通过 Vagrant 和 Chef 进行部署。这个步骤实际上在几个小时前才起作用(在我重建整个 VM 之前),所以我对发生了什么变化感到有些困惑。buildout.cfg 在这里。
编辑更多信息:看起来“下载错误”具有误导性,因为该文件实际上确实下载到了临时目录(/tmp/tmpxxxx/)。从命令行运行构建然后立即中断显示:
Downloading http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg
^CTraceback (most recent call last):
File "bootstrap.py", line 172, in <module>
ez['use_setuptools'](**setup_args)
File "<string>", line 103, in use_setuptools
File "<string>", line 99, in do_download
File "/tmp/tmpkXNqcy/setuptools-0.6c11-py2.6.egg/setuptools/__init__.py", line 2, in <module>
File "/tmp/tmpkXNqcy/setuptools-0.6c11-py2.6.egg/setuptools/extension.py", line 2, in <module>
File "/tmp/tmpkXNqcy/setuptools-0.6c11-py2.6.egg/setuptools/dist.py", line 4, in <module>
File "/tmp/tmpkXNqcy/setuptools-0.6c11-py2.6.egg/setuptools/depends.py", line 4, in <module>
File "/usr/lib/python2.6/distutils/version.py", line 63, in <module>
class StrictVersion (Version):
File "/usr/lib/python2.6/distutils/version.py", line 101, in StrictVersion
re.VERBOSE)
File "/usr/lib/python2.6/re.py", line 190, in compile
return _compile(pattern, flags)
File "/usr/lib/python2.6/re.py", line 243, in _compile
p = sre_compile.compile(pattern, flags)
File "/usr/lib/python2.6/sre_compile.py", line 510, in compile
code = _code(p, flags)
File "/usr/lib/python2.6/sre_compile.py", line 495, in _code
_compile(code, p.data, flags)
File "/usr/lib/python2.6/sre_compile.py", line 96, in _compile
_compile(code, av[2], flags)
File "/usr/lib/python2.6/sre_compile.py", line 107, in _compile
_compile(code, av[1], flags)
File "/usr/lib/python2.6/sre_compile.py", line 107, in _compile
_compile(code, av[1], flags)
File "/usr/lib/python2.6/sre_compile.py", line 88, in _compile
_compile(code, av[2], flags)
File "/usr/lib/python2.6/sre_compile.py", line 63, in _compile
_compile_charset(av, flags, code, fixup)
File "/usr/lib/python2.6/sre_compile.py", line 203, in _compile_charset
if flags & SRE_FLAG_LOCALE:
KeyboardInterrupt