1
$ 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
4

1 回答 1

0

检查多个页面以查找可能的可下载目标。如果其中一个出现故障或产生错误,您会看到此警告。但这只是一个警告,如果事情真的向南,你会得到一个正确的错误。

发出警告是为了让您知道 setuptools可能选择了与其他方式不同的软件包版本;它从 pypi 收集包的版本列表以及从那里链接的页面,其中一个页面超时可能意味着这次没有选择“更好”的版本。

换句话说:别担心,状态设计。

于 2012-07-11T11:55:51.773 回答