pyspider 安装后webui界面无法完全显示

发布于 2022-09-06 12:34:13 字数 2738 浏览 9 评论 0

我一直都在用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将项目关掉,请问有小伙伴遇到这样的问题吗?求解决方法。

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

触ぅ动初心 2022-09-13 12:34:13

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

猫九 2022-09-13 12:34:13

遇到了同样的问题,题主解决了吗?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文