Spyder: Completion and linting stop working

Created on 6 Apr 2020  路  31Comments  路  Source: spyder-ide/spyder

Issue Report Checklist

  • [x] Searched the issues page for similar reports
  • [ ] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • [x] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • [ ] Could not reproduce inside jupyter qtconsole (if console-related)
  • [ ] Tried basic troubleshooting (if a bug/error)

    • [x] Restarted Spyder

    • [x] Reset preferences with spyder --reset

    • [ ] Reinstalled the latest version of Anaconda

    • [ ] Tried the other applicable steps from the Troubleshooting Guide

  • [x] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

Completion and linting stop working after a few minutes using Spyder.

What steps reproduce the problem?

  1. Start Spyder
  2. Start coding. After a few minutes completion and linting stop working.

Versions

  • Spyder version: 4.1.2
  • Python version: 3.7.6
  • Qt version: 5.12.5
  • PyQt version: 5.12.3
  • Operating System name/version: Windows 10

Dependencies


# Mandatory:
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.13.0 (OK)
jedi =0.15.2                   :  0.15.2 (OK)
nbconvert >=4.0                :  5.6.1 (OK)
numpydoc >=0.6.0               :  0.9.2 (OK)
paramiko >=2.4.0               :  2.7.1 (OK)
parso =0.5.2                   :  0.5.2 (OK)
pexpect >=4.4.0                :  4.8.0 (OK)
pickleshare >=0.4              :  0.7.5 (OK)
psutil >=5.3                   :  5.7.0 (OK)
pygments >=2.0                 :  2.6.1 (OK)
pylint >=0.25                  :  2.4.4 (OK)
pyls >=0.31.9;<0.32.0          :  0.31.9 (OK)
qdarkstyle >=2.8               :  2.8.1 (OK)
qtawesome >=0.5.7              :  0.7.0 (OK)
qtconsole >=4.6.0              :  4.7.2 (OK)
qtpy >=1.5.0                   :  1.9.0 (OK)
rtree >=0.8.3                  :  0.9.4 (OK)
sphinx >=0.6.6                 :  3.0.0 (OK)
spyder_kernels >=1.9.0;<1.10.0 :  1.9.0 (OK)
watchdog                       :  None (OK)
zmq >=17                       :  19.0.0 (OK)

# Optional:
cython >=0.21                  :  0.29.16 (OK)
matplotlib >=2.0.0             :  3.2.1 (OK)
numpy >=1.7                    :  1.18.1 (OK)
pandas >=0.13.1                :  1.0.3 (OK)
scipy >=0.17.0                 :  1.4.1 (OK)
sympy >=0.7.3                  :  1.5.1 (OK)

Awaiting Followup Bug

Most helpful comment

I worked one hour with it and so far the problem seems to have disappeared. Thanks for that!

All 31 comments

Duplicate of #11026

It'll be fixed in our next version.

@ccordoba12 this user is already using 4.1.2

@goanpeca indeed, I thought the new version (4.1.2) would solve the problem but it seems not to be the case (at least I do not have to restart Spyder from time to time due to the error window popping up).

@dalthviz we are going to need your windows expertise to delve deeper into this issue.

@UniqASL, please select the checkbox called "Don't show again" to not show it again. Other than that, we can't do anything else:

imagen

Besides, it seems you're not using Anaconda, so (I'm sorry to say it) we can't offer you support for this because we don't have the time nor the resources to do it.

@UniqASL

Could you open the terminal and environment you are using (make sure it is properly activated) and type

conda info
conda list
pip list

And paste the output. Thanks

Thanks for taking some time for this. I am not sure what is meant with not using anaconda. I installed python with anaconda.

conda info:

active environment : base
active env location : C:\Users\X\Anaconda3
shell level : 1
user config file : C:\Users\X.condarc
populated config files : C:\Users\X.condarc
conda version : 4.8.3
conda-build version : 3.19.2
python version : 3.7.6.final.0
virtual packages : __cuda=6.5
base environment : C:\Users\X\Anaconda3 (writable)
channel URLs : https://conda.anaconda.org/conda-forge/win-64
https://conda.anaconda.org/conda-forge/noarch
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\X\Anaconda3pkgs
C:\Users\X.condapkgs
C:\Users\X\AppData\Local\conda\condapkgs
envs directories : C:\Users\X\Anaconda3\envs
C:\Users\X.conda\envs
C:\Users\X\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.8.3 requests/2.23.0 CPython/3.7.6 Windows/10 Windows/10.0.18362
administrator : False
netrc file : None
offline mode : False

conda list:

