spyder: New IPython consoles or restart of kernel not working because of pkg_resources error
Description
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)
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 47 (15 by maintainers)
Glad
spyder --resetworked 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!@ccordoba12 - I’m have the same issue and I have run: conda update setuptools
conda reports it’s already up to date.
Edit: Here’s 100% repro case for me:
now you get the path.py issue when spyder attempts to start an ipython console