Spyder crashed and now seems unusable

G
GuidoG93 (970 points)
4 9 13
asked Dec 13, 2021 in Programming in Python by GuidoG93 (970 points)
recategorized Dec 21, 2021 by GuidoG93
Hello, I have a problem with spyder. My PC crashed and I had to turn it off forcing it. I had spyder open, and now the IDE doesn't work, and doesn't save any files.

When I open it it says to me "spyder has an internal problem", and when I look for more details it gives me this:

 File "C:\Users\Admin\anaconda3\lib\site-packages\spyder\plugins\base.py", line 327, in <lambda>
    toggled=lambda checked: self.toggle_view(checked),
  File "C:\Users\Admin\anaconda3\lib\site-packages\spyder\plugins\ipythonconsole\plugin.py", line 432, in toggle_view
    self.create_new_client(give_focus=False)
  File "C:\Users\Admin\anaconda3\lib\site-packages\spyder\plugins\ipythonconsole\plugin.py", line 933, in create_new_client
    self.connect_client_to_kernel(client, is_cython=is_cython,
  File "C:\Users\Admin\anaconda3\lib\site-packages\spyder\plugins\ipythonconsole\plugin.py", line 987, in connect_client_to_kernel
    kc.start_channels(shell=True, iopub=True)
  File "C:\Users\Admin\anaconda3\lib\site-packages\qtconsole\kernel_mixins.py", line 47, in start_channels
    super().start_channels(*args, **kw)
  File "C:\Users\Admin\anaconda3\lib\site-packages\jupyter_client\threaded.py", line 274, in start_channels
    self.shell_channel._inspect = self._check_kernel_info_reply
  File "C:\Users\Admin\anaconda3\lib\site-packages\jupyter_client\client.py", line 334, in shell_channel
    socket = self.connect_shell(identity=self.session.bsession)
  File "C:\Users\Admin\anaconda3\lib\site-packages\jupyter_client\connect.py", line 621, in connect_shell
    return self._create_connected_socket("shell", identity=identity)
  File "C:\Users\Admin\anaconda3\lib\site-packages\jupyter_client\connect.py", line 605, in _create_connected_socket
    sock = self.context.socket(socket_type)
  File "C:\Users\Admin\anaconda3\lib\site-packages\zmq\sugar\context.py", line 226, in socket
    s = self._socket_class(self, socket_type, **kwargs)
  File "C:\Users\Admin\anaconda3\lib\site-packages\zmq\_future.py", line 144, in __init__
    self._init_io_state()
  File "C:\Users\Admin\anaconda3\lib\site-packages\zmq\asyncio.py", line 56, in _init_io_state
    self.io_loop.add_reader(self._fd, lambda: self._handle_events(0, 0))
  File "C:\Users\Admin\anaconda3\lib\asyncio\events.py", line 501, in add_reader
    raise NotImplementedError
NotImplementedError
Can someone help me? What should I do?

Thank you in advance
162 views

2 Answers

Best answer
Quellocinese (2700 points)
2 4 22
answered Dec 14, 2021 by Quellocinese (2,700 points)
selected Dec 14, 2021 by GuidoG93
if nothing works, just full uninstall and reinstall
G
GuidoG93 (970 points)
4 9 13
commented Dec 14, 2021 by GuidoG93 (970 points)
Yeah that's what I did at the end, nothing seemed to work
andrea.sterbini (172780 points)
514 935 1789
answered Dec 14, 2021 by andrea.sterbini (172,780 points)
Try the command

spyder --reset
G
GuidoG93 (970 points)
4 9 13
commented Dec 14, 2021 by GuidoG93 (970 points)
I tried and now it doesn't even initialize it, I don't know what's going on
andrea.sterbini (172780 points)
514 935 1789
commented Dec 14, 2021 by andrea.sterbini (172,780 points)
Have you tried reinstalling it?
G
GuidoG93 (970 points)
4 9 13
commented Dec 14, 2021 by GuidoG93 (970 points)
I finally did and now it works, thank you