spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.32k stars 1.61k forks source link

code completion and linting not working #12730

Closed Yusi-Sara-Yang closed 4 years ago

Yusi-Sara-Yang commented 4 years ago

Description

What steps will reproduce the problem?

Cannot reproduce. It worked all good for like 4 hours, and suddenly it forbid me to type in anything, with the pop up warning asking me to restart or check firewall configuration. This happened a few times yesterday and the day before too. Really annoying

Traceback

  File "C:\Users\syang\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\plugins\variableexplorer\widgets\namespacebrowser.py", line 234, in <lambda>
    triggered=lambda: self.import_data())
  File "C:\Users\syang\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\plugins\variableexplorer\widgets\namespacebrowser.py", line 459, in import_data
    error_message = self.shellwidget.load_data(self.filename, ext)
  File "C:\Users\syang\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\plugins\ipythonconsole\widgets\namespacebrowser.py", line 136, in load_data
    filename, ext, overwrite=overwrite)
  File "C:\Users\syang\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\comms\commbase.py", line 538, in __call__
    call_dict, call_data, self._comm_id)
  File "C:\Users\syang\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\plugins\ipythonconsole\comms\kernelcomm.py", line 132, in _get_call_return_value
    call_dict, call_data, comm_id)
  File "C:\Users\syang\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\comms\commbase.py", line 420, in _get_call_return_value
    return self._sync_error(reply['value'])
  File "C:\Users\syang\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\comms\commbase.py", line 476, in _sync_error
    error_wrapper.raise_error()
  File "C:\Users\syang\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\comms\commbase.py", line 90, in raise_error
    raise self.etype(self)
Exception in comms call load_data:

  File "C:\Users\syang\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\comms\commbase.py", line 342, in _handle_remote_call
    buffer['call_kwargs'])

  File "C:\Users\syang\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\comms\commbase.py", line 353, in _remote_callback
    *call_args, **call_kwargs)

  File "C:\Users\syang\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\console\kernel.py", line 262, in load_data
    data, error_message = load_func(filename)

  File "C:\Users\syang\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\utils\iofuncs.py", line 408, in load_dictionary
    data = pickle.loads(fdesc.read())

ModuleNotFoundError: No module named 'bluepy'

Versions

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.6.7 (OK)
pygments >=2.0                 :  2.5.2 (OK)
pylint >=0.25                  :  2.4.4 (OK)
pyls >=0.31.9;<0.32.0          :  0.31.9 (OK)
qdarkstyle >=2.8               :  2.8 (OK)
qtawesome >=0.5.7              :  0.6.1 (OK)
qtconsole >=4.6.0              :  4.7.1 (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.9.0;<1.10.0 :  1.9.0 (OK)
watchdog                       :  None (OK)
zmq >=17                       :  18.1.1 (OK)

# Optional:
cython >=0.21                  :  None (OK)
matplotlib >=2.0.0             :  3.1.3 (OK)
numpy >=1.7                    :  1.18.1 (OK)
pandas >=0.13.1                :  0.25.1 (OK)
scipy >=0.17.0                 :  1.4.1 (OK)
sympy >=0.7.3                  :  None (OK)
dalthviz commented 4 years ago

Hi @Yusi-Sara-Yang sorry to hear that. Could you try to update to the latest release of Spyder and check again?

To update you could use from an Anaconda Prompt something like conda install spyder=4.1.3

Also, the traceback seems to point out an import of data. Could you describe more in deep the context where this is happening? Are you trying to import data in some way when the error is triggered?

Any new info in order to understand what is happening in greatly appreciated :)

dalthviz commented 4 years ago

Closing due to lack of response.