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.

Spyder crashes when the IPython console is disabled

See original GitHub issue

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

I had to restart my desktop environment through a reboot. Spyder was running at that time with one file not saved.

After the restart, I started Spyder from the start menu. It showed me the file recovery dialog, I agreed to the recovery and then Spyder exited. When I tried it again, the recovery dialog was not displayed. (Where would I now find the recovered file?), but Spyder still did not start.

I then started Spyder from the terminal with spyder --debug-info verbose --debug-output file. The spyder-debug.log (with the traceback spliced in) is attached.

What is the expected output? What do you see instead?

Please see spyder-debug.log

Paste Traceback/Error Below (if applicable)

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/spyder/api/widgets/menus.py", line 225, in _render
    section, before_section = next(iter_sections)
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/spyder", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/spyder/app/start.py", line 252, in main
    mainwindow.main(options, args)
  File "/usr/local/lib/python3.8/dist-packages/spyder/app/mainwindow.py", line 1956, in main
    mainwindow = create_window(MainWindow, app, splash, options, args)
  File "/usr/local/lib/python3.8/dist-packages/spyder/app/utils.py", line 300, in create_window
    main.post_visible_setup()
  File "/usr/local/lib/python3.8/dist-packages/spyder/app/mainwindow.py", line 1057, in post_visible_setup
    plugin.on_mainwindow_visible()
  File "/usr/local/lib/python3.8/dist-packages/spyder/plugins/mainmenu/plugin.py", line 86, in on_mainwindow_visible
    menu._render()
  File "/usr/local/lib/python3.8/dist-packages/spyder/api/widgets/menus.py", line 246, in _render
    raise SpyderAPIError(
spyder.api.exceptions.SpyderAPIError: You're trying to introduce some sections before others that don't have any actions. This is the list of (section, before_section) that's failing to be added:

[('documentation_section', 'support_section'), ('support_section', 'external_documentation_section')]

Versions

  • Spyder version: 5.3.3
  • Python version: 3.8.10
  • Qt version: 5.15.2 (?)
  • PyQt version: 5.15.7
  • Operating System name/version: Linux Mint 20.3

Dependencies

N/A.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sphhcommented, Dec 11, 2022

🙇

0reactions
ccordoba12commented, Sep 27, 2022

Yeah, I tested this locally and you’re right, Spyder crashes with this error if the IPython console is disabled.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spyder iPython console crashing in a long program
You can start one by running ipython qtconsole or (if that doesn't work) jupyter qtconsole . The thing is Spyder is using an...
Read more >
Spyder crashes at launch: "python.exe has stopped working"
1. Uninstalling and reinstalling · 2. Resetting spyder (spyder --reset) · 3. deleting the .spyder2 directory · 4. changing the spyder config file,...
Read more >
Google Code Archive - Google Code
spyderlib ; 422, WontFix, IPython support: save file dialog crashes (matplotlib figure) Type-Defect Priority-Medium Cat-Console Component-IPython Restrict- ...
Read more >
iPython console gets totally unresponsive when using large ...
Disabling "Show Variable" solves the issue for now, but I guess PyCharm is not satisfied by this compromise, given that the free Spyder...
Read more >
spyder3-3.2.8-bp153.1.16 - SUSE Package Hub -
IPython console * Always run Cython files in a dedicated console. ... Can't enable debug mode * Spyder crashes after typing plt.plot( at...
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