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
liuxurong
V2EX  ›  Python

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

  •  
  •   liuxurong · 2012-12-10 02:43:03 +08:00 · 7938 次点击
    这是一个创建于 4147 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Exception KeyError: KeyError(155880780,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored

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

    http://www.v2ex.com/t/52190#reply4 这个是我上次的提问。
    pigletfly
        3
    pigletfly  
       2012-12-20 17:08:21 +08:00   ❤️ 1
    简单的解决方法,from gevent import monkey monkey.patch_all()这两句永远放在其他import前面即可,不然第三方包会使用threading.local
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3282 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 12:22 · PVG 20:22 · LAX 05:22 · JFK 08:22
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.