Closed mczakk closed 1 year ago
Hey @mczakk, thanks for reporting. What Matplotlib backend are you using to generate your plots? It's ok if you don't know what that is, but that could be the cause of your issues.
Hi @ccordoba12, unfortunately i'm not sure, and can't find out as I switched from using Anaconda to a standalone install using pip. so far there have been no issues :) I am uncertain as to whether the matplotlib backend was causing the issue as it was occurring across all scripts, even those which did not call matplotlib at all (if that helps)
Ok, then please open a system terminal (i.e. cmd.exe) and run there
spyder --reset
and try again. Perhaps that solves the problem for you.
Ok, then please open a system terminal (i.e. cmd.exe) and run there
spyder --reset
and try again. Perhaps that solves the problem for you.
Not sure what this will achieve, as I said, I have uninstalled Anaconda and it's associated version of Spyder, and installed standalone spyder using pip. This seems to be working ok :)
Not sure what this will achieve
That won't uninstall Spyder, it will reset its configuration options to its factory defaults. That could help to fix the problem you're seeing.
I was having the same problem. I uninstalled and re-installed Anaconda, but no success. However, running spyder --reset
fixed it!
Celebrated too soon... When I activate the option "Remove all variables before execution" in the settings, it hangs again. Disabling the option makes it work again. Is there a solution to this problem?
Thanks for the extra info @gica3618! This means that this is a duplicate of issue #16138 and we'll try to fix it in Spyder 6, to be released during the second half of the year.
For now you can't use that option because it's broken, sorry.
I had the same issue. Setting the graphics backend as Inline or Tkinter seems to have fixed the problem for me, for the moment. I have that issue every time I set it as qt5 or Automatic (tried several times).
@K4-z3, that was a problem with older Spyder versions. If you're using the latest one (5.4.3), you shouldn't see it.
@K4-z3, that was a problem with older Spyder versions. If you're using the latest one (5.4.3), you shouldn't see it.
I'm currently using Spyder 5.4.3 with Python 3.8.16, Qt 5.15.2 and PyQt5 5.15.7 and apparently still got the issue.
Not sure what this will achieve
That won't uninstall Spyder, it will reset its configuration options to its factory defaults. That could help to fix the problem you're seeing.
I think we have crossed wires! I had already uninstalled my Anaconda install (and obviously spyder with it) before you replied. I'm now running standalone Spyder via a pip install with Python 3.11 with only minor issues (which I will post as another issue) and so would suggest that the issue I was having may well be connected to Anaconda in some way?
@K4-z3, please open a new issue about your problem and don't forget to fill all the info required by our issue template.
Hi @ccordoba12 I saw you mentioned that the issue should be fixed for Spyder v5.4.3 and above, but I am currently using (5.51) with Python 3.12.4 64-bit | Qt 5.15.2 | PyQt5 5.15.10 and I have the same problem about Qt5. If my backend is set to Qt5 my console freezes and if I change to Automatic or Inline it seems to work properly.
@DiegoRodasRodriguez, that problem comes and goes due to changes in some Jupyter packages (yes, we use the same execution architecture as Jupyter).
Please open the Anaconda Prompt and run these commands there:
conda create -n spyder-env -c conda-forge spyder=5.5.6 matplotlib=3.8
conda activate spyder-env
spyder
That Spyder version should work as expected.
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
when running any script spyder will just hang after producing the runfile ('xxxx', wdir='xxx', current_namespace=True) message in the console. I can still enter type into the editor, but clicking the red square int the console does nothing. I can click on restart kernel, sometimes this will allow the script to run, sometimes not. generally I have to close and re-open spyder, but this does not always work.
What steps reproduce the problem?
What is the expected output? What do you see instead?
nothing, it is currently hung, and I have copied the spyder version info and dependencies while it is 'running'. attached is a screenshot of the console
Paste Traceback/Error Below (if applicable)
Versions
Spyder version: 5.4.3 (conda)
Python version: 3.11.3 64-bit
Qt version: 5.15.6
PyQt5 version: 5.15.7
Operating System: Windows 10
Spyder version:
Python version:
Qt version:
PyQt version:
Operating System name/version:
Dependencies