_anaconda_depends 2019.03 py37_0
_ipyw_jlab_nb_ext_conf 0.1.0 py37_0
alabaster 0.7.12 py_0 conda-forge
anaconda custom py37_1
anaconda-client 1.7.2 py_0 conda-forge
anaconda-navigator 1.9.12 py37_0
anaconda-project 0.8.3 py_0 conda-forge
argh 0.26.2 py37_1001 conda-forge
asn1crypto 1.3.0 py37_0 conda-forge
astroid 2.3.3 py37_1 conda-forge
astropy 4.0.1.post1 py37h8055547_0 conda-forge
atomicwrites 1.3.0 py_0 conda-forge
attrs 19.3.0 py_0 conda-forge
autopep8 1.5 py_0 conda-forge
babel 2.8.0 py_0 conda-forge
backcall 0.1.0 py_0 conda-forge
backports 1.0 py_2 conda-forge
backports.os 0.1.1 py37hc8dfbb8_1002 conda-forge
backports.shutil_get_terminal_size 1.0.0 py_3 conda-forge
bcrypt 3.1.7 py37h8055547_1 conda-forge
beautifulsoup4 4.8.2 py37hc8dfbb8_1 conda-forge
bitarray 1.2.1 py37hfa6e2cd_0 conda-forge
bkcharts 0.2 py37_0
blas 1.0 mkl
bleach 3.1.4 pyh9f0ad1d_0 conda-forge
blosc 1.17.1 h6538335_0 conda-forge
bokeh 2.0.1 py37hc8dfbb8_0 conda-forge
boto 2.49.0 py_0 conda-forge
bottleneck 1.3.2 py37hbc2f12b_1 conda-forge
bzip2 1.0.8 hfa6e2cd_2 conda-forge
ca-certificates 2020.4.5.1 hecc5488_0 conda-forge
certifi 2020.4.5.1 py37hc8dfbb8_0 conda-forge
cffi 1.14.0 py37ha419a9e_0 conda-forge
chardet 3.0.4 py37hc8dfbb8_1006 conda-forge
click 7.1.1 pyh8c360ce_0 conda-forge
cloudpickle 1.3.0 py_0 conda-forge
clyent 1.2.2 py_1 conda-forge
colorama 0.4.3 py_0 conda-forge
comtypes 1.1.7 py37hc8dfbb8_1001 conda-forge
conda 4.8.3 py37hc8dfbb8_1 conda-forge
conda-build 3.19.2 py37hc8dfbb8_0 conda-forge
conda-env 2.6.0 1 conda-forge
conda-package-handling 1.6.0 py37h702c6c1_2 conda-forge
conda-verify 3.1.1 py37hc8dfbb8_1001 conda-forge
console_shortcut 0.1.1 4
contextlib2 0.6.0.post1 py_0 conda-forge
cryptography 2.8 py37hb32ad35_1 conda-forge
curl 7.68.0 h4496350_0 conda-forge
cycler 0.10.0 py_2 conda-forge
cython 0.29.16 py37h63f7a3c_0 conda-forge
cytoolz 0.10.1 py37hfa6e2cd_0 conda-forge
dask 2.14.0 py_0 conda-forge
dask-core 2.14.0 py_0 conda-forge
decorator 4.4.2 py_0 conda-forge
defusedxml 0.6.0 py_0 conda-forge
diff-match-patch 20181111 py_0 conda-forge
distributed 2.14.0 py37hc8dfbb8_0 conda-forge
docutils 0.16 py37hc8dfbb8_1 conda-forge
entrypoints 0.3 py37hc8dfbb8_1001 conda-forge
et_xmlfile 1.0.1 py_1001 conda-forge
fastcache 1.1.0 py37h8055547_1 conda-forge
filelock 3.0.10 py_0 conda-forge
flake8 3.7.9 py37hc8dfbb8_1 conda-forge
flask 1.1.2 pyh9f0ad1d_0 conda-forge
freetype 2.10.1 ha9979f8_0 conda-forge
fsspec 0.7.1 py_0 conda-forge
future 0.18.2 py37hc8dfbb8_1 conda-forge
get_terminal_size 1.0.0 h38e98db_0
gevent 1.4.0 py37hfa6e2cd_0 conda-forge
git 2.26.0 0 conda-forge
gitdb 4.0.2 pypi_0 pypi
glob2 0.7 py_0 conda-forge
greenlet 0.4.15 py37h8055547_1 conda-forge
h5py 2.10.0 nompi_py37h422b98e_102 conda-forge
hdf5 1.10.5 nompi_ha405e13_1104 conda-forge
heapdict 1.0.1 py_0 conda-forge
html5lib 1.0.1 py_0 conda-forge
hypothesis 5.8.0 py_0 conda-forge
icc_rt 2019.0.0 h0cc432a_1
icu 64.2 he025d50_1 conda-forge
idna 2.9 py_1 conda-forge
imageio 2.8.0 py_0 conda-forge
imagesize 1.2.0 py_0 conda-forge
importlib-metadata 1.6.0 py37hc8dfbb8_0 conda-forge
importlib_metadata 1.6.0 0 conda-forge
intel-openmp 2019.4 245
intervaltree 3.0.2 py_0 conda-forge
ipykernel 5.2.0 py37h5ca1d4c_1 conda-forge
ipython 7.13.0 py37hc8dfbb8_2 conda-forge
ipython_genutils 0.2.0 py_1 conda-forge
ipywidgets 7.5.1 py_0 conda-forge
isort 4.3.21 py37hc8dfbb8_1 conda-forge
itsdangerous 1.1.0 py_0 conda-forge
jdcal 1.4.1 py_0 conda-forge
jedi 0.15.2 py37_0 conda-forge
jinja2 2.11.1 py_0 conda-forge
joblib 0.14.1 py_0 conda-forge
jpeg 9c hfa6e2cd_1001 conda-forge
json5 0.9.0 py_0 conda-forge
jsonschema 3.2.0 py37hc8dfbb8_1 conda-forge
jupyter 1.0.0 py_2 conda-forge
jupyter_client 6.1.2 py_0 conda-forge
jupyter_console 6.1.0 py_1 conda-forge
jupyter_core 4.6.3 py37hc8dfbb8_1 conda-forge
jupyterlab 2.0.1 py_0 conda-forge
jupyterlab_server 1.1.0 py_0 conda-forge
keyring 21.1.1 py37hc8dfbb8_2 conda-forge
kiwisolver 1.2.0 py37heaa310e_0 conda-forge
krb5 1.16.4 hdd46e55_0 conda-forge
lazy-object-proxy 1.4.3 py37h8055547_2 conda-forge
libarchive 3.3.3 hd0049e4_1007 conda-forge
libblas 3.8.0 14_mkl conda-forge
libcblas 3.8.0 14_mkl conda-forge
libclang 9.0.1 default_hf44288c_0 conda-forge
libcurl 7.68.0 h4496350_0 conda-forge
libiconv 1.15 hfa6e2cd_1006 conda-forge
liblapack 3.8.0 14_mkl conda-forge
liblief 0.9.0 ha925a31_3
libpng 1.6.37 hfe6a214_1 conda-forge
libsodium 1.0.17 h2fa13f4_0 conda-forge
libspatialindex 1.9.3 he025d50_3 conda-forge
libssh2 1.8.2 h642c060_2 conda-forge
libtiff 4.1.0 h885aae3_6 conda-forge
libxml2 2.9.10 h9ce36c8_0 conda-forge
libxslt 1.1.33 heafd4d3_0 conda-forge
llvmlite 0.31.0 py37hc8dfbb8_1 conda-forge
locket 0.2.0 py_2 conda-forge
lxml 4.5.0 py37h7005714_1 conda-forge
lz4-c 1.8.3 he025d50_1001 conda-forge
lzo 2.10 hfa6e2cd_1000 conda-forge
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 py37h8055547_1 conda-forge
matplotlib 3.2.1 0 conda-forge
matplotlib-base 3.2.1 py37h911224e_0 conda-forge
mccabe 0.6.1 py_1 conda-forge
menuinst 1.4.16 py37_0 conda-forge
mistune 0.8.4 py37hfa6e2cd_1000 conda-forge
mkl 2019.4 245
mkl-service 2.3.0 py37hfa6e2cd_0 conda-forge
mkl_fft 1.1.0 py37hc8d92b1_1 conda-forge
mkl_random 1.1.0 py37he350917_0 conda-forge
mock 3.0.5 py37hc8dfbb8_1 conda-forge
more-itertools 8.2.0 py_0 conda-forge
mpmath 1.1.0 py_0 conda-forge
msgpack-python 1.0.0 py37heaa310e_1 conda-forge
msys2-conda-epoch 20160418 1
multipledispatch 0.6.0 py_0 conda-forge
navigator-updater 0.2.1 py37_0
nbconvert 5.6.1 py37_0 conda-forge
nbformat 5.0.4 py_0 conda-forge
neqsim 2.0.30 pypi_0 pypi
networkx 2.4 py_1 conda-forge
nltk 3.4.4 py_0 conda-forge
nose 1.3.7 py37hc8dfbb8_1004 conda-forge
notebook 6.0.3 py37_0 conda-forge
numba 0.48.0 py37he350917_0 conda-forge
numexpr 2.7.1 py37h63f7a3c_1 conda-forge
numpy 1.18.1 py37h90d3380_1 conda-forge
numpy-base 1.18.1 py37hc3f5095_1
numpydoc 0.9.2 py_0 conda-forge
olefile 0.46 py_0 conda-forge
openpyxl 3.0.3 py_0 conda-forge
openssl 1.1.1f hfa6e2cd_0 conda-forge
packaging 20.1 py_0 conda-forge
pandas 1.0.3 py37h9b59f54_0 conda-forge
pandoc 2.9.2 0 conda-forge
pandocfilters 1.4.2 py_1 conda-forge
paramiko 2.7.1 py37_0 conda-forge
parso 0.5.2 py_0
partd 1.1.0 py_0 conda-forge
path 13.1.0 py37_0
path.py 12.4.0 0 conda-forge
pathlib2 2.3.5 py37hc8dfbb8_1 conda-forge
pathtools 0.1.2 py_1 conda-forge
patsy 0.5.1 py_0 conda-forge
pep8 1.7.1 py_0 conda-forge
pexpect 4.8.0 py37hc8dfbb8_1 conda-forge
pgeocode 0.2.1 pypi_0 pypi
pickleshare 0.7.5 py37hc8dfbb8_1001 conda-forge
pillow 7.1.1 py37h91e7a8d_0 conda-forge
pint 0.11 pypi_0 pypi
pint-pandas 0.1.dev0 pypi_0 pypi
pip 20.0.2 py_2 conda-forge
pkginfo 1.5.0.1 py_0 conda-forge
pluggy 0.12.0 py_0 conda-forge
ply 3.11 py_1 conda-forge
powershell_shortcut 0.0.1 3
prometheus_client 0.7.1 py_0 conda-forge
prompt-toolkit 3.0.5 py_0 conda-forge
prompt_toolkit 3.0.5 0 conda-forge
psutil 5.7.0 py37h8055547_1 conda-forge
pvlib 0.7.1 pypi_0 pypi
py 1.8.1 py_0 conda-forge
py-lief 0.9.0 py37ha925a31_3
py4j 0.10.9 pypi_0 pypi
pycodestyle 2.5.0 py_0 conda-forge
pycosat 0.6.3 py37h8055547_1004 conda-forge
pycparser 2.20 py_0 conda-forge
pycrypto 2.6.1 py37h8055547_1004 conda-forge
pycurl 7.43.0.5 py37h636d3bd_0 conda-forge
pydocstyle 5.0.2 py_0 conda-forge
pyflakes 2.1.1 py_0 conda-forge
pygments 2.6.1 py_0 conda-forge
pylint 2.4.4 py37_0 conda-forge
pynacl 1.3.0 py37h2fa13f4_1001 conda-forge
pyodbc 4.0.30 py37h6538335_0 conda-forge
pyopenssl 19.1.0 py_1 conda-forge
pyparsing 2.4.6 py_0 conda-forge
pyqt 5.12.3 py37h6538335_1 conda-forge
pyqt5-sip 4.19.18 pypi_0 pypi
pyqtwebengine 5.12.1 pypi_0 pypi
pyreadline 2.1 py37_1001 conda-forge
pyrsistent 0.16.0 py37h8055547_0 conda-forge
pysocks 1.7.1 py37hc8dfbb8_1 conda-forge
pytables 3.6.1 py37h26f9782_1 conda-forge
pytest 5.4.1 py37hc8dfbb8_0 conda-forge
pytest-arraydiff 0.3 py_0 conda-forge
pytest-astropy 0.7.0 py_0 conda-forge
pytest-astropy-header 0.1.2 py_0 conda-forge
pytest-doctestplus 0.4.0 py_0 conda-forge
pytest-openfiles 0.4.0 py_0 conda-forge
pytest-remotedata 0.3.1 py_0 conda-forge
python 3.7.6 h60c2a47_5_cpython conda-forge
python-dateutil 2.8.1 py_0 conda-forge
python-jsonrpc-server 0.3.4 py_0 conda-forge
python-language-server 0.31.9 py37hc8dfbb8_0 conda-forge
python-libarchive-c 2.9 py37_0 conda-forge
python_abi 3.7 1_cp37m conda-forge
pytz 2019.3 py_0 conda-forge
pywavelets 1.1.1 py37hc8d92b1_0 conda-forge
pywin32 227 py37hfa6e2cd_0 conda-forge
pywin32-ctypes 0.2.0 py37hc8dfbb8_1001 conda-forge
pywinpty 0.5.7 py37_0 conda-forge
pyyaml 5.3.1 py37h8055547_0 conda-forge
pyzmq 19.0.0 py37h8c16cda_1 conda-forge
qdarkstyle 2.8.1 pyh9f0ad1d_0 conda-forge
qt 5.12.5 h7ef1ec2_0 conda-forge
qtawesome 0.7.0 py_0 conda-forge
qtconsole 4.7.2 pyh9f0ad1d_0 conda-forge
qtpy 1.9.0 py_0 conda-forge
requests 2.23.0 pyh8c360ce_2 conda-forge
ripgrep 12.0.1 h301d43c_1 conda-forge
rope 0.16.0 py_0 conda-forge
rtree 0.9.4 py37h804a536_1 conda-forge
ruamel_yaml 0.15.80 py37h8055547_1001 conda-forge
scikit-image 0.16.2 py37he350917_0 conda-forge
scikit-learn 0.22.2.post1 py37h7208079_0 conda-forge
scipy 1.4.1 py37h9439919_0
seaborn 0.10.0 py_1 conda-forge
send2trash 1.5.0 py_0 conda-forge
setuptools 46.1.3 py37hc8dfbb8_0 conda-forge
simplegeneric 0.8.1 py_1 conda-forge
singledispatch 3.4.0.3 py37_1000 conda-forge
sip 4.19.20 py37h6538335_0 conda-forge
six 1.14.0 py_1 conda-forge
smmap 3.0.1 pypi_0 pypi
snakeviz 2.0.1 py_0 conda-forge
snappy 1.1.8 he025d50_1 conda-forge
snowballstemmer 2.0.0 py_0 conda-forge
sortedcollections 1.1.2 py_0 conda-forge
sortedcontainers 2.1.0 py_0 conda-forge
soupsieve 1.9.4 py37hc8dfbb8_1 conda-forge
sphinx 3.0.0 py_0 conda-forge
sphinxcontrib 1.0 py37_1
sphinxcontrib-applehelp 1.0.2 py_0 conda-forge
sphinxcontrib-devhelp 1.0.2 py_0 conda-forge
sphinxcontrib-htmlhelp 1.0.3 py_0 conda-forge
sphinxcontrib-jsmath 1.0.1 py_0 conda-forge
sphinxcontrib-qthelp 1.0.3 py_0 conda-forge
sphinxcontrib-serializinghtml 1.1.4 py_0 conda-forge
sphinxcontrib-websupport 1.2.1 pyh9f0ad1d_0 conda-forge
spyder 4.1.2 py37hc8dfbb8_0 conda-forge
spyder-kernels 1.9.0 py37hc8dfbb8_0 conda-forge
sqlalchemy 1.3.15 py37h8055547_1 conda-forge
sqlite 3.30.1 hfa6e2cd_0 conda-forge
statsmodels 0.11.1 py37h8055547_1 conda-forge
sympy 1.5.1 py37hc8dfbb8_3 conda-forge
tblib 1.6.0 py_0 conda-forge
terminado 0.8.3 py37hc8dfbb8_1 conda-forge
testpath 0.4.4 py_0 conda-forge
tk 8.6.10 hfa6e2cd_0 conda-forge
toolz 0.10.0 py_0 conda-forge
tornado 6.0.4 py37hfa6e2cd_0 conda-forge
tqdm 4.45.0 pyh9f0ad1d_0 conda-forge
traitlets 4.3.3 py37hc8dfbb8_1 conda-forge
typed-ast 1.4.1 py37hfa6e2cd_0 conda-forge
typing_extensions 3.7.4.1 py37hc8dfbb8_3 conda-forge
ujson 1.35 py37h63f7a3c_1002 conda-forge
unicodecsv 0.14.1 py_1 conda-forge
urllib3 1.25.7 py37hc8dfbb8_1 conda-forge
vc 14.1 h869be7e_1 conda-forge
vs2015_runtime 14.16.27012 h30e32a0_1 conda-forge
watchdog 0.10.2 py37_0 conda-forge
wcwidth 0.1.9 pyh9f0ad1d_0 conda-forge
webencodings 0.5.1 py_1 conda-forge
werkzeug 1.0.1 pyh9f0ad1d_0 conda-forge
wheel 0.34.2 py_1 conda-forge
widgetsnbextension 3.5.1 py37_0 conda-forge
win_inet_pton 1.1.0 py37_0 conda-forge
win_unicode_console 0.5 py37_1000 conda-forge
wincertstore 0.2 py37_1003 conda-forge
winpty 0.4.3 4 conda-forge
wrapt 1.12.1 py37h8055547_1 conda-forge
xlrd 1.2.0 py_0 conda-forge
xlsxwriter 1.2.8 py_0 conda-forge
xlwings 0.18.0 py37hc8dfbb8_1 conda-forge
xlwt 1.3.0 py_1 conda-forge
xmltodict 0.12.0 py_0 conda-forge
xz 5.2.4 h2fa13f4_1002 conda-forge
yaml 0.2.2 hfa6e2cd_1 conda-forge
yapf 0.29.0 py_0 conda-forge
zeromq 4.3.2 h6538335_2 conda-forge
zict 2.0.0 py_0 conda-forge
zipp 3.1.0 py_0 conda-forge
zlib 1.2.11 h2fa13f4_1006 conda-forge
zstd 1.4.4 hd8a0e53_2 conda-forge

