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

查看:127
本文介绍了在原子中使用氢的巨型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环境,仅安装了我需要的内容(熊猫,大熊猫,笛卡尔,朱庇特),甚至在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产量中gen.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(下一个,结果) 583行中的文件"/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/ipykernel/kernelbase.py",在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(代码,cursor_pos)文件"/home/用户名/anaconda3/envs/fresh/lib/python3.8/site-pack _experimental_do_complete完成中的"ages/ipykernel/ipkernel.py"行385 = list(_rectify_completions(code,raw_completions))文件"/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/IPython /core/completer.py",第484行,在rectify_completions完成中=列表(完成)文件"/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/IPython/core/completer.py" ;,第1818行,在self._completions(text,offset,_timeout = self.jedi_compute_type_timeout/1000)中为c的补全中:文件"/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages /IPython/core/completer.py",第1861行,以_completions_matched_text,matches,matches_origin,jedi_matches = self._complete(文件"/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages" /IPython/core/completer.py",第2029行,以_completecompletes = self._jedi_matches(File``/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/IPython/core/completer _jedi_matches解释器= jedi中的第1373行".py",解释器(文件"/home/username/anaconda3/envs/fresh/lib/python3.8/site-packages/jedi/api/init.py",第725行,在初始化super().init(code,environment = environment,TypeError:init()中获得了意外的关键字参数'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'

推荐答案

最新的jedi(0.18)版本与最新的IPython版本不兼容,请参见刚刚收到了补丁,但截至今天尚未发布.

The latest jedi (0.18) release is incompatible with the latest IPython release, see this discussion. The IPython next version (8.0) has a compatibility fix but was not yet released, while the previous version (7.x) just received a patch however was not released yet as of today.

解决方法是降级jedi:

The workaround is to downgrade jedi:

pip install jedi==0.17.2

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

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的前两个Google结果中为您提供有关GitHub的相关问题.

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

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

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