Why I am Getting '_SIGCHLDWaker' object has no attribute 'doWrite' in Scrapy?

后端 未结 1 1071
既然无缘
既然无缘 2021-02-06 16:42

I am using Scrapy spiders inside Celery and I am getting this kind of errors randomly

Unhandled Error
Traceback (most recent call last):
  File \"/usr/lib/python         


        
相关标签:
1条回答
  • 2021-02-06 17:27

    I had the same issue. I'm working within a complex application, using asyncio, multiprocessing, Twisted and Scrapy all together.

    The solution for me was to use asyncioreactor, by installing the alternate reactor before any imports in scrapy:

    from twisted.internet import asyncioreactor
    asyncioreactor.install()
    
    from scrapy import stuff
    # ...
    
    0 讨论(0)
提交回复
热议问题