服务器启动了,但是当我打开一本笔记本(甚至是空白笔记本)时,内核消失并且继续重启。我在arch-linux中使用python3.7。 错误“ RuntimeError:此事件循环已在运行”一直在循环中发生。
Connecting to: tcp://127.0.0.1:36789
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.7/site-packages/ipykernel_launcher.py", line 16, in <module>
app.launch_new_instance()
File "/usr/lib/python3.7/site-packages/traitlets/config/application.py", line 658, in launch_instance
app.start()
File "/usr/lib/python3.7/site-packages/ipykernel/kernelapp.py", line 477, in start
ioloop.IOLoop.instance().start()
File "/usr/lib/python3.7/site-packages/tornado/platform/asyncio.py", line 132, in start
self.asyncio_loop.run_forever()
File "/usr/lib/python3.7/asyncio/base_events.py", line 510, in run_forever
raise RuntimeError('This event loop is already running')
RuntimeError: This event loop is already running
答案 0 :(得分:0)
这可能是Arch Linux问题,已在其论坛上多次问到,例如here,并且已经创建了bug report。升级python-ipykernel后应该解决此问题,但是我不知道需要多长时间。
更新:它已在存储库中更新,因此升级您的系统将对其进行修复。
一个对我有用的临时hacky解决方案是使用pip作为用户来升级它(这样它就安装在〜/ .local而不是/ usr /中),即:
pip install --user --upgrade ipykernel
这样,您不必降级任何程序包(这可能是一个更好的解决方案,但更烦人)。
Arch团队升级了软件包后,最好删除点子版本( pip uninstall ipykernel
)