conda update spyder
(or pip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
incompatible spyder kernels after updating spyder
spyder 4.2.0 installs spyder-kernels 1.10.1 however the following error message is displayed during the pip install
-pyder 3.3.6 requires spyder-kernels<1.0,>=0.5.0, but you'll have spyder-kernels 1.10.0 which is incompatible.
PASTE TRACEBACK HERE
An error ocurred while starting the kernel
Traceback (most recent call last):
File "c:\users\username\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\username\appdata\local\programs\python\python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\spyder_kernels\console\__main__.py", line 23, in
start.main()
File "c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\spyder_kernels\console\start.py", line 253, in main
import_spydercustomize()
File "c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\spyder_kernels\console\start.py", line 43, in import_spydercustomize
import spydercustomize
File "c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\spyder_kernels\customize\spydercustomize.py", line 36, in
from IPython.core.inputtransformer2 import (
ImportError: cannot import name 'leading_empty_lines' from 'IPython.core.inputtransformer2' (c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\IPython\core\inputtransformer2.py)
Traceback (most recent call last):
File "c:\users\username\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\username\appdata\local\programs\python\python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\spyder_kernels\console\__main__.py", line 23, in
start.main()
File "c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\spyder_kernels\console\start.py", line 253, in main
import_spydercustomize()
File "c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\spyder_kernels\console\start.py", line 43, in import_spydercustomize
import spydercustomize
File "c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\spyder_kernels\customize\spydercustomize.py", line 36, in
from IPython.core.inputtransformer2 import (
ImportError: cannot import name 'leading_empty_lines' from 'IPython.core.inputtransformer2' (c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\IPython\core\inputtransformer2.py)
Traceback (most recent call last):
File "c:\users\username\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\username\appdata\local\programs\python\python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\spyder_kernels\console\__main__.py", line 23, in
start.main()
File "c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\spyder_kernels\console\start.py", line 253, in main
import_spydercustomize()
File "c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\spyder_kernels\console\start.py", line 43, in import_spydercustomize
import spydercustomize
File "c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\spyder_kernels\customize\spydercustomize.py", line 36, in
from IPython.core.inputtransformer2 import (
ImportError: cannot import name 'leading_empty_lines' from 'IPython.core.inputtransformer2' (c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\IPython\core\inputtransformer2.py)
Traceback (most recent call last):
File "c:\users\username\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\username\appdata\local\programs\python\python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\spyder_kernels\console\__main__.py", line 23, in
start.main()
File "c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\spyder_kernels\console\start.py", line 253, in main
import_spydercustomize()
File "c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\spyder_kernels\console\start.py", line 43, in import_spydercustomize
import spydercustomize
File "c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\spyder_kernels\customize\spydercustomize.py", line 36, in
from IPython.core.inputtransformer2 import (
ImportError: cannot import name 'leading_empty_lines' from 'IPython.core.inputtransformer2' (c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\IPython\core\inputtransformer2.py)
Traceback (most recent call last):
File "c:\users\username\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\username\appdata\local\programs\python\python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\spyder_kernels\console\__main__.py", line 23, in
start.main()
File "c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\spyder_kernels\console\start.py", line 253, in main
import_spydercustomize()
File "c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\spyder_kernels\console\start.py", line 43, in import_spydercustomize
import spydercustomize
File "c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\spyder_kernels\customize\spydercustomize.py", line 36, in
from IPython.core.inputtransformer2 import (
ImportError: cannot import name 'leading_empty_lines' from 'IPython.core.inputtransformer2' (c:\users\username\appdata\local\programs\python\python37\lib\site鈥憄ackages\IPython\core\inputtransformer2.py)
PASTE DEPENDENCIES HERE
atomicwrites >=1.2.0 : 1.3.0 (OK)
chardet >=2.0.0 : 3.0.4 (OK)
cloudpickle >=0.5.0 : 0.8.0 (OK)
diff_match_patch >=20181111 : 20181111 (OK)
intervaltree >=3.0.2 : 3.0.2 (OK)
IPython >=4.0 : 7.3.0 (OK)
jedi =0.17.2 : 0.17.2 (OK)
jsonschema >=3.2.0 : 3.2.0 (OK)
nbconvert >=4.0 : 5.4.1 (OK)
numpydoc >=0.6.0 : 0.8.0 (OK)
paramiko >=2.4.0 : 2.7.1 (OK)
parso =0.7.0 : 0.7.0 (OK)
pexpect >=4.4.0 : 4.7.0 (OK)
pickleshare >=0.4 : 0.7.5 (OK)
psutil >=5.3 : 5.7.3 (OK)
pygments >=2.0 : 2.3.1 (OK)
pylint >=1.0 : 2.6.0 (OK)
pyls >=0.36.1;<1.0.0 : 0.36.1 (OK)
pyls_black >=0.4.6 : 0.4.6 (OK)
pyls_spyder >=0.1.1 : 0.2.1 (OK)
qdarkstyle >=2.8 : 2.8 (OK)
qtawesome >=0.5.7 : 0.6.0 (OK)
qtconsole >=4.7.7 : 5.0.1 (OK)
qtpy >=1.5.0 : 1.9.0 (OK)
setuptools >=39.0.0 : 40.8.0 (OK)
sphinx >=0.6.6 : 1.8.4 (OK)
spyder_kernels >=1.10.0;<1.11.0 : 1.10.0 (OK)
three_merge >=0.1.1 : 0.1.1 (OK)
watchdog >=0.10.3 : 0.10.4 (OK)
zmq >=17 : 18.0.0 (OK)
cython >=0.21 : 0.29.17 (OK)
matplotlib >=2.0.0 : 3.1.1 (OK)
numpy >=1.7 : 1.16.1 (OK)
pandas >=1.1.1 : 0.25.0 (NOK)
scipy >=0.17.0 : 1.3.1 (OK)
sympy >=0.7.3 : 1.4 (OK)
Hi @tsbankole,
Can you try to install spyder 4.2 with conda in a new environment to see if there's other dependency that broke this environment?
I actually fixed this by pip uninstall spyder and then using the windows installer found here
https://github.com/spyder-ide/spyder/releases/latest/download/Spyder_64bit_full.exe
Most helpful comment
I actually fixed this by pip uninstall spyder and then using the windows installer found here
https://github.com/spyder-ide/spyder/releases/latest/download/Spyder_64bit_full.exe