Skip to content

python3 run_spider.py user 出现问题 #318

@innerbboy

Description

@innerbboy

(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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions