推荐学习书目
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 · Sep 12, 2013 · 4706 views
    This topic created in 4635 days ago, the information mentioned may be changed or developed.
    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 replies    1970-01-01 08:00:00 +08:00
    wwqgtxx
        1
    wwqgtxx  
       Sep 12, 2013 via Android   ❤️ 1
    可能用gevent1.0rc2会好一些
    richiefans
        2
    richiefans  
    OP
       Sep 12, 2013
    还真的ok了 就是gevent的shundown方法没有了 1.0貌似还没文档?
    wwqgtxx
        3
    wwqgtxx  
       Sep 12, 2013 via Android
    @richiefans 请@我好么?
    1.0貌似还没有成熟,但目前已经很成熟了,慢慢等正式版出来应该就有文档了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2575 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 15:58 · PVG 23:58 · LAX 08:58 · JFK 11:58
    ♥ Do have faith in what you're doing.