pyspider 安装后webui界面无法完全显示
我一直都在用pyspider做网络爬虫,但是最近运行程序发现了这样一个问题:
在CMD输入pyspider all之后,运行日志如下:
Microsoft Windows [版本 6.3.9600]
(c) 2013 Microsoft Corporation。保留所有权利。
C:\Users\wei>pyspider all
Web server running on port 25555
[I 180118 10:46:41 result_worker:49] result_worker starting...
[I 180118 10:46:43 processor:208] processor starting...
[I 180118 10:46:44 tornado_fetcher:508] fetcher starting...
c:\python27\lib\site-packages\pyspider\webui\index.py:11: ExtDeprecationWarning:
Importing flask.ext.login is deprecated, use flask_login instead.
from flask.ext import login
[I 180118 10:46:46 scheduler:569] scheduler starting...
[I 180118 10:46:46 scheduler:683] scheduler.xmlrpc listening on 127.0.0.1:23333
[I 180118 10:46:46 app:76] webui running on 0.0.0.0:5000
[I 180118 10:46:46 scheduler:68] project sinanews updated, status:TODO, paused:F
alse, 0 tasks
[I 180118 10:46:46 scheduler:68] project tianyancha2 updated, status:STOP, pause
d:False, 0 tasks
[I 180118 10:46:46 scheduler:68] project nationaldata updated, status:TODO, paus
ed:False, 0 tasks
[I 180118 10:46:46 scheduler:68] project Jd updated, status:TODO, paused:False,
0 tasks
[I 180118 10:46:46 scheduler:68] project text updated, status:RUNNING, paused:Fa
lse, 0 tasks
[I 180118 10:46:46 scheduler:68] project ifeng updated, status:STOP, paused:Fals
e, 0 tasks
[I 180118 10:46:46 scheduler:866] select text:_on_get_info data:,_on_get_info
[I 180118 10:46:46 scheduler:68] project KHTML updated, status:STOP, paused:Fals
e, 0 tasks
[I 180118 10:46:46 scheduler:68] project taobaom updated, status:TODO, paused:Fa
lse, 0 tasks
[I 180118 10:46:46 scheduler:68] project taobao updated, status:STOP, paused:Fal
se, 0 tasks
[I 180118 10:46:46 scheduler:68] project yuqing updated, status:RUNNING, paused:
False, 0 tasks
[E 180118 10:46:46 scheduler:579] dictionary changed size during iteration
Traceback (most recent call last):
File "c:\python27\lib\sitepackages\pyspider\scheduler\scheduler.py", line574, in run
self.run_once()
File "c:\python27\lib\site packages\pyspider\scheduler\scheduler.py", line1166, in run_once
super(ThreadBaseScheduler, self).run_once()File "c:\python27\lib\site-packages\pyspider\scheduler\scheduler.py",line563, in run_onceself._check_select()File "c:\python27\lib\site-packages\pyspider\scheduler\scheduler.py", line 418, in _check_select for project in itervalues(self.projects):
RuntimeError: dictionary changed size during iteration
然后打开localhost:5000出现了如下界面:
我觉得可能是有项目在Running导致的,但是现在无法通过webui将项目关掉,请问有小伙伴遇到这样的问题吗?求解决方法。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我的界面现在也变成这样了.
刚才卸载了之前的版本,重新安装最新版本就可以了。
遇到了同样的问题,题主解决了吗?