Elpy-rpc in Emacs gives 'exited abnormally with code 1' error and unexpected output. How can I fix it?

huangapple go评论75阅读模式
英文:

Elpy-rpc in Emacs gives 'exited abnormally with code 1' error and unexpected output. How can I fix it?

问题

以下是翻译好的部分:

"error in process sentinel: elpy-rpc--default-error-callback: peculiar error: "exited abnormally with code 1"

And this cryptic error message:

Output from Backend

There was some unexpected output from the Elpy backend. This is

usually not a problem and should usually not be reported as a bug with

Elpy. You can safely hide this buffer and ignore it. You can also see

the output below in case there is an actual problem.

Output

[TerminalIPythonApp] WARNING | Unrecognized alias: 'W', it will have no effect.

[TerminalIPythonApp] CRITICAL | Bad config encountered during initialization: Error loading argument W=['ignore'], values whose keys begin with an uppercase char must be Config instances: 'W', DeferredConfigString('ignore')

It appears communication with elpy-rpc has broken down, and it constantly beeps whenever it is supposed to offer auto-complete suggestions, etc, elpy is now unusable for me as I cannot type a single word without it constantly complaining.

This error appeared out of nowhere after I upgraded emacs packages today (May 31, 2023). I also upgraded my conda base environment, but I don't know if that has anything to do with the problem or not, but my python and ipython executables installed with conda work just fine. The environment variables are set correctly. I have no idea even where to start with this sort of error.

Is there a way to fix this or maybe downgrade elpy until this problem is fixed?

I tried editing a python file and expected normal functioning of this emacs package. I can't think of anything that changed other than my usual emacs package upgrades and upgrade of conda environment.

英文:

emacs elpy-20230402.1946 started giving me strange errors relating to its elpy-rpc:

"error in process sentinel: elpy-rpc--default-error-callback: peculiar error: "exited abnormally with code 1"

And this cryptic error message:

Output from Backend

There was some unexpected output from the Elpy backend. This is

usually not a problem and should usually not be reported as a bug with

Elpy. You can safely hide this buffer and ignore it. You can also see

the output below in case there is an actual problem.

Output

[TerminalIPythonApp] WARNING | Unrecognized alias: 'W', it will have no effect.

[TerminalIPythonApp] CRITICAL | Bad config encountered during initialization: Error loading argument W=['ignore'], values whose keys begin with an uppercase char must be Config instances: 'W', DeferredConfigString('ignore')

It appears communication with elpy-rpc has broken down, and it constantly beeps whenever it is supposed to offer auto-complete suggestions, etc, elpy is now unusable for me as I cannot type a single word without it constantly complaining.

This error appeared out of nowhere after I upgraded emacs packages today (May 31, 2023). I also upgraded my conda base environment, but I don't know if that has anything to do with the problem or not, but my python and ipython executables installed with conda work just fine. The environment variables are set correctly. I have no idea even where to start with this sort of error.

Is there a way to fix this or maybe downgrade elpy until this problem is fixed?

I tried editing a python file and expected normal functioning of this emacs package. I can't think of anything that changed other than my usual emacs package upgrades and upgrade of conda environment.

答案1

得分: 1

你是否已经检查了elpy问题1729
特别是Krisselack的回答对我有帮助。

TL/DR

对我有效的方法:

  • 在emacs中运行package-delete来删除elpy
  • .emacs.d目录中删除与elpy相关的所有内容
  • 重新启动emacs
  • 重新安装elpy
英文:

Have you checked elpy issue 1729?
In particular the answer of Krisselack did the trick for me.

TL/DR

What worked for me:

  • in emacs do a package-delete on elpy

  • in the .emacs.d directory remove everything related to elpy

  • restart emacs

  • re-install elpy

huangapple
  • 本文由 发表于 2023年6月1日 12:59:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/76378780.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定