V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
richiefans
V2EX  ›  Python

gevent+requests报DNS错误,求解决

  •  
  •   richiefans ·
    iamued · 2013-09-12 01:13:19 +08:00 · 3983 次点击
    这是一个创建于 3880 天前的主题,其中的信息可能已经有所发展或是发生改变。
    ConnectionError: HTTPConnectionPool(host='ucdchina.com', port=80): Max retries exceeded with url: /snap/1263 (Caused by <class 'gevent.dns.DNSError'>: [Errno 66] unknown)


    代码是 http://matrix.42qu.com/10732773 这个代码

    不知道为什么会报这个错误,求解决
    gevent版本
    >>> gevent.__version__
    '0.13.8'

    @zuorc
    3 条回复    1970-01-01 08:00:00 +08:00
    wwqgtxx
        1
    wwqgtxx  
       2013-09-12 05:48:11 +08:00 via Android   ❤️ 1
    可能用gevent1.0rc2会好一些
    richiefans
        2
    richiefans  
    OP
       2013-09-12 18:19:29 +08:00
    还真的ok了 就是gevent的shundown方法没有了 1.0貌似还没文档?
    wwqgtxx
        3
    wwqgtxx  
       2013-09-12 19:43:06 +08:00 via Android
    @richiefans 请@我好么?
    1.0貌似还没有成熟,但目前已经很成熟了,慢慢等正式版出来应该就有文档了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1024 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 19:21 · PVG 03:21 · LAX 12:21 · JFK 15:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.