pip list:

Package Version


alabaster 0.7.12
anaconda-client 1.7.2
anaconda-navigator 1.9.12
anaconda-project 0.8.3
argh 0.26.2
asn1crypto 1.3.0
astroid 2.3.3
astropy 4.0.1.post1
atomicwrites 1.3.0
attrs 19.3.0
autopep8 1.5
Babel 2.8.0
backcall 0.1.0
backports.os 0.1.1
backports.shutil-get-terminal-size 1.0.0
bcrypt 3.1.7
beautifulsoup4 4.8.2
bitarray 1.2.1
bkcharts 0.2
bleach 3.1.4
bokeh 2.0.1
boto 2.49.0
Bottleneck 1.3.2
certifi 2020.4.5.1
cffi 1.14.0
chardet 3.0.4
click 7.1.1
cloudpickle 1.3.0
clyent 1.2.2
colorama 0.4.3
comtypes 1.1.7
conda 4.8.3
conda-build 3.19.2
conda-package-handling 1.6.0
conda-verify 3.1.1
contextlib2 0.6.0.post1
cryptography 2.8
cycler 0.10.0
Cython 0.29.16
cytoolz 0.10.1
dask 2.14.0
decorator 4.4.2
defusedxml 0.6.0
diff-match-patch 20181111
distributed 2.14.0
docutils 0.16
entrypoints 0.3
et-xmlfile 1.0.1
fastcache 1.1.0
filelock 3.0.10
flake8 3.7.9
Flask 1.1.2
fsspec 0.7.1
future 0.18.2
gevent 1.4.0
gitdb 4.0.2
glob2 0.7
greenlet 0.4.15
h5py 2.10.0
HeapDict 1.0.1
html5lib 1.0.1
hypothesis 5.8.0
idna 2.9
imageio 2.8.0
imagesize 1.2.0
importlib-metadata 1.6.0
intervaltree 3.0.2
ipykernel 5.2.0
ipython 7.13.0
ipython-genutils 0.2.0
ipywidgets 7.5.1
isort 4.3.21
itsdangerous 1.1.0
jdcal 1.4.1
jedi 0.15.2
Jinja2 2.11.1
joblib 0.14.1
json5 0.9.0
jsonschema 3.2.0
jupyter-client 6.1.2
jupyter-console 6.1.0
jupyter-core 4.6.3
jupyterlab 2.0.1
jupyterlab-server 1.1.0
keyring 21.1.1
kiwisolver 1.2.0
lazy-object-proxy 1.4.3
libarchive-c 2.9
llvmlite 0.31.0
locket 0.2.0
lxml 4.5.0
MarkupSafe 1.1.1
matplotlib 3.2.1
mccabe 0.6.1
menuinst 1.4.16
mistune 0.8.4
mkl-fft 1.1.0
mkl-random 1.1.0
mkl-service 2.3.0
mock 3.0.5
more-itertools 8.2.0
mpmath 1.1.0
msgpack 1.0.0
multipledispatch 0.6.0
navigator-updater 0.2.1
nbconvert 5.6.1
nbformat 5.0.4
neqsim 2.0.30
networkx 2.4
nltk 3.4.4
nose 1.3.7
notebook 6.0.3
numba 0.48.0
numexpr 2.7.1
numpy 1.18.1
numpydoc 0.9.2
olefile 0.46
openpyxl 3.0.3
packaging 20.1
pandas 1.0.3
pandocfilters 1.4.2
paramiko 2.7.1
parso 0.5.2
partd 1.1.0
path 13.1.0
pathlib2 2.3.5
pathtools 0.1.2
patsy 0.5.1
pep8 1.7.1
pexpect 4.8.0
pgeocode 0.2.1
pickleshare 0.7.5
Pillow 7.1.1
Pint 0.11
Pint-Pandas 0.1.dev0
pip 20.0.2
pkginfo 1.5.0.1
pluggy 0.12.0
ply 3.11
prometheus-client 0.7.1
prompt-toolkit 3.0.5
psutil 5.7.0
pvlib 0.7.1
py 1.8.1
py4j 0.10.9
pycodestyle 2.5.0
pycosat 0.6.3
pycparser 2.20
pycrypto 2.6.1
pycurl 7.43.0.5
pydocstyle 5.0.2
pyflakes 2.1.1
Pygments 2.6.1
pylint 2.4.4
PyNaCl 1.3.0
pyodbc 4.0.30
pyOpenSSL 19.1.0
pyparsing 2.4.6
PyQt5 5.12.3
PyQt5-sip 4.19.18
PyQtWebEngine 5.12.1
pyreadline 2.1
pyrsistent 0.16.0
PySocks 1.7.1
pytest 5.4.1
pytest-arraydiff 0.3
pytest-astropy 0.7.0
pytest-astropy-header 0.1.2
pytest-doctestplus 0.4.0
pytest-openfiles 0.4.0
pytest-remotedata 0.3.1
python-dateutil 2.8.1
python-jsonrpc-server 0.3.4
python-language-server 0.31.9
pytz 2019.3
PyWavelets 1.1.1
pywin32 227
pywin32-ctypes 0.2.0
pywinpty 0.5.7
PyYAML 5.3.1
pyzmq 19.0.0
QDarkStyle 2.8.1
QtAwesome 0.7.0
qtconsole 4.7.2
QtPy 1.9.0
requests 2.23.0
rope 0.16.0
Rtree 0.9.4
ruamel-yaml 0.15.80
scikit-image 0.16.2
scikit-learn 0.22.2.post1
scipy 1.4.1
seaborn 0.10.0
Send2Trash 1.5.0
setuptools 46.1.3.post20200325
simplegeneric 0.8.1
singledispatch 3.4.0.3
sip 4.19.20
six 1.14.0
smmap 3.0.1
snakeviz 2.0.1
snowballstemmer 2.0.0
sortedcollections 1.1.2
sortedcontainers 2.1.0
soupsieve 1.9.4
Sphinx 3.0.0
sphinxcontrib-applehelp 1.0.2
sphinxcontrib-devhelp 1.0.2
sphinxcontrib-htmlhelp 1.0.3
sphinxcontrib-jsmath 1.0.1
sphinxcontrib-qthelp 1.0.3
sphinxcontrib-serializinghtml 1.1.4
sphinxcontrib-websupport 1.2.1
spyder 4.1.2
spyder-kernels 1.9.0
SQLAlchemy 1.3.15
statsmodels 0.11.1
sympy 1.5.1
tables 3.6.1
tblib 1.6.0
terminado 0.8.3
testpath 0.4.4
toolz 0.10.0
tornado 6.0.4
tqdm 4.45.0
traitlets 4.3.3
typed-ast 1.4.1
typing-extensions 3.7.4.1
ujson 1.35
unicodecsv 0.14.1
urllib3 1.25.7
watchdog 0.10.2
wcwidth 0.1.9
webencodings 0.5.1
Werkzeug 1.0.1
wheel 0.34.2
widgetsnbextension 3.5.1
win-inet-pton 1.1.0
win-unicode-console 0.5
wincertstore 0.2
wrapt 1.12.1
xlrd 1.2.0
XlsxWriter 1.2.8
xlwings 0.18.0
xlwt 1.3.0
xmltodict 0.12.0
yapf 0.29.0
zict 2.0.0
zipp 3.1.0

