Giant IPKernelApp Error Using Hydrogen in Atom

强颜欢笑 提交于 2021-02-04 21:01:52

问题


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.

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.

Error Message

[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'


回答1:


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.

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'

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



来源:https://stackoverflow.com/questions/65693469/giant-ipkernelapp-error-using-hydrogen-in-atom

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!