easy_install ReviewBoard [Errno 104]通过对等方重置连接

时间:2010-06-09 13:42:27

标签: python easy-install kubuntu review-board

我有一个Kubuntu 10.04 VM映像,我正在尝试按照The Linux Installation Wiki安装ReviewBoard。当我走到 easy_install ReviewBoard 的步骤时,我遇到了一个我无法找到解决方案的问题。以下是控制台输出:

>> sudo easy_install ReviewBoard
Searching for ReviewBoard
Best match: ReviewBoard 1.0.8
Processing ReviewBoard-1.0.8-py2.6.egg
ReviewBoard 1.0.8 is already the active version in easy-install.pth
Installing rb-site script to /usr/local/bin

Using /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.0.8-py2.6.egg
Processing dependencies for ReviewBoard
Searching for pytz
Reading http://downloads.reviewboard.org/mirror/
Download error: [Errno 104] Connection reset by peer -- Some packages may not be found!
Reading http://downloads.reviewboard.org/releases/ReviewBoard/1.0/
Download error: [Errno 104] Connection reset by peer -- Some packages may not be found!
Reading http://pypi.python.org/simple/pytz/
Download error: [Errno 104] Connection reset by peer -- Some packages may not be found!
Reading http://pypi.python.org/simple/pytz/
Download error: [Errno 104] Connection reset by peer -- Some packages may not be found!
Couldn't find index page for 'pytz' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
Download error: [Errno 104] Connection reset by peer -- Some packages may not be found!
No local packages or download links found for pytz
error: Could not find suitable distribution for Requirement.parse('pytz')

我是python的新手,但似乎easy_install无法决定pytz的版本。我已经阅读了

似乎这些文章中描述的问题与开发有关,而不是我的问题,但我可能错了。

有没有人遇到这样的问题?如果有任何遗漏信息可以帮助解决此问题,请告诉我。

@Ben Hoffstein

Settings for eth0:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Full 
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Full 
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Link partner advertised link modes:  Not reported
        Link partner advertised pause frame use: No
        Link partner advertised auto-negotiation: No
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        MDI-X: Unknown
        Supports Wake-on: d
        Wake-on: d
        Current message level: 0x00000007 (7)
        Link detected: yes

修改 我不确定这是否会是更有用的信息,但我尝试为Trac安装gitplugin并且我收到了同样的问题。所以,看起来这可能是easy_install的一个问题。

>> sudo easy_install http://trac-hacks.org/svn/gitplugin/0.11
Downloading http://trac-hacks.org/svn/gitplugin/0.11
error: Download error for http://trac-hacks.org/svn/gitplugin/0.11: [Errno 104] Connection reset by peer

2 个答案:

答案 0 :(得分:2)

这可能是PyPI主机的临时问题,请再试一次:easy_install pytz

答案 1 :(得分:0)

像@Tarantula说的那样,这是一个临时的pypi服务问题,我昨天打了一样。我尝试ping pypi.python.org(或dighost)几次,发现dns服务器返回了2台服务器。这是因为其中一个pypi服务器继续为其中一个python包请求抛出此错误。

所以我将映射pypi.python.org硬编码到/etc/hosts中的好映射基本上强制pypi.python.org解析到我想要的服务器,它减轻了我的痛苦。当然,当我们无法控制外部服务时,这是一个临时的解决方法。

# add a line to /etc/hosts
151.101.200.223 pypi.python.org

当服务恢复正常时摆脱线路。