-
Notifications
You must be signed in to change notification settings - Fork 826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python3 run_spider.py user 出现问题 #318
Comments
我也遇到了这个问题 |
大概率是scrapy版本的问题,请检查一下是不是requirements中的版本 |
同样的问题 $ python run_spider.py tweet_by_tweet_id |
检查过依赖版本是没问题的 |
可以试一下 pip install --upgrade scrapy |
(venv) ➜ weibospider git:(master) ✗ python3 run_spider.py user
Traceback (most recent call last):
File "/Users/daiyunshan/gitproject/WeiboSpider/weibospider/run_spider.py", line 25, in
process = CrawlerProcess(settings)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daiyunshan/gitproject/WeiboSpider/venv/lib/python3.11/site-packages/scrapy/crawler.py", line 281, in init
install_shutdown_handlers(self._signal_shutdown)
File "/Users/daiyunshan/gitproject/WeiboSpider/venv/lib/python3.11/site-packages/scrapy/utils/ossignal.py", line 19, in install_shutdown_handlers
reactor._handleSignals()
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'SelectReactor' object has no attribute '_handleSignals'
The text was updated successfully, but these errors were encountered: