Search code examples
pythonipythonimporterrorspyder

After starting spyder: ImportError: cannot import name 'quick_guide'


When I start the internal console pops up and gives the following "traceback":

>>> WARNING:traitlets:kernel died: 6.001837253570557
Traceback (most recent call last):
  File "C:\...\lib\site-packages\traitlets\traitlets.py", line 528, in get
    value = obj._trait_values[self.name]
KeyError: 'banner'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\...\lib\site-packages\qtconsole\base_frontend_mixin.py", line 163, in _dispatch
    handler(msg)
  File "C:\...\lib\site-packages\qtconsole\jupyter_widget.py", line 296, in _handle_kernel_info_reply
    super(JupyterWidget, self)._started_channels()
  File "C:\...\lib\site-packages\qtconsole\frontend_widget.py", line 617, in _started_channels
    self.reset(clear=True)
  File "C:\...\lib\site-packages\qtconsole\frontend_widget.py", line 661, in reset
    self._append_plain_text(self.banner)
  File "C:\...\lib\site-packages\traitlets\traitlets.py", line 556, in __get__
    return self.get(obj, cls)
  File "C:\...\lib\site-packages\traitlets\traitlets.py", line 535, in get
    value = self._validate(obj, dynamic_default())
  File "C:\...\lib\site-packages\spyder\widgets\ipythonconsole\shell.py", line 280, in _banner_default
    return self.long_banner()
  File "C:\...\lib\site-packages\spyder\widgets\ipythonconsole\shell.py", line 91, in long_banner
    from IPython.core.usage import quick_guide
ImportError: cannot import name 'quick_guide'

The IPython console works without problems, it is just missing the "introduction text" (python version, help-commands).

Can I just ignore this exception or is there a way to fix this manually?


Solution

  • (Spyder developer here) This was fixed in Spyder 3.1.4 (just released). Please update to fix it.