question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error thrown when re-starting kernel

See original GitHub issue

Description

What steps will reproduce the problem?

  1. In the hamburg menu of the interpreter press “Restart kernel”

Traceback

  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/plugins/ipythonconsole/widgets/client.py", line 642, in _restart_thread_main
    self.shellwidget.kernel_manager.restart_kernel(
  File "jupyter_client/manager.pyc", line 454, in restart_kernel
  File "jupyter_client/manager.pyc", line 314, in start_kernel
  File "qtconsole/manager.pyc", line 57, in post_start_kernel
  File "jupyter_client/manager.pyc", line 295, in post_start_kernel
  File "jupyter_client/manager.pyc", line 228, in _connect_control_socket
  File "jupyter_client/connect.pyc", line 545, in _create_connected_socket
  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/zmq/sugar/context.py", line 234, in socket
    raise ZMQError(ENOTSUP)
zmq.error.ZMQError: Operation not supported
Traceback (most recent call last):
  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/plugins/ipythonconsole/widgets/client.py", line 629, in <lambda>
    lambda: self._finalise_restart(True))
  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/plugins/ipythonconsole/widgets/client.py", line 664, in _finalise_restart
    sw.spyder_kernel_comm.open_comm(sw.kernel_client)
  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/plugins/ipythonconsole/comms/kernelcomm.py", line 135, in open_comm
    kernel_client.comm_manager.new_comm(self._comm_name, data={
AttributeError: 'NoneType' object has no attribute 'new_comm'

Versions

  • Spyder version: 4.2.2
  • Python version: 3.9.1
  • Qt version: 5.12.10
  • PyQt5 version: 5.12.3
  • Operating System: Darwin 20.3.0

Dependencies


# Mandatory:
applaunchservices >=0.1.7       :  0.2.1 (OK)
atomicwrites >=1.2.0            :  1.4.0 (OK)
chardet >=2.0.0                 :  4.0.0 (OK)
cloudpickle >=0.5.0             :  1.6.0 (OK)
diff_match_patch >=20181111     :  20200713 (OK)
intervaltree >=3.0.2            :  3.1.0 (OK)
IPython >=7.6.0                 :  7.20.0 (OK)
jedi =0.17.2                    :  0.17.2 (OK)
jsonschema >=3.2.0              :  3.2.0 (OK)
keyring >=17.0.0                :  22.0.1 (OK)
nbconvert >=4.0                 :  6.0.7 (OK)
numpydoc >=0.6.0                :  1.1.0 (OK)
parso =0.7.0                    :  0.7.0 (OK)
pexpect >=4.4.0                 :  4.8.0 (OK)
pickleshare >=0.4               :  0.7.5 (OK)
psutil >=5.3                    :  5.8.0 (OK)
pygments >=2.0                  :  2.8.0 (OK)
pylint >=1.0                    :  2.7.0 (OK)
pyls >=0.36.2;<1.0.0            :  0.36.2 (OK)
pyls_black >=0.4.6              :  0.4.6 (OK)
pyls_spyder >=0.3.2             :  0.3.2 (OK)
qdarkstyle >=2.8                :  2.8.1 (OK)
qtawesome >=0.5.7               :  1.0.2 (OK)
qtconsole >=5.0.1               :  5.0.2 (OK)
qtpy >=1.5.0                    :  1.9.0 (OK)
setuptools >=39.0.0             :  52.0.0 (OK)
sphinx >=0.6.6                  :  3.5.1 (OK)
spyder_kernels >=1.10.2;<1.11.0 :  1.10.2 (OK)
textdistance >=4.2.0            :  4.2.1 (OK)
three_merge >=0.1.1             :  0.1.1 (OK)
watchdog >=0.10.3;<2.0.0        :  1.0.2 (OK)
zmq >=17                        :  22.0.3 (OK)

# Optional:
cython >=0.21                   :  0.29.22 (OK)
matplotlib >=2.0.0              :  3.3.4 (OK)
numpy >=1.7                     :  1.20.1 (OK)
pandas >=1.1.1                  :  1.2.2 (OK)
scipy >=0.17.0                  :  1.6.1 (OK)
sympy >=0.7.3                   :  1.7.1 (OK)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
b-a0commented, Mar 1, 2021

Thanks for looking into this.

Yes, I’m on Big Sur (11.2.1 at the time of this issue, now on 11.2.2).

I’ve tried out the different options from this comment, restarting Spyder in between my tries, but can no longer reproduce this issue. Hence I’m closing it.

0reactions
mrclarycommented, Mar 1, 2021

@b-a0 I’m glad it’s working for you now. If the issue resurfaces, please reopen the issue with any new information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

KernelRestarter: restart failed in jupyter , Kernel died
This article solved in my case. Jupyter-notebook reports an error KernelRestarter: restart failed or "kernel starting, please wait".
Read more >
Spyder ipython console throws "An error ocurred while starting ...
When restarting ipython kernel or opening a new ipython console session within Spyder, it crashes. Below is the error message.
Read more >
Kernel Security Check Failure – How to Restart the Kernel in ...
If, during this process, Windows detects corruption in any critical data structures, the Kernel_Security_check_failure error is thrown.
Read more >
If your Mac restarts and a message appears - Apple Support
If your Mac restarts unexpectedly, an error known as a kernel panic occurred, and a message indicates that your computer restarted because of...
Read more >
How To Fix the “Kernel Security Check Failure” Error in ...
To check if the kernel security check failure is due to a corrupted or damaged file system, run the system file checker tool...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found