spyder: Spyder crashing immediately on opening

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)
    • [X ] 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

Spyder seems to crash if I open it via the start menu. It goes through the initial checks - “initializing, setting up main window, etc”.

What steps reproduce the problem?

  1. Trying to start Spyder.

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

I expect Spyder to open!

Paste Traceback/Error Below (if applicable)


If I open spyder from within conda, I get ...

(base) C:\Users\hammo>spyder

fromIccProfile: failed minimal tag size sanity
C:\Users\hammo\miniconda3\Lib\site-packages\paramiko\transport.py:219:
CryptographyDeprecationWarning: Blowfish has been deprecated
"class": algorithms.Blowfish,
Bad address (C:\ci\zeromq_1616055400030\work\src\epoll.cpp:100)
Traceback (most recent call last):
File "C:\Users\hammo\miniconda3\Lib\asyncio\windows_events.py", line
444, in select
self._poll(timeout)
RuntimeError: <_overlapped.Overlapped object at 0x000001B5DFF234B0>
still has pending operation at deallocation, the process may crash
Bad address (C:\ci\zeromq_1616055400030\work\src\epoll.cpp:100)
Traceback (most recent call last):
File "C:\Users\hammo\miniconda3\Lib\asyncio\windows_events.py", line
444, in select
Bad address (C:\ci\zeromq_1616055400030\work\src\epoll.cpp:100)
self._poll(timeout)
RuntimeError: <_overlapped.Overlapped object at 0x000001B5DFF23930>
still has pending operation at deallocation, the process may crash
Traceback (most recent call last):
File "C:\Users\hammo\miniconda3\Lib\asyncio\windows_events.py", line
444, in select
self._poll(timeout)
RuntimeError: <_overlapped.Overlapped object at 0x000001B5DFF234B0>
still has pending operation at deallocation, the process may crash
Traceback (most recent call last):
File "C:\Users\hammo\miniconda3\Lib\asyncio\windows_events.py", line
444, in select
self._poll(timeout)
RuntimeError: <_overlapped.Overlapped object at 0x000001B5DFF23930>
still has pending operation at deallocation, the process may crash
Traceback (most recent call last):
File "C:\Users\hammo\miniconda3\Lib\asyncio\windows_events.py", line
444, in select
self._poll(timeout)
RuntimeError: <_overlapped.Overlapped object at 0x000001B5DFF23930>
still has pending operation at deallocation, the process may crash
Traceback (most recent call last):
File "C:\Users\hammo\miniconda3\Lib\asyncio\windows_events.py", line
444, in select
self._poll(timeout)
RuntimeError: <_overlapped.Overlapped object at 0x000001B5DFF234B0>
still has pending operation at deallocation, the process may crash

Nothing to post

Versions

  • Spyder version: Version 5
  • Python version: 3.11
  • Qt version:
  • PyQt version:
  • Operating System name/version: Windows 10

Dependencies

Not sure how to post this as I cannot get to the Help menu and the dependencies (as it crashes before I can get there)

About this issue

  • Original URL
  • State: open
  • Created 7 months ago
  • Comments: 21 (8 by maintainers)

Most upvoted comments

@dalthviz, are you to reproduce this problem when creating a Python 3.11 env on Windows from defaults and conda-forge?

As mentioned at https://github.com/spyder-ide/spyder/issues/21610#issuecomment-1858512965 I tried creating an env with conda-forge packages and I was unable to reproduce this 🤔 Checked with defaults and I was able to launch Spyder without issue. Checked running the following:

conda create -n spyder-df-311 python=3.11 spyder

However, I got a stange message before the install could proceed (although maybe is due to some change I did in the pass to my base env Spyder install while testing something 🤔):

SafetyError: The package for spyder located at C:\Users\dalth\anaconda3\pkgs\spyder-5.4.3-py311haa95532_1
appears to be corrupted. The path 'Lib/site-packages/spyder/plugins/ipythonconsole/utils/kernelspec.py'
has an incorrect size.
  reported size: 7808 bytes
  actual size: 7848 bytes

ClobberError: This transaction has incompatible packages due to a shared path.
  packages: defaults/win-64::spyder-5.4.3-py311haa95532_1, defaults/win-64::spyder-5.4.3-py311haa95532_1
  path: 'menu/spyder_shortcut.json'

Just in case, the conda list output of the created env:

# packages in environment at C:\Users\dalth\anaconda3\envs\spyder-df-311:
#
# Name                    Version                   Build  Channel
alabaster                 0.7.12             pyhd3eb1b0_0
arrow                     1.2.3           py311haa95532_1
astroid                   2.14.2          py311haa95532_0
asttokens                 2.0.5              pyhd3eb1b0_0
atomicwrites              1.4.0                      py_0
attrs                     23.1.0          py311haa95532_0
autopep8                  1.6.0              pyhd3eb1b0_1
babel                     2.11.0          py311haa95532_0
backcall                  0.2.0              pyhd3eb1b0_0
bcrypt                    3.2.0           py311h2bbff1b_1
beautifulsoup4            4.12.2          py311haa95532_0
binaryornot               0.4.4              pyhd3eb1b0_1
black                     23.11.0         py311haa95532_0
bleach                    4.1.0              pyhd3eb1b0_0
brotli-python             1.0.9           py311hd77b12b_7
bzip2                     1.0.8                he774522_0
ca-certificates           2023.12.12           haa95532_0
certifi                   2023.11.17      py311haa95532_0
cffi                      1.16.0          py311h2bbff1b_0
chardet                   4.0.0           py311haa95532_1003
charset-normalizer        2.0.4              pyhd3eb1b0_0
click                     8.1.7           py311haa95532_0
cloudpickle               2.2.1           py311haa95532_0
colorama                  0.4.6           py311haa95532_0
comm                      0.1.2           py311haa95532_0
cookiecutter              2.5.0           py311haa95532_0
cryptography              41.0.7          py311h89fc84f_0
debugpy                   1.6.7           py311hd77b12b_0
decorator                 5.1.1              pyhd3eb1b0_0
defusedxml                0.7.1              pyhd3eb1b0_0
diff-match-patch          20200713           pyhd3eb1b0_0
dill                      0.3.7           py311haa95532_0
docstring-to-markdown     0.11            py311haa95532_0
docutils                  0.18.1          py311haa95532_3
executing                 0.8.3              pyhd3eb1b0_0
flake8                    6.0.0           py311haa95532_0
icu                       73.1                 h6c2663c_0
idna                      3.4             py311haa95532_0
imagesize                 1.4.1           py311haa95532_0
importlib-metadata        6.0.0           py311haa95532_0
importlib_metadata        6.0.0                hd3eb1b0_0
inflection                0.5.1           py311haa95532_0
intervaltree              3.1.0              pyhd3eb1b0_0
ipykernel                 6.25.0          py311h746a85d_0
ipython                   8.15.0          py311haa95532_0
ipython_genutils          0.2.0              pyhd3eb1b0_1
isort                     5.9.3              pyhd3eb1b0_0
jaraco.classes            3.2.1              pyhd3eb1b0_0
jedi                      0.18.1          py311haa95532_1
jellyfish                 1.0.1           py311h36a85e1_0
jinja2                    3.1.2           py311haa95532_0
jpeg                      9e                   h2bbff1b_1
jsonschema                4.19.2          py311haa95532_0
jsonschema-specifications 2023.7.1        py311haa95532_0
jupyter_client            8.6.0           py311haa95532_0
jupyter_core              5.5.0           py311haa95532_0
jupyterlab_pygments       0.2.2           py311haa95532_0
keyring                   23.13.1         py311haa95532_0
krb5                      1.20.1               h5b6d351_0
lazy-object-proxy         1.6.0           py311h2bbff1b_0
libclang                  14.0.6          default_hb5a9fac_1
libclang13                14.0.6          default_h8e68704_1
libffi                    3.4.4                hd77b12b_0
libpng                    1.6.39               h8cc25b3_0
libpq                     12.15                h906ac69_1
libsodium                 1.0.18               h62dcd97_0
libspatialindex           1.9.3                h6c2663c_0
lz4-c                     1.9.4                h2bbff1b_0
markdown-it-py            2.2.0           py311haa95532_1
markupsafe                2.1.1           py311h2bbff1b_0
matplotlib-inline         0.1.6           py311haa95532_0
mccabe                    0.7.0              pyhd3eb1b0_0
mdurl                     0.1.0           py311haa95532_0
mistune                   2.0.4           py311haa95532_0
more-itertools            10.1.0          py311haa95532_0
mypy_extensions           1.0.0           py311haa95532_0
nbclient                  0.8.0           py311haa95532_0
nbconvert                 7.10.0          py311haa95532_0
nbformat                  5.9.2           py311haa95532_0
nest-asyncio              1.5.6           py311haa95532_0
numpydoc                  1.5.0           py311haa95532_0
openssl                   3.0.12               h2bbff1b_0
packaging                 23.1            py311haa95532_0
pandocfilters             1.5.0              pyhd3eb1b0_0
paramiko                  2.8.1              pyhd3eb1b0_0
parso                     0.8.3              pyhd3eb1b0_0
pathspec                  0.10.3          py311haa95532_0
pexpect                   4.8.0              pyhd3eb1b0_3
pickleshare               0.7.5           pyhd3eb1b0_1003
pip                       23.3.1          py311haa95532_0
platformdirs              3.10.0          py311haa95532_0
pluggy                    1.0.0           py311haa95532_1
ply                       3.11            py311haa95532_0
prompt-toolkit            3.0.36          py311haa95532_0
psutil                    5.9.0           py311h2bbff1b_0
ptyprocess                0.7.0              pyhd3eb1b0_2
pure_eval                 0.2.2              pyhd3eb1b0_0
pycodestyle               2.10.0          py311haa95532_0
pycparser                 2.21               pyhd3eb1b0_0
pydocstyle                6.3.0           py311haa95532_0
pyflakes                  3.0.1           py311haa95532_0
pygments                  2.15.1          py311haa95532_1
pylint                    2.16.2          py311haa95532_0
pylint-venv               2.3.0           py311haa95532_0
pyls-spyder               0.4.0              pyhd3eb1b0_0
pynacl                    1.5.0           py311h8cc25b3_0
pyopenssl                 23.2.0          py311haa95532_0
pyqt                      5.15.10         py311hd77b12b_0
pyqt5-sip                 12.13.0         py311h2bbff1b_0
pyqtwebengine             5.15.10         py311hd77b12b_0
pysocks                   1.7.1           py311haa95532_0
python                    3.11.5               he1021f5_0
python-dateutil           2.8.2              pyhd3eb1b0_0
python-fastjsonschema     2.16.2          py311haa95532_0
python-lsp-black          1.2.1           py311haa95532_0
python-lsp-jsonrpc        1.0.0              pyhd3eb1b0_0
python-lsp-server         1.7.2           py311haa95532_0
python-slugify            5.0.2              pyhd3eb1b0_0
pytoolconfig              1.2.6           py311haa95532_0
pytz                      2023.3.post1    py311haa95532_0
pywin32                   305             py311h2bbff1b_0
pywin32-ctypes            0.2.0           py311haa95532_1000
pyyaml                    6.0.1           py311h2bbff1b_0
pyzmq                     25.1.0          py311hd77b12b_0
qdarkstyle                3.0.2              pyhd3eb1b0_0
qstylizer                 0.2.2           py311haa95532_0
qt-main                   5.15.2              h19c9488_10
qt-webengine              5.15.9               h5bd16bc_7
qtawesome                 1.2.2           py311haa95532_0
qtconsole                 5.4.2           py311haa95532_0
qtpy                      2.4.1           py311haa95532_0
referencing               0.30.2          py311haa95532_0
requests                  2.31.0          py311haa95532_0
rich                      13.3.5          py311haa95532_0
rope                      1.7.0           py311haa95532_0
rpds-py                   0.10.6          py311h062c2fa_0
rtree                     1.0.1           py311h2eaa2aa_0
setuptools                68.2.2          py311haa95532_0
sip                       6.7.12          py311hd77b12b_0
six                       1.16.0             pyhd3eb1b0_1
snowballstemmer           2.2.0              pyhd3eb1b0_0
sortedcontainers          2.4.0              pyhd3eb1b0_0
soupsieve                 2.5             py311haa95532_0
sphinx                    5.0.2           py311haa95532_0
sphinxcontrib-applehelp   1.0.2              pyhd3eb1b0_0
sphinxcontrib-devhelp     1.0.2              pyhd3eb1b0_0
sphinxcontrib-htmlhelp    2.0.0              pyhd3eb1b0_0
sphinxcontrib-jsmath      1.0.1              pyhd3eb1b0_0
sphinxcontrib-qthelp      1.0.3              pyhd3eb1b0_0
sphinxcontrib-serializinghtml 1.1.5              pyhd3eb1b0_0
spyder                    5.4.3           py311haa95532_1
spyder-kernels            2.4.4           py311haa95532_0
sqlite                    3.41.2               h2bbff1b_0
stack_data                0.2.0              pyhd3eb1b0_0
text-unidecode            1.3                pyhd3eb1b0_0
textdistance              4.2.1              pyhd3eb1b0_0
three-merge               0.1.1              pyhd3eb1b0_0
tinycss2                  1.2.1           py311haa95532_0
tk                        8.6.12               h2bbff1b_0
toml                      0.10.2             pyhd3eb1b0_0
tomlkit                   0.11.1          py311haa95532_0
tornado                   6.3.3           py311h2bbff1b_0
traitlets                 5.7.1           py311haa95532_0
tzdata                    2023c                h04d1e81_0
ujson                     5.4.0           py311hd77b12b_0
unidecode                 1.2.0              pyhd3eb1b0_0
urllib3                   1.26.18         py311haa95532_0
vc                        14.2                 h21ff451_1
vs2015_runtime            14.27.29016          h5e58377_2
watchdog                  2.1.6           py311haa95532_0
wcwidth                   0.2.5              pyhd3eb1b0_0
webencodings              0.5.1           py311haa95532_1
whatthepatch              1.0.2           py311haa95532_0
wheel                     0.41.2          py311haa95532_0
win_inet_pton             1.1.0           py311haa95532_0
wrapt                     1.14.1          py311h2bbff1b_0
xz                        5.4.5                h8cc25b3_0
yaml                      0.2.5                he774522_0
yapf                      0.31.0             pyhd3eb1b0_0
zeromq                    4.3.4                hd77b12b_0
zipp                      3.11.0          py311haa95532_0
zlib                      1.2.13               h8cc25b3_0
zstd                      1.5.5                hd43e919_0