New IPython consoles or restart of kernel not working because of pkg_resources error
See original GitHub issueDescription
What steps will reproduce the problem?
- Stat spyder
- try to create a new ipython console (in Consoles-> Open an IPython console
What is the expected output? What do you see instead? A new console should appear but the new console immediately stops with the following error:
Error in sitecustomize; set PYTHONVERBOSE for traceback:
TypeError: 'NoneType' object is not callable
Traceback (most recent call last):
File "/pyzo2014a/lib/python3.4/site‑packages/spyderlib/widgets/externalshell/start_ipython_kernel.py", line 175, in
from IPython.kernel.zmq.kernelapp import IPKernelApp
File "pyzo2014a/lib/python3.4/site‑packages/IPython/__init__.py", line 48, in
from .terminal.embed import embed
File "pyzo2014a/lib/python3.4/site‑packages/IPython/terminal/embed.py", line 16, in
from IPython.core.interactiveshell import DummyMod
File "pyzo2014a/lib/python3.4/site‑packages/IPython/core/interactiveshell.py", line 31, in
from pickleshare import PickleShareDB
File "pyzo2014a/lib/python3.4/site‑packages/pickleshare.py", line 41, in
from path import path as Path
File "pyzo2014a/lib/python3.4/site‑packages/path.py", line 122, in
__version__ = pkg_resources.require('path.py')[0].version
TypeError: 'NoneType' object is not callable
Please provide any additional information below
Version and main components
- Spyder Version: 2.3.6
- Python Version: 3.4.3
- Qt Versions: 4.8.6, PyQt4 (API v2) 4.11.3 on Linux
Optional dependencies
pyflakes >=0.6.0: 0.9.2 (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.0.1 (OK)
pandas >=0.13.1 : 0.16.2 (OK)
sphinx >=0.6.6 : 1.2.3 (OK)
psutil >=0.3 : 2.2.1 (OK)
rope >=0.9.2 : 0.9.4-1 (OK)
jedi >=0.8.1 : 0.9.0 (OK)
matplotlib >=1.0: 1.4.3 (OK)
sympy >=0.7.3 : 0.7.6.1 (OK)
pylint >=0.25 : 0.25.1 (OK)
Issue Analytics
- State:
- Created 8 years ago
- Comments:47 (15 by maintainers)
Top Results From Across the Web
Ipython console in Spyder stuck on "connecting to kernel"
I closed the console window, then opened a new one (CTRL+T) and that fixed it. Problem didn't come back after a restart.
Read more >Issues closed in the 1.0 development cycle
This documentation covers IPython versions 6.0 and higher. Beginning with version 6.0, IPython stopped supporting compatibility with Python versions lower ...
Read more >github-stats-1.0.txt - IPython
Formatter is not new-style in 2.6 Issues (18): * :ghissue:`4024`: nbconvert ... :ghpull:`3716`: raw_input fixes for kernel restarts * :ghpull:`3683`: use ...
Read more >IPython Documentation - Read the Docs
consult these pages to learn about new features, bug fixes and backwards ... is because refreshing the page does not restart the kernel, ......
Read more >Jupyter Notebook Python Kernel No Longer Working - Reddit
Appears the ipython kernel isn't loading because of the tomli… ... [W 14:01:34.158 NotebookApp] Error loading kernelspec 'python3' Traceback ...
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
Glad
spyder --reset
worked for you!Hey, my final hope (which you suggested in some google groups forum) was to reset Spyder (
spyder --reset
) which fixed it. Had to reset my preferences etc but it works now, sorry I have no idea what the issue was!