在 Atom 中使用氢的巨大 IPKernelApp 错误 [英] Giant IPKernelApp Error Using Hydrogen in Atom

查看:25
本文介绍了在 Atom 中使用氢的巨大 IPKernelApp 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从几天前开始,几个月没有问题后,我开始在 Atom 中编辑我的代码时不断弹出一个巨大的错误框.我相信它来自 Hydrogen 插件,奇怪的是即使有这个错误,代码仍然运行并执行我想要的操作.

Starting a few days ago, after months without issue, I began having a giant error box keep popping up when editing my code in Atom. I believe it is from the Hydrogen plugin, the weird thing is even with this error the code still runs and does what I want it too.

我创建了一个新的 conda 环境,只安装了我需要的东西(pandas、geopandas、descartes、jupyter),即使在 Atom 中使用新环境时,我也遇到了这个问题.我已经尝试升级 ipykernel,但它已经是最新版本.

I created a new conda environment, installing only what I needed (pandas, geopandas, descartes, jupyter) and even when using the new environment in Atom I am getting this issue. I've tried upgrading ipykernel but it is already the most recent version.

错误信息

[IPKernelApp] 错误 |消息处理程序中的异常:回溯(最近一次调用最后一次):文件/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/ipykernel/kernelbase.py",第 268 行,dispatch_shell yieldgen.maybe_future(handler(stream, idents, msg)) 文件/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/tornado/gen.py",第 762 行,运行值= future.result() 文件/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/tornado/gen.py",第 234 行,在包装器中产生 = ctx_run(next, result)文件/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/ipykernel/kernelbase.py",第 583 行,在 complete_request 匹配 = yield gen.maybe_future(self.do_complete(code, cursor_pos))) 文件/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/ipykernel/ipkernel.py",第 360 行,在 do_complete 中返回 self._experimental_do_complete(code, cursor_pos) 文件/home/username/anaconda3/envs/fresh/lib/python3.8/site-package/ipykernel/ipkernel.py",第 385 行,在 _experimental_do_complete completions = list(_rectify_completions(code, raw_completions)) 文件/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/IPython/core/completer.py",第 484 行,在 rectify_completions completions = list(completions) 文件/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/IPython/core/completer.py";, line 1818, in completions for c in self._completions(text, offset, _timeout=self.jedi_compute_type_timeout/1000): File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/IPython/core/completer.py", line 1861, in _completions matching_text,matches,matches_origin,jedi_matches = self._complete( File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/IPython/core/completer.py", line 2029, in _complete completions = self._jedi_matches( File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/IPython/core/completer.py",第 1373 行,在 _jedi_matches 解释器 = jedi.Interpreter(文件/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/jedi/api/init.py",第 725 行, 在 init super().init(code, environment=environment, TypeError: init() got an unexpected keyword argument 'column'

[IPKernelApp] ERROR | Exception in message handler: Traceback (most recent call last): File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/ipykernel/kernelbase.py", line 268, in dispatch_shell yield gen.maybe_future(handler(stream, idents, msg)) File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/tornado/gen.py", line 762, in run value = future.result() File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/tornado/gen.py", line 234, in wrapper yielded = ctx_run(next, result) File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/ipykernel/kernelbase.py", line 583, in complete_request matches = yield gen.maybe_future(self.do_complete(code, cursor_pos)) File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/ipykernel/ipkernel.py", line 360, in do_complete return self._experimental_do_complete(code, cursor_pos) File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/ipykernel/ipkernel.py", line 385, in _experimental_do_complete completions = list(_rectify_completions(code, raw_completions)) File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/IPython/core/completer.py", line 484, in rectify_completions completions = list(completions) File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/IPython/core/completer.py", line 1818, in completions for c in self._completions(text, offset, _timeout=self.jedi_compute_type_timeout/1000): File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/IPython/core/completer.py", line 1861, in _completions matched_text, matches, matches_origin, jedi_matches = self._complete( File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/IPython/core/completer.py", line 2029, in _complete completions = self._jedi_matches( File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/IPython/core/completer.py", line 1373, in _jedi_matches interpreter = jedi.Interpreter( File "/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/jedi/api/init.py", line 725, in init super().init(code, environment=environment, TypeError: init() got an unexpected keyword argument 'column'

推荐答案

最新的绝地 (0.18) 版本与 IPython 7.19 不兼容,请参阅 这个讨论.IPython:7.20(2020 年 2 月 1 日发布)和 8.0(尚未发布)具有兼容性修复.

The latest jedi (0.18) release is incompatible with IPython 7.19 see this discussion. IPython: 7.20 (released Feb 1st 2020) and 8.0 (not yet released) have a compatibility fix.

此时正确的解决方法是升级IPython:

The correct workaround at this time is to upgrade IPython:

pip install -U ipython==7.20

将来您可以在删除特定于您的安装的所有路径片段后搜索引用的最后两行,这是搜索:

In future you can search for the final two lines of the trackback after removing all path fragments specific to your installation, this is searching for:

line 2029, in _complete completions = self._jedi_matches IPython/core/completer.py, line 1373, in _jedi_matches interpreter = jedi.Interpreter( jedi/api/init.py, line 725, in init super().init(code, environment=environment, TypeError: init() got an unexpected keyword argument 'column'

这将在前两个 Google 结果中为您提供 GitHub 上的相关问题.

This will give you the relevant issues on GitHub in the first two Google result as for today.

这篇关于在 Atom 中使用氢的巨大 IPKernelApp 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