qiyeboy/SpiderBook

第26页monkey.patch_all()

Opened this issue · 1 comments

使用gevent自动切换协程,按照第26页代码在Ipython Console中运行,会报警告:The history saving thread hit an unexpected error (LoopExit('This operation would block forever', <Hub at 0xbd6caf8 select pending=0 ref=0>)).History will not be written to the database.
然后运行程序一直无法退出。
本人爬虫小白,有大神可以解答一下吗?

不知道你gevent的版本,不过代码都是运行过的,没有问题