So what's your problem exactly? The fact that the dialog appears constantly or that completion and linting stop working and the server is not restarted automatically?

The dialog does not appear anymore since I updated from 4.1.1 to 4.1.2. The problem currently is that completion and linting stop working after a few minutes.

Does manually restarting the server fix the problem? Please click on LSP Python entry on the status bar and select the restart option.

You can also help us by uploading here the problematic code you're running and that it's generating this issue for you. This is not a generic problem, and even after requesting many times for a simple and reproducible example to people with similar issues, they haven't been unable to provide it to us.

Manually restarting the server does not fix the problem.

I will see what I can do concerning the code tomorrow.

Thanks again!

So I tried to reproduce the problem with a simple example. I have two modules, "moduleA.py" and
"moduleB.py":

moduleA.py:

import moduleB as mB

mBCl = mB.MyClass()
mBClprint = mBCl.f()

moduleB.py:

class MyClass:
    def f(self):
        print('hello world')

as long as I am working with these two modules, everything works fine. Now I modify moduleA.py (import pandas, create a df):

import moduleB as mB
import pandas as pd

mBCl = mB.MyClass()
mBClprint = mBCl.f()

test = pd.DataFrame()

then it stops working, I do not have completion and linting anymore. I tried with another import, numpy for instance instead of pandas, same effect.

