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出现了如下界面:
clipboard.png

我觉得可能是有项目在Running导致的,但是现在无法通过webui将项目关掉,请问有小伙伴遇到这样的问题吗?求解决方法。

阅读 4.8k
2 个回答

我的界面现在也变成这样了.
刚才卸载了之前的版本,重新安装最新版本就可以了。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进