推荐学习书目
› 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
liuxurong
V2EX  ›  Python

使用Gevent程序正常运行出现这个异常是什么意思..KeyError(155880780,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored

  •  
  •   liuxurong · Dec 10, 2012 · 8963 views
    This topic created in 5040 days ago, the information mentioned may be changed or developed.
    Exception KeyError: KeyError(155880780,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored

    是BUG吗? 已经Google & Baidu过了,没有很好的答案。
    3 replies  •  1970-01-01 08:00:00 +08:00
    VYSE
        1
    VYSE  
       Dec 10, 2012   ❤️ 1
    WINDOWS上会这样,等作者修复吧
    btwo
        2
    btwo  
       Dec 11, 2012
    https://github.com/SiteSupport/gevent/issues/153 有个关于这个的问题的解释.但我现在也还是没搞明白。

    http://www.v2ex.com/t/52190#reply4 这个是我上次的提问。
    pigletfly
        3
    pigletfly  
       Dec 20, 2012   ❤️ 1
    简单的解决方法,from gevent import monkey monkey.patch_all()这两句永远放在其他import前面即可,不然第三方包会使用threading.local
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5009 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 07:51 · PVG 15:51 · LAX 00:51 · JFK 03:51
    ♥ Do have faith in what you're doing.