I can't reproduce this on Linux, sorry.

@dalthviz, could you try to reproduce this on Windows?

as long as I am working with these two modules, everything works fine

What do you mean by this? Are you using a Spyder project to work with them?

Ok.

What do you mean by this? Are you using a Spyder project to work with them?

No. I mean as long as I do not import other modules (pandas, etc.)

@ccordoba12 @UniqASL after testing I was unable to reproduce this. Tested creating an env using conda-forge, python 3.7.6, pandas 1.0.3, numpy 1.18.1 and spyder 4.1.2 :

conda env details


# packages in environment at C:\Users\Daniel\Anaconda3\envs\issue_12165:
#
# Name                    Version                   Build  Channel
alabaster                 0.7.12                     py_0    conda-forge
argh                      0.26.2                py37_1001    conda-forge
astroid                   2.3.3                    py37_1    conda-forge
atomicwrites              1.3.0                      py_0    conda-forge
attrs                     19.3.0                     py_0    conda-forge
autopep8                  1.5.1              pyh9f0ad1d_0    conda-forge
babel                     2.8.0                      py_0    conda-forge
backcall                  0.1.0                      py_0    conda-forge
bcrypt                    3.1.7            py37h8055547_1    conda-forge
bleach                    3.1.4              pyh9f0ad1d_0    conda-forge
ca-certificates           2020.4.5.1           hecc5488_0    conda-forge
certifi                   2020.4.5.1       py37hc8dfbb8_0    conda-forge
cffi                      1.14.0           py37ha419a9e_0    conda-forge
chardet                   3.0.4           py37hc8dfbb8_1006    conda-forge
cloudpickle               1.3.0                      py_0    conda-forge
colorama                  0.4.3                      py_0    conda-forge
cryptography              2.8              py37hb32ad35_1    conda-forge
decorator                 4.4.2                      py_0    conda-forge
defusedxml                0.6.0                      py_0    conda-forge
diff-match-patch          20181111                   py_0    conda-forge
docutils                  0.16             py37hc8dfbb8_1    conda-forge
entrypoints               0.3             py37hc8dfbb8_1001    conda-forge
flake8                    3.7.9            py37hc8dfbb8_1    conda-forge
future                    0.18.2           py37hc8dfbb8_1    conda-forge
icu                       64.2                 he025d50_1    conda-forge
idna                      2.9                        py_1    conda-forge
imagesize                 1.2.0                      py_0    conda-forge
importlib-metadata        1.6.0            py37hc8dfbb8_0    conda-forge
importlib_metadata        1.6.0                         0    conda-forge
intel-openmp              2020.0                      166
intervaltree              3.0.2                      py_0    conda-forge
ipykernel                 5.2.0            py37h5ca1d4c_1    conda-forge
ipython                   7.13.0           py37hc8dfbb8_2    conda-forge
ipython_genutils          0.2.0                      py_1    conda-forge
isort                     4.3.21           py37hc8dfbb8_1    conda-forge
jedi                      0.15.2                   py37_0    conda-forge
jinja2                    2.11.1                     py_0    conda-forge
jpeg                      9c                hfa6e2cd_1001    conda-forge
jsonschema                3.2.0            py37hc8dfbb8_1    conda-forge
jupyter_client            6.1.2                      py_0    conda-forge
jupyter_core              4.6.3            py37hc8dfbb8_1    conda-forge
keyring                   21.1.1           py37hc8dfbb8_2    conda-forge
lazy-object-proxy         1.4.3            py37h8055547_2    conda-forge
libblas                   3.8.0                    15_mkl    conda-forge
libcblas                  3.8.0                    15_mkl    conda-forge
libclang                  9.0.1           default_hf44288c_0    conda-forge
liblapack                 3.8.0                    15_mkl    conda-forge
libpng                    1.6.37               hfe6a214_1    conda-forge
libsodium                 1.0.17               h2fa13f4_0    conda-forge
libspatialindex           1.9.3                he025d50_3    conda-forge
markupsafe                1.1.1            py37h8055547_1    conda-forge
mccabe                    0.6.1                      py_1    conda-forge
mistune                   0.8.4           py37hfa6e2cd_1000    conda-forge
mkl                       2020.0                      166
nbconvert                 5.6.1                    py37_0    conda-forge
nbformat                  5.0.4                      py_0    conda-forge
numpy                     1.18.1           py37h90d3380_1    conda-forge
numpydoc                  0.9.2                      py_0    conda-forge
openssl                   1.1.1f               hfa6e2cd_0    conda-forge
packaging                 20.1                       py_0    conda-forge
pandas                    1.0.3            py37h9b59f54_0    conda-forge
pandoc                    2.9.2                         0    conda-forge
pandocfilters             1.4.2                      py_1    conda-forge
paramiko                  2.7.1                    py37_0    conda-forge
parso                     0.5.2                      py_0
pathtools                 0.1.2                      py_1    conda-forge
pexpect                   4.8.0            py37hc8dfbb8_1    conda-forge
pickleshare               0.7.5           py37hc8dfbb8_1001    conda-forge
pip                       20.0.2                     py_2    conda-forge
pluggy                    0.12.0                     py_0    conda-forge
prompt-toolkit            3.0.5                      py_0    conda-forge
psutil                    5.7.0            py37h8055547_1    conda-forge
pycodestyle               2.5.0                      py_0    conda-forge
pycparser                 2.20                       py_0    conda-forge
pydocstyle                5.0.2                      py_0    conda-forge
pyflakes                  2.1.1                      py_0    conda-forge
pygments                  2.6.1                      py_0    conda-forge
pylint                    2.4.4                    py37_0    conda-forge
pynacl                    1.3.0           py37h2fa13f4_1001    conda-forge
pyopenssl                 19.1.0                     py_1    conda-forge
pyparsing                 2.4.7              pyh9f0ad1d_0    conda-forge
pyqt                      5.12.3           py37h6538335_1    conda-forge
pyqt5-sip                 4.19.18                  pypi_0    pypi
pyqtwebengine             5.12.1                   pypi_0    pypi
pyrsistent                0.16.0           py37h8055547_0    conda-forge
pysocks                   1.7.1            py37hc8dfbb8_1    conda-forge
python                    3.7.6           h60c2a47_5_cpython    conda-forge
python-dateutil           2.8.1                      py_0    conda-forge
python-jsonrpc-server     0.3.4                      py_0    conda-forge
python-language-server    0.31.9           py37hc8dfbb8_0    conda-forge
python_abi                3.7                     1_cp37m    conda-forge
pytz                      2019.3                     py_0    conda-forge
pywin32                   227              py37hfa6e2cd_0    conda-forge
pywin32-ctypes            0.2.0           py37hc8dfbb8_1001    conda-forge
pyyaml                    5.3.1            py37h8055547_0    conda-forge
pyzmq                     19.0.0           py37h8c16cda_1    conda-forge
qdarkstyle                2.8.1              pyh9f0ad1d_0    conda-forge
qt                        5.12.5               h7ef1ec2_0    conda-forge
qtawesome                 0.7.0                      py_0    conda-forge
qtconsole                 4.7.2              pyh9f0ad1d_0    conda-forge
qtpy                      1.9.0                      py_0    conda-forge
requests                  2.23.0             pyh8c360ce_2    conda-forge
rope                      0.16.0                     py_0    conda-forge
rtree                     0.9.4            py37h804a536_1    conda-forge
setuptools                46.1.3           py37hc8dfbb8_0    conda-forge
six                       1.14.0                     py_1    conda-forge
snowballstemmer           2.0.0                      py_0    conda-forge
sortedcontainers          2.1.0                      py_0    conda-forge
sphinx                    3.0.0                      py_0    conda-forge
sphinxcontrib-applehelp   1.0.2                      py_0    conda-forge
sphinxcontrib-devhelp     1.0.2                      py_0    conda-forge
sphinxcontrib-htmlhelp    1.0.3                      py_0    conda-forge
sphinxcontrib-jsmath      1.0.1                      py_0    conda-forge
sphinxcontrib-qthelp      1.0.3                      py_0    conda-forge
sphinxcontrib-serializinghtml 1.1.4                      py_0    conda-forge
spyder                    4.1.2            py37hc8dfbb8_0    conda-forge
spyder-kernels            1.9.0            py37hc8dfbb8_0    conda-forge
sqlite                    3.30.1               hfa6e2cd_0    conda-forge
testpath                  0.4.4                      py_0    conda-forge
tornado                   6.0.4            py37hfa6e2cd_0    conda-forge
traitlets                 4.3.3            py37hc8dfbb8_1    conda-forge
typed-ast                 1.4.1            py37hfa6e2cd_0    conda-forge
ujson                     1.35            py37h63f7a3c_1002    conda-forge
urllib3                   1.25.7           py37hc8dfbb8_1    conda-forge
vc                        14.1                 h869be7e_1    conda-forge
vs2015_runtime            14.16.27012          h30e32a0_1    conda-forge
watchdog                  0.10.2                   py37_0    conda-forge
wcwidth                   0.1.9              pyh9f0ad1d_0    conda-forge
webencodings              0.5.1                      py_1    conda-forge
wheel                     0.34.2                     py_1    conda-forge
win_inet_pton             1.1.0                    py37_0    conda-forge
wincertstore              0.2                   py37_1003    conda-forge
wrapt                     1.12.1           py37h8055547_1    conda-forge
yaml                      0.2.2                hfa6e2cd_1    conda-forge
yapf                      0.29.0                     py_0    conda-forge
zeromq                    4.3.2                h6538335_2    conda-forge
zipp                      3.1.0                      py_0    conda-forge
zlib                      1.2.11            h2fa13f4_1006    conda-forge


