You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happened while I was checking #21483. Maybe it was caused since I closed a project with a lot of files open while Spyder was still initializing things
Traceback
Traceback (most recent call last):
File "C:\Users\dalth\AppData\Local\spyder-6\envs\spyder-runtime\lib\site-packages\spyder\plugins\ipythonconsole\plugin.py", line 886, in update_pathself.get_widget().update_path(path_dict, new_path_dict)
File "C:\Users\dalth\AppData\Local\spyder-6\envs\spyder-runtime\lib\site-packages\spyder\plugins\ipythonconsole\widgets\main_widget.py", line 2136, in update_path
shell.update_syspath(path_dict, new_path_dict)
File "C:\Users\dalth\AppData\Local\spyder-6\envs\spyder-runtime\lib\site-packages\spyder\plugins\ipythonconsole\widgets\shell.py", line 652, in update_syspathself.call_kernel(
File "C:\Users\dalth\AppData\Local\spyder-6\envs\spyder-runtime\lib\site-packages\spyder\plugins\ipythonconsole\widgets\shell.py", line 334, in call_kernelreturnself.kernel_handler.kernel_comm.remote_call(
AttributeError: 'NoneType' object has no attribute 'kernel_comm'
I was able to reproduce this by trying to reopen a project already open. The current IPython console at the moment was on a failed initialization state due to an incorrect spyder-kernels (a custom interpreter was set and had spyder-kernels < 3.0.0):
Traceback (most recent call last):
File "C:\Users\dalth\AppData\Local\spyder-6\envs\spyder-runtime\Lib\site-packages\spyder\plugins\ipythonconsole\plugin.py", line 1003, in update_pathself.get_widget().update_path(path_dict, new_path_dict)
File "C:\Users\dalth\AppData\Local\spyder-6\envs\spyder-runtime\Lib\site-packages\spyder\plugins\ipythonconsole\widgets\main_widget.py", line 2456, in update_path
shell.update_syspath(path_dict, new_path_dict)
File "C:\Users\dalth\AppData\Local\spyder-6\envs\spyder-runtime\Lib\site-packages\spyder\plugins\ipythonconsole\widgets\shell.py", line 709, in update_syspathself.call_kernel(
File "C:\Users\dalth\AppData\Local\spyder-6\envs\spyder-runtime\Lib\site-packages\spyder\plugins\ipythonconsole\widgets\shell.py", line 372, in call_kernelreturnself.kernel_handler.kernel_comm.remote_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^AttributeError: 'NoneType' object has no attribute 'kernel_comm'
Traceback (most recent call last):
File "C:\Users\dalth\AppData\Local\spyder-6\envs\spyder-runtime\Lib\site-packages\spyder\plugins\ipythonconsole\plugin.py", line 1003, in update_pathself.get_widget().update_path(path_dict, new_path_dict)
File "C:\Users\dalth\AppData\Local\spyder-6\envs\spyder-runtime\Lib\site-packages\spyder\plugins\ipythonconsole\widgets\main_widget.py", line 2456, in update_path
shell.update_syspath(path_dict, new_path_dict)
File "C:\Users\dalth\AppData\Local\spyder-6\envs\spyder-runtime\Lib\site-packages\spyder\plugins\ipythonconsole\widgets\shell.py", line 709, in update_syspathself.call_kernel(
File "C:\Users\dalth\AppData\Local\spyder-6\envs\spyder-runtime\Lib\site-packages\spyder\plugins\ipythonconsole\widgets\shell.py", line 372, in call_kernelreturnself.kernel_handler.kernel_comm.remote_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^AttributeError: 'NoneType' object has no attribute 'kernel_comm'
I think this is just a matter of checking if kernel_comm is available in call_kernel. That will not only deal with this problem but similar ones in the future (i.e. trying to comunicate with the kernel when that's not possible yet).
Description
What steps will reproduce the problem?
This happened while I was checking #21483. Maybe it was caused since I closed a project with a lot of files open while Spyder was still initializing things
Traceback
Versions
5.4.56 (standalone)Dependencies
The text was updated successfully, but these errors were encountered: