Spyder ipython console throws "An error ocurred while starting the kernel" when restarting kernel
See original GitHub issueDescription
When restarting ipython kernel or opening a new ipython console session within Spyder, it crashes. Below is the error message. However, the very first ipython console session that get’s opened by Spyder, does work. I have reinstalled anaconda with a fresh new download but the problem keeps appearing.
An error ocurred while starting the kernel
Error in sitecustomize; set PYTHONVERBOSE for traceback:
TypeError: 'NoneType' object is not callable
Traceback (most recent call last):
File "/Users/asierberra/anaconda/lib/python3.5/site‑packages/spyderlib/widgets/externalshell/start_ipython_kernel.py", line 183, in
from IPython.kernel.zmq.kernelapp import IPKernelApp
File "/Users/asierberra/anaconda/lib/python3.5/site‑packages/IPython/__init__.py", line 48, in
from .terminal.embed import embed
File "/Users/asierberra/anaconda/lib/python3.5/site‑packages/IPython/terminal/embed.py", line 16, in
from IPython.core.interactiveshell import DummyMod
File "/Users/asierberra/anaconda/lib/python3.5/site‑packages/IPython/core/interactiveshell.py", line 31, in
from pickleshare import PickleShareDB
File "/Users/asierberra/anaconda/lib/python3.5/site‑packages/pickleshare.py", line 41, in
from path import path as Path
File "/Users/asierberra/anaconda/lib/python3.5/site‑packages/path.py", line 123, in
__version__ = pkg_resources.require('path.py')[0].version
TypeError: 'NoneType' object is not callable
What steps will reproduce the problem?
- Open spyder and work in ipython consol
- Open a new ipython console tab, or restart current kernel
What is the expected output? What do you see instead?
Please provide any additional information below
Version and main components
- Spyder Version: 2.3.7
- Python Version: 3.5.0
- Qt Versions: 4.8.7, PyQt4 (API v2) 4.11.4 on Darwin
- OsX 10.11.1
Optional dependencies
pyflakes >=0.6.0 : 1.0.0 (OK)
pep8 >=0.6 : 1.6.2 (OK)
pygments >=1.6 : 2.0.2 (OK)
IPython >=1.0 : 4.0.0 (OK)
zmq >=2.1.11 : 14.7.0 (OK)
qtconsole >=4.0 : 4.1.0 (OK)
pandas >=0.13.1 : 0.17.0 (OK)
sphinx >=0.6.6 : 1.3.1 (OK)
psutil >=0.3 : 3.2.2 (OK)
rope >=0.9.2 : 0.9.4-1 (OK)
jedi >=0.8.1;<0.9.0: 0.9.0 (NOK)
matplotlib >=1.0 : 1.4.3 (OK)
sympy >=0.7.3 : 0.7.6.1 (OK)
pylint >=0.25 : None (NOK)
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:107 (40 by maintainers)
Top Results From Across the Web
"An error ocurred while starting the kernel" about wrong ...
That should fix your problem, which is most likely caused by not having the right version of Spyder-kernels in the environment you have...
Read more >Why am I getting "An error ocurred while starting the kernel" in ...
When I first installed Anaconda Spyder worked when running from Base, but now I get this error when running from an environment. –...
Read more >Common Illnesses — Spyder 5 documentation
If you receive the message An error occurred while starting the kernel in the IPython Console, Spyder was unable to launch a new...
Read more >Spyder: An Error While Starting The Kernel - ADocLib
. An error occurred while starting the kernel in the IPython Console Spyder was There are a number of problems that can cause...
Read more >How to Fix Kernel Error in Jupyter Notebook
A kernel error occurs basically when you try opening a python 3 file in the wrong directory. The truth is Jupyter and Python...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi guys, the trick for me was: tools -> Reset Spyder to Factory Defaults
Please try to run
to see if that fixes your problem.