Closed zeinzbern closed 3 years ago
Got the same issues. I'm doing the test code on my Mac OS Catalina 10.15.6 (19G2021) using PyCharm 2020.1.3 (Professional Edition). Below is the error message:
[2020:11:11 16:12:23] INFO Ruia Spider started!
[2020:11:11 16:12:23] INFO Ruia Worker started: 140591938788528
[2020:11:11 16:12:23] INFO Ruia Worker started: 140591938788704
[2020:11:11 16:12:23] INFO Request <GET: https://news.ycombinator.com>
[2020:11:11 16:12:24] INFO Request <GET: https://news.ycombinator.com/news?p=1>
[2020:11:11 16:12:24] INFO Request <GET: https://news.ycombinator.com/news?p=2>
[2020:11:11 16:12:26] INFO Ruia Stopping spider: Ruia
Traceback (most recent call last):
File "/Users/bigo/PycharmProjects/crawler/hacker_news_spider/hacker_news.py", line 37, in <module>
HackerNewsSpider.start(middleware=middleware)
File "/Users/bigo/.conda/envs/crawler/lib/python3.7/site-packages/ruia/spider.py", line 348, in start
spider_ins._start(after_start=after_start, before_stop=before_stop)
File "/Users/bigo/.conda/envs/crawler/lib/python3.7/asyncio/base_events.py", line 577, in run_until_complete
raise RuntimeError('Event loop stopped before Future completed.')
RuntimeError: Event loop stopped before Future completed.
I checked my MongoDB, it seems working correctly, the data is here even though the test code throws errors.
@cao-weiwei What python version are you using?
https://github.com/howie6879/ruia/blob/127ca222b982cdbadfd567cd189541b437ce756e/ruia/spider.py#L529 将这行代码注释掉。 这个没必要吧。 @howie6879
me too
[2020:12:04 16:04:54] INFO Ruia Stopping spider: Ruia Traceback (most recent call last): File "test.py", line 29, in <module> RetryDemo.start() File "/root/.local/share/virtualenvs/web-Ln6OeU4f/lib/python3.8/site-packages/ruia/spider.py", line 347, in start spider_ins.loop.run_until_complete( File "/usr/lib/python3.8/asyncio/base_events.py", line 614, in run_until_complete raise RuntimeError('Event loop stopped before Future completed.') RuntimeError: Event loop stopped before Future completed.
pip install git+https://github.com/howie6879/ruia
environment: system win10 professional cpu amd
test code
error message:
I think it is a signal that win10 does not support Unix