首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装python-sybase模块时遇到的问题

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

Stack Overflow用户
提问于 2010-07-24 01:15:13
回答 1查看 1.3K关注 0票数 0

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

代码语言:javascript
复制
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')>

有什么想法吗?

EN

回答 1

Stack Overflow用户

发布于 2010-07-24 02:06:55

它还告诉您在发生这种情况时应该做什么:自己下载文件,并将其放在与脚本相同的目录中。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3320659

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档