@UniqASL could you try to create an env only with Spyder, pandas and numpy installed? Something like this from the anaconda prompt should create it:

conda create -n issue_12165 -c conda-forge python=3.7.6 spyder=4.1.2 pandas numpy

Just to check if in your end the error persist in does circumstances too. Any new info regarding the issue and a way to reproduce it is greatly appreciate :)

@UniqASL, another way you can help us is by opening the Anaconda Prompt and starting Spyder with this command:

spyder --debug-info verbose --debug-output file

After doing that, a file called spyder-debug.log will be generated in the same directory where you ran that command. Please upload it here.

And before closing Spyder, please also go to the the menu Tools > LSP logs (which is only shown in debug mode):

Selecci贸n_002

click on the two entries shown on it to open those files in the editor, and upload their contents here too.

Thanks!

@ccordoba12. Thanks for taking time for that. Enclosed the 3 requested files.

client_python.txt
server_python.txt
spyder-debug.log

@dalthviz. I also tried creating a new environment, then

conda activate issue_12165

then launched Spyder

C:\Users\X\Anaconda3\envs\issue_12165\Scripts\spyder.exe

It did not solve the issue.

I might be able to help. Have the same problem here for me, but on linux. I am not using anaconda. I know that I won't get support, but maybe I can still help ;). If this happens on different platforms its probably a more general problem... here is my platform and additionally I have attached a spyder.log which might also help to find why the server crashed:

