I have been using Spyder 4.2 for roughly a year without issue. Upon opening and coding for roughly 15 minutes today the Application started freezing mid program constantly. Restarting the kernal unfreezes it, then upon running code same issue. Starts freezing. I uninstalled all Anaconda related software and reinstalled the newest version. 5.1.5 Spyder is what it installed upon re installing Anaconda. Same issue. I get not Tracebacks upon hitting the stop button when it freezes and no internal error messages now. Although I did get some internal messages on version 4.2 before uninstalling.
Those Error messages showed this when opening the âShow Detailsâ on Spyder 4.2
ite-packages\spyder\plugins\ipythonconsole\widgets\debugging.py", line 278, in _handle_input_request
return super(DebuggingWidget, self)._handle_input_request(msg)
File âC:\Users\xxxxx\anaconda3\lib\site-packages\qtconsole\frontend_widget.pyâ, line 512, in _handle_input_request
self._readline(msg[âcontentâ][âpromptâ], callback=callback, password=msg[âcontentâ][âpasswordâ])
File âC:\Users\xxxxx\anaconda3\lib\site-packages\qtconsole\console_widget.pyâ, line 2422, in _readline
self._show_prompt(prompt, newline=False, separator=False)
TypeError: _show_prompt() got an unexpected keyword argument âseparatorâ
Unfortunately to debug where this error is occurring, you would need to post the relevant code that is failing below⊠it would help if you can pinpoint the error to a single line or just a few lines of the code where it seems to hang.
It looks like it is a python interpreter problem of some sort, as Spyder itself is not crashing, just displaying an error. I will try to track down the problem, but I am not sure it is a problem with conda or Anaconda.
I teach a python to a class of ~40 students, on a classroom computer that gets reset each night, so Iâm installing it 3 times a week.
Currently installing Anaconda 2022.05 (the current default installer) results in a complete install including Spyder 5.1.5. Spyder will launch and appear to work until you try to actually run a program that includes input(), at which point spyder will report an internal error and the kernel will hang.
The solution that we found was to do the following sequence from an anaconda prompt:
update conda (conda update conda)
update anaconda (conda update anaconda)
update anaconda navigator, which may not be necessary (conda update anaconda-navigator)
update spyder to the newest available version in the repo (conda install spyder=5.2.2 )
the last step will retry a couple times before settling on a repo and successful solve solution. After that I found that it ran with no issues.
Over the last few semesters, Iâve found that upgrades of Anaconda and Spyder to be especially problematic, there always seems to be an issue upgrading one or both. Previously Iâve encountered difficulties upgrading Spyder from 5.0.5 to 5.1.5, and I continue to encounter issues with all of the above on Windows if there are spaces in the profile path (i.e., the user has a space in their username). Iâve been able to work around all of them, but itâs very tiring explaining what to do to 40 intro to python students when each semester the issues are always new and different. My understanding is that the latest version of Anaconda for M1 Macs wonât even run Spyder as they updated Anaconda to M1 native support, but Qt, which is necessary for Spyder, hasnât been updated yet.
It may be an interaction with conda or anaconda, but itâs definitely a Spyder issue as well. I can reproduce the issue with any clean install of Anaconda 2022.05 on Windows. Running input() from either a program or the console results in the error.
Updating Spyder to version 5.2.2 resolves the issue (after updating Anaconda first).