I installed anaconda and updated spyder to version 4.0.1 Once I close anaconda and open it again, I see spyder rolled back to the original version it came with.
Also, after updating to the latest version of spyder, I found some modules like NumPy, pandas and matplotlib not available showing module not found an error. I have no idea how to fix this. I tried to reset spyder settings and found no solace. Any assistance is appreciated. Thanks
atomicwrites >=1.2.0 : 1.3.0 (OK)
chardet >=2.0.0 : 3.0.4 (OK)
cloudpickle >=0.5.0 : 1.3.0 (OK)
diff_match_patch >=20181111 : 20181111 (OK)
intervaltree : None (OK)
IPython >=4.0 : 7.12.0 (OK)
jedi =0.14.1 : 0.14.1 (OK)
nbconvert >=4.0 : 5.6.1 (OK)
numpydoc >=0.6.0 : 0.9.2 (OK)
pexpect >=4.4.0 : 4.8.0 (OK)
pickleshare >=0.4 : 0.7.5 (OK)
psutil >=0.3 : 5.6.7 (OK)
pygments >=2.0 : 2.5.2 (OK)
pylint >=0.25 : 2.4.4 (OK)
pyls >=0.31.2;<0.32.0 : 0.31.7 (OK)
zmq >=17 : 18.1.1 (OK)
qdarkstyle >=2.7 : 2.8 (OK)
qtawesome >=0.5.7 : 0.6.1 (OK)
qtconsole >=4.6.0 : 4.6.0 (OK)
qtpy >=1.5.0 : 1.9.0 (OK)
rtree >=0.8.3 : 0.9.3 (OK)
sphinx >=0.6.6 : 2.4.0 (OK)
spyder_kernels >=1.8.1;<2.0.0: 1.8.1 (OK)
watchdog : None (OK)
cython >=0.21 : None (NOK)
matplotlib >=2.0.0 : None (NOK)
numpy >=1.7 : None (NOK)
pandas >=0.13.1 : None (NOK)
scipy >=0.17.0 : None (NOK)
sympy >=0.7.3 : None (NOK)
@gautham949 please open the Anaconda Prompt, activate your environment (if you installed spyder on a separate environment from base
) and provide the information of
conda info
and
conda list
Same issue using conda update --all
on Linux:
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:
- defaults/linux-64::spyder==4.0.1=py37_0
done
## Package Plan ##
environment location: XXX
The following packages will be downloaded:
package | build
---------------------------|-----------------
jedi-0.16.0 | py37_0 761 KB
spyder-3.3.6 | py37_0 2.2 MB
spyder-kernels-0.5.2 | py37_0 71 KB
------------------------------------------------------------
Total: 3.0 MB
The following packages will be UPDATED:
jedi 0.14.1-py37_0 --> 0.16.0-py37_0
The following packages will be DOWNGRADED:
spyder 4.0.1-py37_0 --> 3.3.6-py37_0
spyder-kernels 1.8.1-py37_0 --> 0.5.2-py37_0
The inconsistency is caused by jedi being updated to 0.16.0 in the anaconda repo.
@ccordoba12 might this be related to the hotfixes?
Nop, the problem is Spyder 3 doesn't have an upper requirement on Jedi whereas Spyder 4 does. I think there are two solutions:
I have the following from the commands
(base) C:\Users\Gautham>conda env list
# conda environments:
#
base * C:\ProgramData\Anaconda3
rstudio C:\Users\Gautham\.conda\envs\rstudio
rstudio-1.1.456 C:\Users\Gautham\.conda\envs\rstudio-1.1.456
spyder C:\Users\Gautham\.conda\envs\spyder
spyder-4.0.1 C:\Users\Gautham\.conda\envs\spyder-4.0.1
(base) C:\Users\Gautham>conda info
active environment : base
active env location : C:\ProgramData\Anaconda3
shell level : 1
user config file : C:\Users\Gautham\.condarc
populated config files : C:\Users\Gautham\.condarc
conda version : 4.7.12
conda-build version : 3.18.9
python version : 3.7.4.final.0
virtual packages :
base environment : C:\ProgramData\Anaconda3 (read only)
channel URLs : https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:\ProgramData\Anaconda3\pkgs
C:\Users\Gautham\.conda\pkgs
C:\Users\Gautham\AppData\Local\conda\conda\pkgs
envs directories : C:\Users\Gautham\.conda\envs
C:\ProgramData\Anaconda3\envs
C:\Users\Gautham\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.7.12 requests/2.22.0 CPython/3.7.4 Windows/10 Windows/10.0.18362
administrator : False
netrc file : None
offline mode : False
(base) C:\Users\Gautham>conda activate spyder-4.0.1
(spyder-4.0.1) C:\Users\Gautham>conda info
active environment : spyder-4.0.1
active env location : C:\Users\Gautham\.conda\envs\spyder-4.0.1
shell level : 2
user config file : C:\Users\Gautham\.condarc
populated config files : C:\Users\Gautham\.condarc
conda version : 4.7.12
conda-build version : 3.18.9
python version : 3.7.4.final.0
virtual packages :
base environment : C:\ProgramData\Anaconda3 (read only)
channel URLs : https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:\ProgramData\Anaconda3\pkgs
C:\Users\Gautham\.conda\pkgs
C:\Users\Gautham\AppData\Local\conda\conda\pkgs
envs directories : C:\Users\Gautham\.conda\envs
C:\ProgramData\Anaconda3\envs
C:\Users\Gautham\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.7.12 requests/2.22.0 CPython/3.7.4 Windows/10 Windows/10.0.18362
administrator : False
netrc file : None
offline mode : False
(spyder-4.0.1) C:\Users\Gautham>conda list
# packages in environment at C:\Users\Gautham\.conda\envs\spyder-4.0.1:
#
# Name Version Build Channel
alabaster 0.7.12 py_0
argh 0.26.2 py38_0
asn1crypto 1.3.0 py38_0
astroid 2.3.3 py38_0
atomicwrites 1.3.0 py_0
attrs 19.3.0 py_0
autopep8 1.4.4 py_0
babel 2.8.0 py_0
backcall 0.1.0 py38_0
bcrypt 3.1.7 py38he774522_0
bleach 3.1.0 py_0
ca-certificates 2020.1.1 0
certifi 2019.11.28 py38_0
cffi 1.14.0 py38h7a1dbc1_0
chardet 3.0.4 py38_1003
cloudpickle 1.3.0 py_0
colorama 0.4.3 py_0
cryptography 2.8 py38h7a1dbc1_0
decorator 4.4.1 py_0
defusedxml 0.6.0 py_0
diff-match-patch 20181111 py_0
docutils 0.16 py38_0
entrypoints 0.3 py38_0
flake8 3.7.9 py38_0
future 0.18.2 py38_0
icu 58.2 ha66f8fd_1
idna 2.8 py38_1000
imagesize 1.2.0 py_0
importlib_metadata 1.5.0 py38_0
intervaltree 3.0.2 py_0
ipykernel 5.1.4 py38h39e3cac_0
ipython 7.12.0 py38h5ca1d4c_0
ipython_genutils 0.2.0 py38_0
isort 4.3.21 py38_0
jedi 0.14.1 py38_0
jinja2 2.11.1 py_0
jpeg 9b hb83a4c4_2
jsonschema 3.2.0 py38_0
jupyter_client 5.3.4 py38_0
jupyter_core 4.6.1 py38_0
keyring 21.1.0 py38_0
lazy-object-proxy 1.4.3 py38he774522_0
libpng 1.6.37 h2a8f88b_0
libsodium 1.0.16 h9d3ae62_0
libspatialindex 1.9.3 h33f27b4_0
markupsafe 1.1.1 py38he774522_0
mccabe 0.6.1 py38_1
mistune 0.8.4 py38he774522_1000
nbconvert 5.6.1 py38_0
nbformat 5.0.4 py_0
numpydoc 0.9.2 py_0
openssl 1.1.1d he774522_4
packaging 20.1 py_0
pandoc 2.2.3.2 0
pandocfilters 1.4.2 py38_1
paramiko 2.6.0 py38_0
parso 0.5.2 py_0
pathtools 0.1.2 py_1
pexpect 4.8.0 py38_0
pickleshare 0.7.5 py38_1000
pip 20.0.2 py38_1
pluggy 0.13.1 py38_0
prompt_toolkit 3.0.3 py_0
psutil 5.6.7 py38he774522_0
pycodestyle 2.5.0 py38_0
pycparser 2.19 py_0
pydocstyle 4.0.1 py_0
pyflakes 2.1.1 py38_0
pygments 2.5.2 py_0
pylint 2.4.4 py38_0
pynacl 1.3.0 py38h62dcd97_0
pyopenssl 19.1.0 py38_0
pyparsing 2.4.6 py_0
pyqt 5.9.2 py38ha925a31_4
pyrsistent 0.15.7 py38he774522_0
pysocks 1.7.1 py38_0
python 3.8.1 h5fd99cc_1
python-dateutil 2.8.1 py_0
python-jsonrpc-server 0.3.4 py_0
python-language-server 0.31.7 py38_0
pytz 2019.3 py_0
pywin32 227 py38he774522_1
pywin32-ctypes 0.2.0 py38_1000
pyyaml 5.3 py38he774522_0
pyzmq 18.1.1 py38ha925a31_0
qdarkstyle 2.8 py_0
qt 5.9.7 vc14h73c81de_0
qtawesome 0.6.1 py_0
qtconsole 4.6.0 py_1
qtpy 1.9.0 py_0
requests 2.22.0 py38_1
rope 0.16.0 py_0
rtree 0.9.3 py38h21ff451_0
setuptools 45.2.0 py38_0
sip 4.19.13 py38ha925a31_0
six 1.14.0 py38_0
snowballstemmer 2.0.0 py_0
sortedcontainers 2.1.0 py38_0
sphinx 2.4.0 py_0
sphinxcontrib-applehelp 1.0.1 py_0
sphinxcontrib-devhelp 1.0.1 py_0
sphinxcontrib-htmlhelp 1.0.2 py_0
sphinxcontrib-jsmath 1.0.1 py_0
sphinxcontrib-qthelp 1.0.2 py_0
sphinxcontrib-serializinghtml 1.1.3 py_0
spyder 4.0.1 py38_0
spyder-kernels 1.8.1 py38_0
sqlite 3.31.1 he774522_0
testpath 0.4.4 py_0
tornado 6.0.3 py38he774522_3
traitlets 4.3.3 py38_0
ujson 1.35 py38he774522_0
urllib3 1.25.8 py38_0
vc 14.1 h0510ff6_4
vs2015_runtime 14.16.27012 hf0eaf9b_1
watchdog 0.10.2 py38_0
wcwidth 0.1.8 py_0
webencodings 0.5.1 py38_1
wheel 0.34.2 py38_0
win_inet_pton 1.1.0 py38_0
wincertstore 0.2 py38_0
wrapt 1.11.2 py38he774522_0
yaml 0.1.7 hc54c509_2
yapf 0.28.0 py_0
zeromq 4.3.1 h33f27b4_3
zipp 2.2.0 py_0
zlib 1.2.11 h62dcd97_3
Happened to me too on Xubuntu Linux 20.04 (beta).
Logs attached for conda update, info, and list.
conda_info.log
conda_list.log
conda_update.log
@ccordoba12 What changed in jedi 16 that caused an issue for spyder 4?
Temporary (I hope) work-around is okay:
After conda update --all
, execute conda install spyder=4.0.1
.
Same problem here. Conda does not update Spyder to 4.x instead keeps it at 3.6
Conda infos:
(base) C:\Users\emirzayev>conda env list
# conda environments:
#
base * C:\Users\emirzayev\AppData\Local\Continuum\anaconda3
(base) C:\Users\emirzayev>conda info
active environment : base
active env location : C:\Users\emirzayev\AppData\Local\Continuum\anaconda3
shell level : 1
user config file : C:\Users\emirzayev\.condarc
populated config files :
conda version : 4.8.2
conda-build version : 3.18.11
python version : 3.7.6.final.0
virtual packages :
base environment : C:\Users\emirzayev\AppData\Local\Continuum\anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:\Users\emirzayev\AppData\Local\Continuum\anaconda3\pkgs
C:\Users\emirzayev\.conda\pkgs
C:\Users\emirzayev\AppData\Local\conda\conda\pkgs
envs directories : C:\Users\emirzayev\AppData\Local\Continuum\anaconda3\envs
C:\Users\emirzayev\.conda\envs
C:\Users\emirzayev\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.8.2 requests/2.22.0 CPython/3.7.6 Windows/10 Windows/10.0.17134
administrator : False
netrc file : None
offline mode : False
(base) C:\Users\emirzayev>conda list
# packages in environment at C:\Users\emirzayev\AppData\Local\Continuum\anaconda3:
#
# Name Version Build Channel
_ipyw_jlab_nb_ext_conf 0.1.0 py37_0
alabaster 0.7.12 py37_0
anaconda-client 1.7.2 py37_0
anaconda-navigator 1.9.7 py37_0
asn1crypto 1.3.0 py37_0
astroid 2.3.3 py37_0
attrs 19.3.0 py_0
babel 2.8.0 py_0
backcall 0.1.0 py37_0
backports 1.0 py_2
backports.functools_lru_cache 1.6.1 py_0
backports.tempfile 1.0 py_1
backports.weakref 1.0.post1 py_1
beautifulsoup4 4.8.2 py37_0
blas 1.0 mkl
bleach 3.1.0 py37_0
bzip2 1.0.8 he774522_0
ca-certificates 2020.1.1 0
certifi 2019.11.28 py37_0
cffi 1.14.0 py37h7a1dbc1_0
chardet 3.0.4 py37_1003
click 7.0 py37_0
cloudpickle 1.3.0 py_0
clyent 1.2.2 py37_1
colorama 0.4.3 py_0
conda 4.8.2 py37_0
conda-build 3.18.11 py37_0
conda-env 2.6.0 1
conda-package-handling 1.6.0 py37h62dcd97_0
conda-verify 3.4.2 py_1
console_shortcut 0.1.1 3
cryptography 2.8 py37h7a1dbc1_0
decorator 4.4.1 py_0
defusedxml 0.6.0 py_0
docutils 0.16 py37_0
entrypoints 0.3 py37_0
filelock 3.0.12 py_0
freetype 2.9.1 ha9979f8_1
future 0.18.2 py37_0
glob2 0.7 py_0
icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha66f8fd_1
idna 2.8 py37_0
imagesize 1.2.0 py_0
importlib_metadata 1.5.0 py37_0
intel-openmp 2020.0 166
ipykernel 5.1.4 py37h39e3cac_0
ipython 7.12.0 py37h5ca1d4c_0
ipython_genutils 0.2.0 py37_0
ipywidgets 7.5.1 py_0
isort 4.3.21 py37_0
jedi 0.16.0 py37_0
jinja2 2.11.1 py_0
jpeg 9b hb83a4c4_2
json5 0.9.1 py_0
jsonschema 3.2.0 py37_0
jupyter_client 5.3.4 py37_0
jupyter_core 4.6.1 py37_0
jupyterlab 1.2.6 pyhf63ae98_0
jupyterlab_server 1.0.6 py_0
keyring 21.1.0 py37_0
lazy-object-proxy 1.4.3 py37he774522_0
libarchive 3.3.3 h0643e63_5
libiconv 1.15 h1df5818_7
liblief 0.9.0 ha925a31_2
libpng 1.6.37 h2a8f88b_0
libsodium 1.0.16 h9d3ae62_0
libtiff 4.1.0 h56a325e_0
libxml2 2.9.9 h464c3ec_0
lz4-c 1.8.1.2 h2fa13f4_0
lzo 2.10 h6df0209_2
m2w64-gcc-libgfortran 5.3.0 6
m2w64-gcc-libs 5.3.0 7
m2w64-gcc-libs-core 5.3.0 7
m2w64-gmp 6.1.0 2
m2w64-libwinpthread-git 5.0.0.4634.697f757 2
markupsafe 1.1.1 py37he774522_0
mccabe 0.6.1 py37_1
menuinst 1.4.16 py37he774522_0
mistune 0.8.4 py37he774522_0
mkl 2020.0 166
mkl-service 2.3.0 py37hb782905_0
mkl_fft 1.0.15 py37h14836fe_0
mkl_random 1.1.0 py37h675688f_0
msys2-conda-epoch 20160418 1
navigator-updater 0.2.1 py37_0
nbconvert 5.6.1 py37_0
nbformat 5.0.4 py_0
notebook 6.0.3 py37_0
numpy 1.18.1 py37h93ca92e_0
numpy-base 1.18.1 py37hc3f5095_1
numpydoc 0.9.2 py_0
olefile 0.46 py37_0
openssl 1.1.1d he774522_4
packaging 20.1 py_0
pandas 1.0.1 py37h47e9c7a_0
pandoc 2.2.3.2 0
pandocfilters 1.4.2 py37_1
parso 0.6.1 py_0
patsy 0.5.1 py37_0
pickleshare 0.7.5 py37_0
pillow 7.0.0 py37hcc1f983_0
pip 20.0.2 py37_1
pkginfo 1.5.0.1 py37_0
powershell_shortcut 0.0.1 2
prometheus_client 0.7.1 py_0
prompt_toolkit 3.0.3 py_0
psutil 5.6.7 py37he774522_0
py-lief 0.9.0 py37ha925a31_2
pycodestyle 2.5.0 py37_0
pycosat 0.6.3 py37he774522_0
pycparser 2.19 py37_0
pyflakes 2.1.1 py37_0
pygments 2.5.2 py_0
pylint 2.4.4 py37_0
pyopenssl 19.1.0 py37_0
pyparsing 2.4.6 py_0
pyqt 5.9.2 py37h6538335_2
pyrsistent 0.15.7 py37he774522_0
pysocks 1.7.1 py37_0
python 3.7.6 h60c2a47_2
python-dateutil 2.8.1 py_0
python-libarchive-c 2.8 py37_13
pytz 2019.3 py_0
pywin32 227 py37he774522_1
pywin32-ctypes 0.2.0 py37_1000
pywinpty 0.5.7 py37_0
pyyaml 5.3 py37he774522_0
pyzmq 18.1.1 py37ha925a31_0
qt 5.9.7 vc14h73c81de_0
qtawesome 0.6.1 py_0
qtconsole 4.6.0 py_1
qtpy 1.9.0 py_0
requests 2.22.0 py37_1
rope 0.16.0 py_0
ruamel_yaml 0.15.87 py37he774522_0
scipy 1.4.1 py37h9439919_0
send2trash 1.5.0 py37_0
setuptools 45.2.0 py37_0
sip 4.19.8 py37h6538335_0
six 1.14.0 py37_0
snowballstemmer 2.0.0 py_0
soupsieve 1.9.5 py37_0
sphinx 2.4.0 py_0
sphinxcontrib-applehelp 1.0.1 py_0
sphinxcontrib-devhelp 1.0.1 py_0
sphinxcontrib-htmlhelp 1.0.2 py_0
sphinxcontrib-jsmath 1.0.1 py_0
sphinxcontrib-qthelp 1.0.2 py_0
sphinxcontrib-serializinghtml 1.1.3 py_0
spyder 3.3.6 py37_0
spyder-kernels 0.5.2 py37_0
sqlite 3.31.1 he774522_0
statsmodels 0.11.0 py37he774522_0
terminado 0.8.3 py37_0
testpath 0.4.4 py_0
tk 8.6.8 hfa6e2cd_0
tornado 6.0.3 py37he774522_3
tqdm 4.42.1 py_0
traitlets 4.3.3 py37_0
urllib3 1.25.8 py37_0
vc 14.1 h0510ff6_4
vs2015_runtime 14.16.27012 hf0eaf9b_1
wcwidth 0.1.8 py_0
webencodings 0.5.1 py37_1
wheel 0.34.2 py37_0
widgetsnbextension 3.5.1 py37_0
win_inet_pton 1.1.0 py37_0
wincertstore 0.2 py37_0
winpty 0.4.3 4
wrapt 1.11.2 py37he774522_0
xz 5.2.4 h2fa13f4_4
yaml 0.1.7 hc54c509_2
zeromq 4.3.1 h33f27b4_3
zipp 2.2.0 py_0
zlib 1.2.11 h62dcd97_3
zstd 1.3.7 h508b16e_0
We are working on this and this issue should be solved in a week or so. Thanks !
Last conda update --all
solved it for me.
The fix should now be in place!
Those are great news @remisalmon! Thanks a lot for the confirmation!
@goanpeca By "in place", do you mean Anaconda repos? When I attempt to update spyder (conda update spyder
) to 4.0.1, I see this:
The following packages will be UPDATED:
spyder 3.3.6-py37_0 --> 4.0.1-py37_0
spyder-kernels 0.5.2-py37_0 --> 1.8.1-py37_0
The following packages will be DOWNGRADED:
jedi 0.16.0-py37_0 --> 0.14.1-py37_0
parso 0.6.1-py_0 --> 0.5.2-py_0
I did not proceed. When I do conda update --all
, no updates occur and spyder-related versions are this:
spyder 3.3.6 py37_0
spyder-kernels 0.5.2 py37_0
@goanpeca By "in place", do you mean Anaconda repos? When I attempt to update spyder (conda update spyder) to 4.0.1, I see this:
The following packages will be UPDATED:
spyder 3.3.6-py37_0 --> 4.0.1-py37_0
spyder-kernels 0.5.2-py37_0 --> 1.8.1-py37_0
The following packages will be DOWNGRADED:
jedi 0.16.0-py37_0 --> 0.14.1-py37_0
parso 0.6.1-py_0 --> 0.5.2-py_0
Yes that is correct and you should proceed. (Why not proceed?)
Because, jedi and parso get down-graded. That is part of the original problem.
Ok, just allowed the conda update spyder
to proceed.
Now, I do another conda update --all
. Results:
The following packages will be UPDATED:
jedi 0.14.1-py37_0 --> 0.16.0-py37_0
parso 0.5.2-py_0 --> 0.6.1-py_0
The following packages will be DOWNGRADED:
spyder 4.0.1-py37_0 --> 3.3.6-py37_0
spyder-kernels 1.8.1-py37_0 --> 0.5.2-py37_0
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
So, I am back to the #11550 symptoms.
My work-around:
Whenever I do an update --all,
I follow that with update spyder which downgrades jedi and parso.
Because, jedi and parso get down-graded. That is part of the original problem.
Spyder 4 requires lower versions of Jedi and Parso than Spyder 3, so that's correct.
When the term "fix" was used, I had something else in mind.
Not complaining.
I'll keep my work-around for the time being.
P.S. Sympathies about getting marooned by "updated" interfaces with a package dependency. Been there too in another language.
Most helpful comment
Last
conda update --all
solved it for me.