spyder3_error_traceback.log
spyder-debug.log

Versions

  • Spyder version: 4.1.2
  • Python version: 3.6.9
  • Qt version: 5.12.7
  • PyQt5 version: 5.12.3
  • Operating System: Linux 5.3.0-45-generic

Dependencies


# Mandatory:
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.13.0 (OK)
jedi =0.15.2                   :  0.15.2 (OK)
keyring                        :  None (OK)
nbconvert >=4.0                :  5.6.1 (OK)
numpydoc >=0.6.0               :  0.9.2 (OK)
parso =0.5.2                   :  0.5.2 (OK)
pexpect >=4.4.0                :  4.8.0 (OK)
pickleshare >=0.4              :  0.7.5 (OK)
psutil >=5.3                   :  5.7.0 (OK)
pygments >=2.0                 :  2.6.1 (OK)
pylint >=0.25                  :  2.4.4 (OK)
pyls >=0.31.9;<0.32.0          :  0.31.9 (OK)
qdarkstyle >=2.8               :  2.8.1 (OK)
qtawesome >=0.5.7              :  0.7.0 (OK)
qtconsole >=4.6.0              :  4.7.2 (OK)
qtpy >=1.5.0                   :  1.9.0 (OK)
sphinx >=0.6.6                 :  2.4.4 (OK)
spyder_kernels >=1.9.0;<1.10.0 :  1.9.0 (OK)
watchdog                       :  None (OK)
xdg >=0.26                     :  0.26 (OK)
zmq >=17                       :  19.0.0 (OK)

