Apify and Crawlee Official Forum

Updated 4 months ago

Scrapy scraper immediately stopped working !!

Hi, I am writing scraper's in Python, Scrapy and Apify. I have multiple actors that were working great till last night but suddenly today when I create a new build and start to run they give error "AttributeError: 'AsyncioSelectorReactor' object has no attribute '_handleSignals'".
This is same for all the scrapers if I just run the previous build they run fine.
How can I fix this?
V
M
3 comments
Hi ,

it turns out to be a problem related to the new release of the Twisted library from yesterday (https://github.com/twisted/twisted/releases/tag/twisted-23.8.0), which is a Scrapy requirement.

As a hotfix, you can add the following constraint to the requirements.txt of your Actor project:
Plain Text
Twisted < 23.0.0
Thanks it worked.
Great, you're welcome. Also, we already updated the template (https://github.com/apify/actor-templates/pull/179).
Add a reply
Sign up and join the conversation on Discord