【问题标题】:Troubles in installing python-sybase module安装python-sybase模块的问题
【发布时间】:2011-03-20 05:42:49
【问题描述】:

我正在尝试按照安装指南安装此模块: http://python-sybase.sourceforge.net/sybase/node5.html 我收到一个我不明白的错误,我想知道这是否不是防火墙问题,但我不知道如何处理:

C:\Documents and Settings\lippela\Desktop\python-sybase-0.39>python setup.py ins
tall

---------------------------------------------------------------------------
This script requires setuptools version 0.6c6 to run (even to display
help).  I will attempt to download it for you (from
http:  //cheeseshop.python.org/packages/2.4/s/setuptools/), but
you may need to enable firewall access for this script first.
I will start the download in 15 seconds.

(Note: if this machine does not have network access, please obtain the file

   http://  cheeseshop.python.org/packages/2.4/s/setuptools/setuptools-0.6c6-py2.4.egg

and place it in this directory before rerunning this script.)
---------------------------------------------------------------------------
Downloading http:  //cheeseshop.python.org/packages/2.4/s/setuptools/setuptools-0.6c6-py2.4.egg
Traceback (most recent call last):
  File "setup.py", line 31, in ?
    use_setuptools()
  File "C:\Documents and Settings\lippela\Desktop\python-sybase-0.39\ez_setup.py
", line 86, in use_setuptools
    egg = download_setuptools(version, download_base, to_dir, download_delay)
  File "C:\Documents and Settings\lippela\Desktop\python-sybase-0.39\ez_setup.py
", line 140, in download_setuptools
    src = urllib2.urlopen(url)
  File "C:\Python24\lib\urllib2.py", line 130, in urlopen
    return _opener.open(url, data)
  File "C:\Python24\lib\urllib2.py", line 358, in open
    response = self._open(req, data)
  File "C:\Python24\lib\urllib2.py", line 376, in _open
    '_open', req)
  File "C:\Python24\lib\urllib2.py", line 337, in _call_chain
    result = func(*args)
  File "C:\Python24\lib\urllib2.py", line 1021, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "C:\Python24\lib\urllib2.py", line 996, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error (11001, 'getaddrinfo failed')>

有什么想法吗?

【问题讨论】:

    标签: python sybase


    【解决方案1】:

    安装脚本未能下载它尝试下载的 .egg。它还告诉您发生这种情况时该怎么做:自己下载文件并将其放在与脚本相同的目录中。

    【讨论】:

    • 其实setuptools是下载不了的,但问题和解决方法是一样的
    • 是的,它尝试下载的 .egg 是 setuptools 的 .egg。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-07-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-08-04
    • 2016-08-19
    相关资源
    最近更新 更多