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 fails to quit if Preferences dialog is open

See original GitHub issue

Description

What steps will reproduce the problem?

  1. Open Spyder
  2. Open Preferences
  3. Quit Spyder

Spyder proceeds to shutdown plugins, but aborts before completing the shutdown process.

quit

Versions

  • Spyder version: 5.4.0.dev0 bb3a32093
  • Python version: 3.10.4
  • Qt version: 5.12.9
  • PyQt5 version: 5.12.3
  • Operating System: Darwin 20.6.0

Dependencies

# Mandatory:
applaunchservices >=0.1.7            :  0.2.1 (OK)
atomicwrites >=1.2.0                 :  1.4.0 (OK)
chardet >=2.0.0                      :  4.0.0 (OK)
cloudpickle >=0.5.0                  :  2.0.0 (OK)
cookiecutter >=1.6.0                 :  1.7.3 (OK)
diff_match_patch >=20181111          :  20200713 (OK)
intervaltree >=3.0.2                 :  3.0.2 (OK)
IPython >=7.31.1;<8.0.0              :  7.32.0 (OK)
jedi >=0.17.2;<0.19.0                :  0.18.1 (OK)
jellyfish >=0.7                      :  0.9.0 (OK)
jsonschema >=3.2.0                   :  4.4.0 (OK)
keyring >=17.0.0                     :  23.4.0 (OK)
nbconvert >=4.0                      :  6.5.0 (OK)
numpydoc >=0.6.0                     :  1.2.1 (OK)
parso >=0.7.0;<0.9.0                 :  0.8.3 (OK)
pexpect >=4.4.0                      :  4.8.0 (OK)
pickleshare >=0.4                    :  0.7.5 (OK)
psutil >=5.3                         :  5.9.0 (OK)
pygments >=2.0                       :  2.12.0 (OK)
pylint >=2.5.0                       :  2.13.5 (OK)
pyls_spyder >=0.4.0                  :  0.4.0 (OK)
pylsp >=1.4.1;<1.5.0                 :  1.4.1 (OK)
pylsp_black >=1.2.0                  :  1.2.1 (OK)
qdarkstyle >=3.0.2;<3.1.0            :  3.0.3 (OK)
qstylizer >=0.1.10                   :  0.2.1 (OK)
qtawesome >=1.0.2                    :  1.1.1 (OK)
qtconsole >=5.3.0;<5.4.0             :  5.4.0.dev0 (OK)
qtpy >=2.0.1                         :  2.0.1 (OK)
rtree >=0.9.7                        :  1.0.0 (OK)
setuptools >=49.6.0                  :  62.1.0 (OK)
sphinx >=0.6.6                       :  4.5.0 (OK)
spyder_kernels >=2.3.0;<2.4.0        :  2.4.0.dev0 (OK)
textdistance >=4.2.0                 :  4.2.2 (OK)
three_merge >=0.1.1                  :  0.1.1 (OK)
watchdog >=0.10.3                    :  2.1.7 (OK)
zmq >=17                             :  22.3.0 (OK)

# Optional:
cython >=0.21                        :  0.29.28 (OK)
matplotlib >=3.0.0                   :  3.5.1 (OK)
numpy >=1.7                          :  1.22.3 (OK)
pandas >=1.1.1                       :  1.4.2 (OK)
scipy >=0.17.0                       :  1.8.0 (OK)
sympy >=0.7.3                        :  1.10.1 (OK)

# Spyder plugins:
spyder_terminal.terminalplugin 1.2.2 :  1.2.2 (OK)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ccordoba12commented, May 4, 2022

The Run plugin’s dialog is modal, so I can’t quit Spyder while it is open.

Two things about that:

  1. If a dialog is modal, then it’s waiting for user input, so it’s normal to expect that Spyder can’t be closed when open. As a matter of fact, there are many modal dialogs in Spyder, so the Run dialog is just one more.
  2. This issue is only about the Preferences dialog, which is non-modal.
1reaction
dalthvizcommented, Apr 28, 2022

Just in case, I was able to reproduce this with Spyder 5.3.0 on the Windows installer too

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spyder hangs if you open the Issue reporter while Preferences ...
Open Spyder Open the Preferences dialog Open the Issue reporter via the help menu ... dialog doesn't appear, you can't close preferences or...
Read more >
Proper way to quit/exit a PyQt program - python - Stack Overflow
When the user cancels the login dialog, your example should just call sys.exit() to terminate the program. Otherwise, your program will just get...
Read more >
Frequently Asked Questions — Spyder 5 documentation
This will open the Preferences dialog in the Python interpreter section. Here, select the option Use the following Python interpreter, and use the...
Read more >
spyder-ide/public - Gitter
I have some code which uses widgets in IPython Notebooks. When running the code in Spyder I get: Widget Javascript not detected. It...
Read more >
IDLE — Python 3.11.1 documentation
Close the current window (if an unsaved editor, ask to save; if an unsaved ... Open a configuration dialog and change preferences for...
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