安装python-sybase模块时遇到的问题

0 投票
1 回答
1374 浏览
提问于 2025-04-16 01:44

我正在按照安装指南来安装这个模块,链接是: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')>

有没有什么建议?

1 个回答

1

这个安装脚本没能成功下载它想要的 .egg 文件。它还告诉你遇到这种情况该怎么做:自己下载这个文件,然后把它放在和脚本同一个文件夹里。

撰写回答