question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I cannot use the console

See original GitHub issue

Description

What steps will reproduce the problem?

I just open spyder and I get the message that I should install the spyder-kernels. But I cannot run anything on the console

Traceback

Traceback (most recent call last):
  File "C:\Users\graci\Anaconda3\envs\tf\lib\site-packages\qtconsole\console_widget.py", line 427, in eventFilter
    return self._event_filter_console_keypress(event)
  File "C:\Users\graci\Anaconda3\envs\tf\lib\site-packages\spyder\plugins\ipythonconsole\widgets\debugging.py", line 653, in _event_filter_console_keypress
    self)._event_filter_console_keypress(event)
  File "C:\Users\graci\Anaconda3\envs\tf\lib\site-packages\qtconsole\frontend_widget.py", line 378, in _event_filter_console_keypress
    return super()._event_filter_console_keypress(event)
  File "C:\Users\graci\Anaconda3\envs\tf\lib\site-packages\qtconsole\console_widget.py", line 1272, in _event_filter_console_keypress
    self.execute(interactive = not shift_down)
  File "C:\Users\graci\Anaconda3\envs\tf\lib\site-packages\spyder\plugins\ipythonconsole\widgets\shell.py", line 243, in execute
    super(ShellWidget, self).execute(source, hidden, interactive)
  File "C:\Users\graci\Anaconda3\envs\tf\lib\site-packages\spyder\plugins\ipythonconsole\widgets\debugging.py", line 573, in execute
    source, hidden, interactive)
  File "C:\Users\graci\Anaconda3\envs\tf\lib\site-packages\qtconsole\console_widget.py", line 651, in execute
    source, partial(self.do_execute, source))
  File "C:\Users\graci\Anaconda3\envs\tf\lib\site-packages\spyder\plugins\ipythonconsole\widgets\debugging.py", line 664, in _register_is_complete_callback
    source, callback)
  File "C:\Users\graci\Anaconda3\envs\tf\lib\site-packages\qtconsole\console_widget.py", line 600, in _register_is_complete_callback
    self._is_complete_msg_id = self.kernel_client.is_complete(source)
AttributeError: 'NoneType' object has no attribute 'is_complete'

Versions

  • Spyder version: 5.1.3
  • Python version: 3.7.11
  • Qt version: 5.12.10
  • PyQt5 version: 5.12.3
  • Operating System: Windows 10

Dependencies


# Mandatory:
atomicwrites >=1.2.0          :  1.4.0 (OK)
chardet >=2.0.0               :  4.0.0 (OK)
cloudpickle >=0.5.0           :  1.6.0 (OK)
cookiecutter >=1.6.0          :  1.7.3 (OK)
diff_match_patch >=20181111   :  20200713 (OK)
intervaltree >=3.0.2          :  3.1.0 (OK)
IPython >=7.6.0               :  7.27.0 (OK)
jedi >=0.17.2;<0.19.0         :  0.18.0 (OK)
jsonschema >=3.2.0            :  3.2.0 (OK)
keyring >=17.0.0              :  23.1.0 (OK)
nbconvert >=4.0               :  6.1.0 (OK)
numpydoc >=0.6.0              :  1.1.0 (OK)
paramiko >=2.4.0              :  2.7.2 (OK)
parso >=0.7.0;<0.9.0          :  0.8.2 (OK)
pexpect >=4.4.0               :  4.8.0 (OK)
pickleshare >=0.4             :  0.7.5 (OK)
psutil >=5.3                  :  5.8.0 (OK)
pygments >=2.0                :  2.10.0 (OK)
pylint >=2.5.0;<2.10.0        :  2.9.6 (OK)
pyls_spyder >=0.4.0           :  0.4.0 (OK)
pylsp >=1.2.2;<1.3.0          :  1.2.2 (OK)
pylsp_black >=1.0.0           :  None (OK)
qdarkstyle =3.0.2             :  3.0.2 (OK)
qstylizer >=0.1.10            :  0.2.1 (OK)
qtawesome >=1.0.2             :  1.0.3 (OK)
qtconsole >=5.1.0             :  5.1.1 (OK)
qtpy >=1.5.0                  :  1.11.0 (OK)
rtree >=0.9.7                 :  0.9.7 (OK)
setuptools >=49.6.0           :  57.4.0 (OK)
sphinx >=0.6.6                :  4.1.2 (OK)
spyder_kernels >=2.1.1;<2.2.0 :  2.1.1 (OK)
textdistance >=4.2.0          :  4.2.1 (OK)
three_merge >=0.1.1           :  0.1.1 (OK)
watchdog >=0.10.3             :  2.1.5 (OK)
zmq >=17                      :  22.2.1 (OK)

# Optional:
cython >=0.21                 :  None (OK)
matplotlib >=2.0.0            :  3.4.3 (OK)
numpy >=1.7                   :  1.19.5 (OK)
pandas >=1.1.1                :  1.3.2 (OK)
scipy >=0.17.0                :  1.7.1 (OK)
sympy >=0.7.3                 :  None (OK)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
lukeallpresscommented, Sep 8, 2021

I terminated after 3 hours of Terminal working on 2.1.1. I then used conda to remove spyder-kernels then ran the install script again and it worked quickly, and Spyder runs now. Sorry for the hassle, hopefully this can help someone else.

I am still curious why I’ve gotten the “need to install 2.1” message multiple times after upgrading Spyder, but for me at least it’s not a pressing need to fix.

0reactions
dalthvizcommented, Oct 13, 2021

Closing due to lack of OP response

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't open up console :: Counter-Strike - Steam Community
Right click on csgo (in the Library), go to properties. Then you press on the "specify the startup options" and wirte -console. then...
Read more >
If your mobile device won't connect to your console during setup
Solution 3: Restart your mobile device and console​​ Restart your mobile device. While your mobile device is restarting, hold down the Xbox button...
Read more >
Cannot use console.log() in a module - Stack Overflow
In your scenario, I believe that line 1 of main.js is throwing an error. In your index.html file, you're suggesting that you have...
Read more >
Can't start console in Safe Mode - PlayStation
Learn how to resolve issues when trying to access Safe Mode on your PlayStation®5 console or PlayStation®4 console.
Read more >
How to open the developer console - monday.com Support
Step 1: To open the console in Chrome, use this keyboard shortcut: "Cmd + Option + J" (on a Mac) or "Ctrl +Shift...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found