Kernel error after updating to Spyder 4.1

戏子无情 提交于 2020-05-04 05:28:06

问题


I updated spyder to 4.1 in anaconda through (conda update spyder), and it doesn't work unless I open it from the anaconda prompt, otherwise it shows this error:

An error ocurred while starting the kernel The error is:

Traceback (most recent call last):

File "C:\Users\anwar\Anaconda3\lib\site‑packages\spyder\plugins\ipythonconsole\plugin.py", line 1209, in create_kernel_manager_and_kernel_client
kernel_manager.start_kernel(stderr=stderr_handle, **kwargs)

File "C:\Users\anwar\Anaconda3\lib\site‑packages\jupyter_client\manager.py", line 267, in start_kernel
self.kernel = self._launch_kernel(kernel_cmd, env=env, **kw)

File "C:\Users\anwar\Anaconda3\lib\site‑packages\jupyter_client\manager.py", line 211, in _launch_kernel
return launch_kernel(kernel_cmd, **kw)

File "C:\Users\anwar\Anaconda3\lib\site‑packages\jupyter_client\launcher.py", line 135, in launch_kernel
proc = Popen(cmd, **kwargs)

File "C:\Users\anwar\Anaconda3\lib\subprocess.py", line 775, in init restore_signals, start_new_session)

File "C:\Users\anwar\Anaconda3\lib\subprocess.py", line 1178, in _execute_child startupinfo)

FileNotFoundError: [WinError 2] The system cannot find the file specified

and in the corner, it still shows spyder 3.7


回答1:


(Spyder maintainer here) This problem is a duplicate of this issue and it is fixed in our 4.1.1, released in March 19th 2020.




回答2:


Rollback Spyder 4.0.1 in python 3.7 environment and that should do the trick.




回答3:


ACK, I have observed the same.

Another problems:

1) There is not possible to close the outline panel. 2) Profiler is unable to profile, for example, this program (something with i/o redirection):

def sum_of_harmonic_series(n):
    s = 0
    for k in range(n, 0, -1):
        s += 1 / k
    return s

N = int(input("N: "))  # replace this line with N = 10000 as a workaround  
print('sum = ', sum_of_harmonic_series(N))


来源:https://stackoverflow.com/questions/60731255/kernel-error-after-updating-to-spyder-4-1

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