# Optional:
cython >=0.21                  :  0.29.16 (OK)
matplotlib >=2.0.0             :  3.2.1 (OK)
numpy >=1.7                    :  1.18.2 (OK)
pandas >=0.13.1                :  1.0.3 (OK)
scipy >=0.17.0                 :  1.4.1 (OK)
sympy >=0.7.3                  :  None (OK)

I have the same problem, the code completion function will suddenly fail.

After updating to 4.1.2 I still get this issue intermittently. The most obvious is a syntax error gets highlighted, but does not go away after fixing the code. I suspect I also have problems with code completion. I have never noticed the language server being restarted automatically (does it even update the status for an automatic restart?), but a manual restart of the LS fixes the problem.

I'm working on Win10 with Spyder installed in a new conda environment with a few typical packages (numpy, pandas etc)

@ccordoba12 These are the spyder and LSP logs for a (almost) full day working in spyder. I didn't actually have any complete freezes, but what is noticeable is that there can be a lengthy delay in updating linting errors and code completion.

FYI I've replaced some paths in the log files with '...'.

I hope this helps.

client_python_7676.log.gz
spyderdebug.log.gz
server_python_7676.log.gz

@ccordoba12 I`m not sure if this info would help, i'm a beginner and starting to learn to code now. For me, it seems linting and code completion stops working a few seconds/minutes after importing pandas and/or pandas-datareader.

for example, with the code below I can randomly reproduces it:

`import pandas as pd
import pandas_datareader as pdr

df = pdr.get_data_yahoo("0050.TW")
df2 = pdr.get_data_yahoo("0056.TW")
df.Close.plot()
df2.Close.plot()`

if the file I'm working I don't import pandas, python language server works as expected. I'm using on Mac and installed Spyder with pip (however I tested with Anaconda too)

Mandatory:

applaunchservices >=0.1.7 : 0.2.1 (OK)
atomicwrites >=1.2.0 : 1.4.0 (OK)
chardet >=2.0.0 : 3.0.4 (OK)
cloudpickle >=0.5.0 : 1.4.1 (OK)
diff_match_patch >=20181111 : 20181111 (OK)
intervaltree : None (OK)
IPython >=4.0 : 7.15.0 (OK)
jedi =0.15.2 : 0.15.2 (OK)
nbconvert >=4.0 : 5.6.1 (OK)
numpydoc >=0.6.0 : 1.0.0 (OK)
parso =0.5.2 : 0.5.2 (OK)
pexpect >=4.4.0 : 4.8.0 (OK)
pickleshare >=0.4 : 0.7.5 (OK)
psutil >=5.3 : 5.7.0 (OK)
pygments >=2.0 : 2.6.1 (OK)
pylint >=0.25 : 2.5.3 (OK)
pyls >=0.31.9;<0.32.0 : 0.31.10 (OK)
qdarkstyle >=2.8 : 2.8.1 (OK)
qtawesome >=0.5.7 : 0.7.2 (OK)
qtconsole >=4.6.0 : 4.7.4 (OK)
qtpy >=1.5.0 : 1.9.0 (OK)
sphinx >=0.6.6 : 3.1.0 (OK)
spyder_kernels >=1.9.1;<1.10.0 : 1.9.1 (OK)
watchdog : None (OK)
zmq >=17 : 19.0.1 (OK)

Optional:

cython >=0.21 : None (OK)
matplotlib >=2.0.0 : 3.2.1 (OK)
numpy >=1.7 : 1.18.4 (OK)
pandas >=0.13.1 : 1.0.4 (OK)
scipy >=0.17.0 : 1.4.1 (OK)
sympy >=0.7.3 : None (OK)

@UniqASL, @ChemicalSailor, is this still a problem for you in our 4.1.4 version?

I鈥檝e had a short run at testing on 4.1.4, it seems to be working ok for me now.

Great news @ChemicalSailor! I'll leave this one open for a few more days to give @UniqASL a chance to answer.

I worked one hour with it and so far the problem seems to have disappeared. Thanks for that!

Great! Thanks @UniqASL for the confirmation!

Closing this one for now then. If more errors appear, please open a new issue for them.

Was this page helpful?
0 / 5 - 0 ratings