Spyder Debugger hangs (not debugging)

17.9k Views Asked by At

I updated to the latest version of Spyder (5.1.5) and my debugger hangs w/o response on the first line, no matter the code.

Spyder debugger hang

Here are the dependency versions:

  • Spyder 5.1.5
  • spyder-kernel 2.1.1
  • Python 3.9.7
  • IPython 7.31.1

I remember having this problem a while ago that was fixed by updating the Spyder Kernel, but no dice this time through.

Any solutions?

5

There are 5 best solutions below

6
Sina Mo On

You need to update your Spyder version because this is a known issue fixed in any Spyder version greater than 5.1.5.

If you are not using Anaconda, you can update Spyder with the following command

pip install -U spyder

If you are using Anaconda, please close Spyder, open the Anaconda Prompt (on Windows) or a terminal (on Linux or Mac) and run there

conda create -n spyder-env -c conda-forge spyder
conda activate spyder-env
spyder
3
ilja On

I had the same problem on Windows10 with spyder version 5.1.5. To resolve the problem you need a version newer than 5.1.5. The thing is that if you update Spyder you have to install it from a channel other than the defaults channel in order to get a newer version than 5.1.5. This can be done in two ways:

Console

Open the console or, if you're working on Windows, the Anaconda Prompt, and type the following commands in order to first uninstall spyder, and then re-install the newest version (just updating didn't work for me).

conda remove -n myenv spyder
conda install -n myenv -c conda-forge spyder
  • The first command, remove, uninstalls spyder in the virtualenv called 'myenv'. If you don't use virtualenvs, just leave the -n myenv aside.
  • The second command, install installs spyder from the third-party channel conda-forge instead of the official channel defaults. This option is necessary in order to install a spyder version newer than 5.1.5

Anaconda Navigator

  • Uninstall Spyder: In the "Home" tab, select the correct virtual environment in the "Applications on" dropdown menu. Then click on the gear symbol in the upper right corner of the spyder tile and select "remove application".
  • Add conda-forge to your environment's channels: This is nicely described at the bottom of this page.
  • Install spyder again, in the way you did it the first time.
  • Click again on the gear on the spyder tile, choose "install specific version" in order to update to the newest version. Now, versions newer than 5.1.5 should be available.
1
Suresh Doraiswamy On

I had the same issue with Anaconda Navigator 2.1.4, and Spyder 5.3.2 using Python 3.9.13, and I solved it using the solution in the first answer above, ie.

conda create -n spyder-env -c conda-forge spyder`
conda activate spyder-env`
spyder
0
user19650645 On

conda install qtconsole=5.1.1

do the magic https://github.com/spyder-ide/spyder/issues/17334

0
Chandan On

This bug has been resolved in the version 5.2.2 of Spyder.

conda install -c conda-forge spyder=5.2.2

or

pip install spyder=5.2.2

Enjoy!!