Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

Notice Board

Per partecipare al corso di Fondamenti di programmazione 2023-24 loggatevi e attivatelo nella vostra pagina dei corsi preferiti. A quel punto il corso appare nel menù personale cliccando sul proprio avatar. Per i materiali degli anni precedenti seguite lo stesso metodo.

To join the Programming/Lab 2023-24 course, log-on and select it on the my courses page. It will appear on the personal menu of your avatar. For earlier years use the same method.

Spyder crashed and now seems unusable

G
GuidoG93 (970 points)
6 9 13
in Programming in Python by (970 points)
recategorized by
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
447 views
closed

2 Answers

Best answer
Quellocinese (2700 points)
4 4 22
by (2.7k points)
selected by
if nothing works, just full uninstall and reinstall
G
GuidoG93 (970 points)
6 9 13
by (970 points)
Yeah that's what I did at the end, nothing seemed to work
andrea.sterbini (207940 points)
754 1269 2377
by (208k points)
Try the command

spyder --reset
G
GuidoG93 (970 points)
6 9 13
by (970 points)
I tried and now it doesn't even initialize it, I don't know what's going on
andrea.sterbini (207940 points)
754 1269 2377
by (208k points)
Have you tried reinstalling it?
G
GuidoG93 (970 points)
6 9 13
by (970 points)
I finally did and now it works, thank you