spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.32k stars 1.61k forks source link

Error ocurred while starting the kernel #21364

Closed vdebenay closed 1 year ago

vdebenay commented 1 year ago

Description

What steps will reproduce the problem?

Launch spyder from the (base) conda environment while using C:/Anaconda3/envs/mne/python.exe as the Python interpreter.

Versions

Dependencies

# Mandatory:
atomicwrites >=1.2.0                                                        :  1.4.1 (OK)
chardet >=2.0.0                                                             :  5.2.0 (OK)
cloudpickle >=0.5.0                                                         :  2.2.1 (OK)
cookiecutter >=1.6.0                                                        :  2.3.0 (OK)
diff_match_patch >=20181111                                                 :  20230430 (OK)
intervaltree >=3.0.2                                                        :  3.1.0 (OK)
IPython >=7.31.1,<9.0.0,!=8.8.0,!=8.9.0,!=8.10.0,!=8.11.0,!=8.12.0,!=8.12.1 :  8.15.0 (OK)
jedi >=0.17.2,<0.19.0                                                       :  0.18.2 (OK)
jellyfish >=0.7                                                             :  1.0.1 (OK)
jsonschema >=3.2.0                                                          :  4.19.1 (OK)
keyring >=17.0.0                                                            :  24.2.0 (OK)
nbconvert >=4.0                                                             :  7.8.0 (OK)
numpydoc >=0.6.0                                                            :  1.5.0 (OK)
paramiko >=2.4.0                                                            :  3.3.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.5 (OK)
pygments >=2.0                                                              :  2.16.1 (OK)
pylint >=2.5.0,<3.0                                                         :  2.17.5 (OK)
pylint_venv >=3.0.2                                                         :  3.0.2 (OK)
pyls_spyder >=0.4.0                                                         :  0.4.0 (OK)
pylsp >=1.7.4,<1.8.0                                                        :  1.7.4 (OK)
pylsp_black >=1.2.0,<3.0.0                                                  :  1.3.0 (OK)
qdarkstyle >=3.0.2,<3.2.0                                                   :  3.1 (OK)
qstylizer >=0.2.2                                                           :  0.2.2 (OK)
qtawesome >=1.2.1                                                           :  1.2.3 (OK)
qtconsole >=5.4.2,<5.5.0                                                    :  5.4.4 (OK)
qtpy >=2.1.0                                                                :  2.4.0 (OK)
rtree >=0.9.7                                                               :  1.0.1 (OK)
setuptools >=49.6.0                                                         :  68.2.2 (OK)
sphinx >=0.6.6                                                              :  7.2.6 (OK)
spyder_kernels >=2.4.4,<2.5.0                                               :  2.4.4 (OK)
textdistance >=4.2.0                                                        :  4.5.0 (OK)
three_merge >=0.1.1                                                         :  0.1.1 (OK)
watchdog >=0.10.3                                                           :  3.0.0 (OK)
zmq >=22.1.0                                                                :  25.1.1 (OK)

# Optional:
cython >=0.21                                                               :  None (NOK)
matplotlib >=3.0.0                                                          :  3.8.0 (OK)
numpy >=1.7                                                                 :  1.24.3 (OK)
pandas >=1.1.1                                                              :  2.1.1 (OK)
scipy >=0.17.0                                                              :  1.11.2 (OK)
sympy >=0.7.3                                                               :  1.12 (OK)

Environment

Environment ``` # packages in environment at C:\Anaconda3\envs\mne: # # Name Version Build Channel aiohttp 3.8.5 py311ha68e1ae_0 conda-forge aiosignal 1.3.1 pyhd8ed1ab_0 conda-forge anyio 4.0.0 pyhd8ed1ab_0 conda-forge aom 3.5.0 h63175ca_0 conda-forge argon2-cffi 23.1.0 pyhd8ed1ab_0 conda-forge argon2-cffi-bindings 21.2.0 py311ha68e1ae_3 conda-forge arrow 1.2.3 pyhd8ed1ab_0 conda-forge asttokens 2.4.0 pyhd8ed1ab_0 conda-forge async-lru 2.0.4 pyhd8ed1ab_0 conda-forge async-timeout 4.0.3 pyhd8ed1ab_0 conda-forge attrs 23.1.0 pyh71513ae_1 conda-forge babel 2.12.1 pyhd8ed1ab_1 conda-forge backcall 0.2.0 pyh9f0ad1d_0 conda-forge backports 1.1 pyhd3eb1b0_0 backports.functools_lru_cache 1.6.5 pyhd8ed1ab_0 conda-forge beautifulsoup4 4.12.2 pyha770c72_0 conda-forge bleach 6.0.0 pyhd8ed1ab_0 conda-forge blosc 1.21.5 hdccc3a2_0 conda-forge brotli 1.1.0 hcfcfb64_0 conda-forge brotli-bin 1.1.0 hcfcfb64_0 conda-forge brotli-python 1.1.0 py311h12c1d0e_0 conda-forge brotlipy 0.7.0 py311ha68e1ae_1005 conda-forge bzip2 1.0.8 h8ffe710_4 conda-forge c-blosc2 2.10.2 h183a6f4_0 conda-forge ca-certificates 2023.08.22 haa95532_0 cached-property 1.5.2 hd8ed1ab_1 conda-forge certifi 2023.7.22 pyhd8ed1ab_0 conda-forge cffi 1.15.1 py311ha68e1ae_5 conda-forge charls 2.4.2 h1537add_0 conda-forge charset-normalizer 3.2.0 pyhd8ed1ab_0 conda-forge clang_variant 1.0 default conda-forge clangdev 5.0.0 h5aa907a_1012 conda-forge cloudpickle 2.2.1 pyhd8ed1ab_0 conda-forge colorama 0.4.6 pyhd8ed1ab_0 conda-forge colorspacious 1.1.2 pyh24bf2e0_0 conda-forge comm 0.1.4 pyhd8ed1ab_0 conda-forge contourpy 1.1.1 py311h005e61a_0 conda-forge cryptography 41.0.4 py311h28e9c30_0 conda-forge cycler 0.11.0 pyhd8ed1ab_0 conda-forge darkdetect 0.8.0 pyhd8ed1ab_0 conda-forge dav1d 1.2.1 hcfcfb64_0 conda-forge debugpy 1.8.0 py311h12c1d0e_0 conda-forge decorator 5.1.1 pyhd8ed1ab_0 conda-forge defusedxml 0.7.1 pyhd8ed1ab_0 conda-forge deprecated 1.2.14 pyh1a96a4e_0 conda-forge dipy 1.7.0 py311h6912e1f_0 conda-forge double-conversion 3.3.0 h63175ca_0 conda-forge edflib-python 1.0.8 pyhd8ed1ab_0 conda-forge eeglabio 0.0.2.post4 pyhd8ed1ab_0 conda-forge eigen 3.4.0 h91493d7_0 conda-forge entrypoints 0.4 pyhd8ed1ab_0 conda-forge exceptiongroup 1.1.3 pyhd8ed1ab_0 conda-forge executing 1.2.0 pyhd8ed1ab_0 conda-forge expat 2.5.0 h63175ca_1 conda-forge ffmpeg 6.0.0 gpl_h1f67d4f_104 conda-forge font-ttf-dejavu-sans-mono 2.37 hab24e00_0 conda-forge font-ttf-inconsolata 3.000 h77eed37_0 conda-forge font-ttf-source-code-pro 2.038 h77eed37_0 conda-forge font-ttf-ubuntu 0.83 hab24e00_0 conda-forge fontconfig 2.14.2 hbde0cde_0 conda-forge fonts-anaconda 1 h8fa9717_0 fonts-conda-ecosystem 1 0 conda-forge fonts-conda-forge 1 0 conda-forge fonttools 4.42.1 py311ha68e1ae_0 conda-forge fqdn 1.5.1 pyhd8ed1ab_0 conda-forge freetype 2.12.1 hdaf720e_2 conda-forge frozenlist 1.4.0 py311ha68e1ae_0 conda-forge future 0.18.3 pyhd8ed1ab_0 conda-forge gettext 0.21.1 h5728263_0 conda-forge giflib 5.2.1 h64bf75a_3 conda-forge gl2ps 1.4.2 h0597ee9_0 conda-forge glew 2.1.0 h39d44d4_2 conda-forge glib 2.78.0 h12be248_0 conda-forge glib-tools 2.78.0 h12be248_0 conda-forge gst-plugins-base 1.22.6 h001b923_0 conda-forge gstreamer 1.22.6 hb4038d2_0 conda-forge h5io 0.1.9 pyh7448d05_0 conda-forge h5py 3.9.0 nompi_py311hc8b35be_101 conda-forge hdf4 4.2.15 h1334946_6 conda-forge hdf5 1.14.1 nompi_h73e8ff5_100 conda-forge icu 72.1 h63175ca_0 conda-forge idna 3.4 pyhd8ed1ab_0 conda-forge imagecodecs 2023.9.4 py311hbc0632a_0 conda-forge imageio 2.31.1 pyh24c5eb1_0 conda-forge imageio-ffmpeg 0.4.9 pyhd8ed1ab_0 conda-forge importlib-metadata 6.8.0 pyha770c72_0 conda-forge importlib_metadata 6.8.0 hd8ed1ab_0 conda-forge importlib_resources 6.0.1 pyhd8ed1ab_0 conda-forge ipykernel 6.25.2 pyh60829e3_0 conda-forge ipython 8.15.0 pyh5737063_0 conda-forge ipython_genutils 0.2.0 py_1 conda-forge ipywidgets 8.1.1 pyhd8ed1ab_0 conda-forge isoduration 20.11.0 pyhd8ed1ab_0 conda-forge jedi 0.19.0 pyhd8ed1ab_0 conda-forge jinja2 3.1.2 pyhd8ed1ab_1 conda-forge joblib 1.3.2 pyhd8ed1ab_0 conda-forge json5 0.9.14 pyhd8ed1ab_0 conda-forge jsoncpp 1.9.5 h2d74725_1 conda-forge jsonpointer 2.4 py311h1ea47a8_2 conda-forge jsonschema 4.19.1 pyhd8ed1ab_0 conda-forge jsonschema-specifications 2023.7.1 pyhd8ed1ab_0 conda-forge jsonschema-with-format-nongpl 4.19.1 pyhd8ed1ab_0 conda-forge jupyter 1.0.0 py311h1ea47a8_8 conda-forge jupyter-lsp 2.2.0 pyhd8ed1ab_0 conda-forge jupyter_client 8.3.1 pyhd8ed1ab_0 conda-forge jupyter_console 6.6.3 pyhd8ed1ab_0 conda-forge jupyter_core 5.3.1 py311h1ea47a8_0 conda-forge jupyter_events 0.7.0 pyhd8ed1ab_2 conda-forge jupyter_server 2.7.3 pyhd8ed1ab_0 conda-forge jupyter_server_terminals 0.4.4 pyhd8ed1ab_1 conda-forge jupyterlab 4.0.6 pyhd8ed1ab_0 conda-forge jupyterlab_pygments 0.2.2 pyhd8ed1ab_0 conda-forge jupyterlab_server 2.25.0 pyhd8ed1ab_0 conda-forge jupyterlab_widgets 3.0.9 pyhd8ed1ab_0 conda-forge jxrlib 1.1 h8ffe710_2 conda-forge kiwisolver 1.4.5 py311h005e61a_0 conda-forge krb5 1.20.1 heb0366b_0 conda-forge lazy_loader 0.3 pyhd8ed1ab_0 conda-forge lcms2 2.15 h3e3b177_1 conda-forge lerc 4.0.0 h63175ca_0 conda-forge libaec 1.0.6 h63175ca_1 conda-forge libavif 1.0.1 h29d3e55_1 conda-forge libblas 3.9.0 18_win64_openblas conda-forge libbrotlicommon 1.1.0 hcfcfb64_0 conda-forge libbrotlidec 1.1.0 hcfcfb64_0 conda-forge libbrotlienc 1.1.0 hcfcfb64_0 conda-forge libcblas 3.9.0 18_win64_openblas conda-forge libclang 16.0.6 default_heb8d277_1 conda-forge libclang13 16.0.6 default_hc80b9e7_1 conda-forge libcurl 8.1.2 h68f0423_0 conda-forge libdeflate 1.18 hcfcfb64_0 conda-forge libexpat 2.5.0 h63175ca_1 conda-forge libffi 3.4.4 hd77b12b_0 libflang 5.0.0 h6538335_20180525 conda-forge libglib 2.78.0 he8f3873_0 conda-forge libhwloc 2.9.2 default_haede6df_1009 conda-forge libiconv 1.17 h8ffe710_0 conda-forge libjpeg-turbo 2.1.5.1 hcfcfb64_1 conda-forge liblapack 3.9.0 18_win64_openblas conda-forge libmatio 1.5.23 h13b7530_3 conda-forge libnetcdf 4.9.2 nompi_h5902ca5_107 conda-forge libogg 1.3.5 h2bbff1b_1 libopenblas 0.3.24 pthreads_hc140b1d_0 conda-forge libopus 1.3.1 h8ffe710_1 conda-forge libpng 1.6.39 h19919ed_0 conda-forge libsodium 1.0.18 h8d14728_1 conda-forge libsqlite 3.43.0 hcfcfb64_0 conda-forge libssh2 1.11.0 h7dfc565_0 conda-forge libtheora 1.1.1 h8d14728_1005 conda-forge libtiff 4.5.1 h6c8260b_1 conda-forge libvorbis 1.3.7 h0e60522_0 conda-forge libwebp-base 1.3.2 hcfcfb64_0 conda-forge libxcb 1.15 hcd874cb_0 conda-forge libxml2 2.11.5 hc3477c8_1 conda-forge libxslt 1.1.37 h6070c61_1 conda-forge libzip 1.10.1 h1d365fa_3 conda-forge libzlib 1.2.13 hcfcfb64_5 conda-forge libzopfli 1.0.3 h0e60522_0 conda-forge llvm-meta 13.0.1 hd8ed1ab_0 conda-forge llvmlite 0.40.1 py311h5bc0dda_0 conda-forge loguru 0.7.2 py311h1ea47a8_0 conda-forge lxml 4.9.3 py311h750ae06_0 conda-forge lz4-c 1.9.4 hcfcfb64_0 conda-forge m2w64-gcc-libgfortran 5.3.0 6 conda-forge m2w64-gcc-libs 5.3.0 7 conda-forge m2w64-gcc-libs-core 5.3.0 7 conda-forge m2w64-gmp 6.1.0 2 conda-forge m2w64-libwinpthread-git 5.0.0.4634.697f757 2 conda-forge markupsafe 2.1.3 py311ha68e1ae_1 conda-forge matplotlib 3.8.0 py311h1ea47a8_1 conda-forge matplotlib-base 3.8.0 py311h6e989c2_1 conda-forge matplotlib-inline 0.1.6 pyhd8ed1ab_0 conda-forge mffpy 0.8.0 pyhd8ed1ab_0 conda-forge mistune 3.0.1 pyhd8ed1ab_0 conda-forge mne 1.5.1 h57928b3_0 conda-forge mne-base 1.5.1 pyh57928b3_0 conda-forge mne-bids 0.13 pyhd8ed1ab_0 conda-forge mne-qt-browser 0.5.2 pyha770c72_0 conda-forge msys2-conda-epoch 20160418 1 conda-forge multidict 6.0.4 py311ha68e1ae_0 conda-forge munkres 1.1.4 pyh9f0ad1d_0 conda-forge nbclient 0.8.0 pyhd8ed1ab_0 conda-forge nbconvert 7.8.0 pyhd8ed1ab_0 conda-forge nbconvert-core 7.8.0 pyhd8ed1ab_0 conda-forge nbconvert-pandoc 7.8.0 pyhd8ed1ab_0 conda-forge nbformat 5.9.2 pyhd8ed1ab_0 conda-forge nest-asyncio 1.5.6 pyhd8ed1ab_0 conda-forge networkx 3.1 pyhd8ed1ab_0 conda-forge nibabel 5.1.0 py311h1ea47a8_2 conda-forge nilearn 0.10.1 pyhd8ed1ab_0 conda-forge nlohmann_json 3.11.2 h39d44d4_0 conda-forge nomkl 1.0 h5ca1d4c_0 conda-forge notebook 7.0.4 pyhd8ed1ab_0 conda-forge notebook-shim 0.2.3 pyhd8ed1ab_0 conda-forge numba 0.57.1 py311h2c0921f_0 conda-forge numexpr 2.8.4 py311h0aebda5_101 conda-forge numpy 1.24.4 py311h0b4df5a_0 conda-forge openh264 2.3.1 h63175ca_2 conda-forge openjpeg 2.5.0 ha2aaf27_2 conda-forge openmeeg 2.5.6 py311h953547f_1 conda-forge openmp 5.0.0 vc14_0 conda-forge openssl 3.1.3 hcfcfb64_0 conda-forge overrides 7.4.0 pyhd8ed1ab_0 conda-forge packaging 23.1 pyhd8ed1ab_0 conda-forge pandas 2.1.1 py311hf63dbb6_0 conda-forge pandoc 3.1.3 h57928b3_0 conda-forge pandocfilters 1.5.0 pyhd8ed1ab_0 conda-forge parso 0.8.3 pyhd8ed1ab_0 conda-forge patsy 0.5.3 pyhd8ed1ab_0 conda-forge pcre2 10.40 h17e33f8_0 conda-forge pickleshare 0.7.5 py_1003 conda-forge pillow 10.0.0 py311hde623f7_0 conda-forge pip 23.2.1 pyhd8ed1ab_0 conda-forge pkgutil-resolve-name 1.3.10 pyhd8ed1ab_1 conda-forge platformdirs 3.10.0 pyhd8ed1ab_0 conda-forge ply 3.11 py_1 conda-forge pooch 1.7.0 pyha770c72_3 conda-forge proj 9.2.1 h660b3b0_0 conda-forge prometheus_client 0.17.1 pyhd8ed1ab_0 conda-forge prompt-toolkit 3.0.39 pyha770c72_0 conda-forge prompt_toolkit 3.0.39 hd8ed1ab_0 conda-forge psutil 5.9.5 py311ha68e1ae_1 conda-forge pthread-stubs 0.4 hcd874cb_1001 conda-forge pthreads-win32 2.9.1 hfa6e2cd_3 conda-forge pugixml 1.13 h63175ca_1 conda-forge pure_eval 0.2.2 pyhd8ed1ab_0 conda-forge py-cpuinfo 9.0.0 pyhd8ed1ab_0 conda-forge pybv 0.7.5 pyhd8ed1ab_0 conda-forge pycparser 2.21 pyhd8ed1ab_0 conda-forge pygments 2.16.1 pyhd8ed1ab_0 conda-forge pymatreader 0.0.32 pyhd8ed1ab_0 conda-forge pyopengl 3.1.6 pyhd8ed1ab_1 conda-forge pyopenssl 23.2.0 pyhd8ed1ab_1 conda-forge pyparsing 3.1.1 pyhd8ed1ab_0 conda-forge pyqt 5.15.9 py311h125bc19_4 conda-forge pyqt5-sip 12.12.2 py311h12c1d0e_4 conda-forge pyqtgraph 0.13.3 pyhd8ed1ab_0 conda-forge pysocks 1.7.1 pyh0701188_6 conda-forge pytables 3.8.0 py311h8fc43b8_2 conda-forge python 3.11.5 h2628c8c_0_cpython conda-forge python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge python-fastjsonschema 2.18.0 pyhd8ed1ab_0 conda-forge python-json-logger 2.0.7 pyhd8ed1ab_0 conda-forge python-picard 0.7 pyh8a188c0_0 conda-forge python-tzdata 2023.3 pyhd8ed1ab_0 conda-forge python_abi 3.11 4_cp311 conda-forge pytz 2023.3.post1 pyhd8ed1ab_0 conda-forge pyvista 0.42.2 pyhd8ed1ab_0 conda-forge pyvistaqt 0.11.0 pyhd8ed1ab_0 conda-forge pywavelets 1.4.1 py311h59ca53f_0 conda-forge pywin32 305 py311h2bbff1b_0 pywinpty 2.0.11 py311h12c1d0e_0 conda-forge pyyaml 6.0.1 py311ha68e1ae_1 conda-forge pyzmq 25.1.1 py311h7b3f143_0 conda-forge qdarkstyle 3.1 pyhd8ed1ab_0 conda-forge qt-main 5.15.8 h2c8576c_12 conda-forge qtconsole 5.4.4 pyhd8ed1ab_0 conda-forge qtconsole-base 5.4.4 pyha770c72_0 conda-forge qtpy 2.4.0 pyhd8ed1ab_0 conda-forge rav1e 0.6.6 h975169c_2 conda-forge referencing 0.30.2 pyhd8ed1ab_0 conda-forge requests 2.31.0 pyhd8ed1ab_0 conda-forge rfc3339-validator 0.1.4 pyhd8ed1ab_0 conda-forge rfc3986-validator 0.1.1 pyh9f0ad1d_0 conda-forge rpds-py 0.10.3 py311hc37eb10_0 conda-forge scikit-image 0.21.0 py311h12c1d0e_0 conda-forge scikit-learn 1.3.1 py311h142b183_0 conda-forge scipy 1.11.2 py311h37ff6ca_1 conda-forge scooby 0.7.2 pyhd8ed1ab_0 conda-forge seaborn 0.12.2 hd8ed1ab_0 conda-forge send2trash 1.8.2 pyh08f2357_0 conda-forge setuptools 68.2.2 pyhd8ed1ab_0 conda-forge sip 6.7.11 py311h12c1d0e_0 conda-forge six 1.16.0 pyh6c4a22f_0 conda-forge snappy 1.1.10 hfb803bf_0 conda-forge sniffio 1.3.0 pyhd8ed1ab_0 conda-forge soupsieve 2.5 pyhd8ed1ab_1 conda-forge spyder-kernels 2.4.4 win_pyh7428d3b_0 conda-forge sqlite 3.43.0 hcfcfb64_0 conda-forge stack_data 0.6.2 pyhd8ed1ab_0 conda-forge statsmodels 0.14.0 py311h59ca53f_1 conda-forge svt-av1 1.7.0 h63175ca_0 conda-forge tbb 2021.10.0 h91493d7_0 conda-forge tbb-devel 2021.10.0 h91493d7_0 conda-forge terminado 0.17.1 py311haa95532_0 threadpoolctl 3.2.0 pyha21a80b_0 conda-forge tifffile 2023.9.18 pyhd8ed1ab_0 conda-forge tinycss2 1.2.1 pyhd8ed1ab_0 conda-forge tk 8.6.12 h8ffe710_0 conda-forge toml 0.10.2 pyhd8ed1ab_0 conda-forge tomli 2.0.1 pyhd8ed1ab_0 conda-forge tornado 6.3.3 py311ha68e1ae_1 conda-forge tqdm 4.66.1 pyhd8ed1ab_0 conda-forge traitlets 5.10.0 pyhd8ed1ab_0 conda-forge trame 3.2.6 pyhd8ed1ab_0 conda-forge trame-client 2.11.3 pyhd8ed1ab_0 conda-forge trame-components 2.2.1 pyhd8ed1ab_0 conda-forge trame-deckgl 2.0.2 pyhd8ed1ab_0 conda-forge trame-markdown 2.0.2 pyhd8ed1ab_0 conda-forge trame-matplotlib 2.0.2 pyhd8ed1ab_0 conda-forge trame-plotly 2.1.1 pyhd8ed1ab_0 conda-forge trame-rca 0.3.1 pyhd8ed1ab_0 conda-forge trame-router 2.1.0 pyhd8ed1ab_0 conda-forge trame-server 2.11.7 pyhd8ed1ab_0 conda-forge trame-simput 2.3.3 pyhd8ed1ab_0 conda-forge trame-vega 2.0.3 pyhd8ed1ab_0 conda-forge trame-vtk 2.5.8 pyhd8ed1ab_0 conda-forge trame-vuetify 2.3.1 pyhd8ed1ab_0 conda-forge typing-extensions 4.8.0 hd8ed1ab_0 conda-forge typing_extensions 4.8.0 pyha770c72_0 conda-forge typing_utils 0.1.0 pyhd8ed1ab_0 conda-forge tzdata 2023c h71feb2d_0 conda-forge ucrt 10.0.22621.0 h57928b3_0 conda-forge uri-template 1.3.0 pyhd8ed1ab_0 conda-forge urllib3 2.0.5 pyhd8ed1ab_0 conda-forge utfcpp 3.2.4 h57928b3_0 conda-forge vc 14.3 h64f974e_17 conda-forge vc14_runtime 14.36.32532 hdcecf7f_17 conda-forge vs2015_runtime 14.36.32532 h05e6639_17 conda-forge vtk 9.2.6 qt_py311h1234567_210 conda-forge vtk-base 9.2.6 qt_py311h1234567_210 conda-forge wcwidth 0.2.6 pyhd8ed1ab_0 conda-forge webcolors 1.13 pyhd8ed1ab_0 conda-forge webencodings 0.5.1 pyhd8ed1ab_2 conda-forge websocket-client 1.6.3 pyhd8ed1ab_0 conda-forge wheel 0.41.2 pyhd8ed1ab_0 conda-forge widgetsnbextension 4.0.9 pyhd8ed1ab_0 conda-forge win32_setctime 1.1.0 pyhd8ed1ab_0 conda-forge win_inet_pton 1.1.0 pyhd8ed1ab_6 conda-forge winpty 0.4.3 4 conda-forge wrapt 1.15.0 py311ha68e1ae_0 conda-forge wslink 1.11.4 pyhd8ed1ab_0 conda-forge x264 1!164.3095 h8ffe710_2 conda-forge x265 3.5 h2d74725_3 conda-forge xlrd 2.0.1 pyhd8ed1ab_3 conda-forge xmltodict 0.13.0 pyhd8ed1ab_0 conda-forge xorg-libxau 1.0.11 hcd874cb_0 conda-forge xorg-libxdmcp 1.1.3 hcd874cb_0 conda-forge xz 5.4.2 h8cc25b3_0 yaml 0.2.5 h8ffe710_2 conda-forge yarl 1.9.2 py311ha68e1ae_0 conda-forge zeromq 4.3.4 h0e60522_1 conda-forge zfp 1.0.0 h63175ca_3 conda-forge zipp 3.17.0 pyhd8ed1ab_0 conda-forge zlib 1.2.13 hcfcfb64_5 conda-forge zlib-ng 2.0.7 hcfcfb64_0 conda-forge zstd 1.5.5 h12be248_0 conda-forge ```
vdebenay commented 1 year ago

Here is the error message I get:

An error ocurred while starting the kernel Traceback (most recent call last): File "C:\Anaconda3\envs\mne\Lib\site‑packages\spyder_kernels\console__main__.py", line 24, in start.main() File "C:\Anaconda3\envs\mne\Lib\site‑packages\spyder_kernels\console\start.py", line 318, in main kernel.initialize() File "C:\Anaconda3\envs\mne\Lib\site‑packages\traitlets\config\application.py", line 113, in inner return method(app, *args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Anaconda3\envs\mne\Lib\site‑packages\ipykernel\kernelapp.py", line 689, in initialize self.init_sockets() File "C:\Anaconda3\envs\mne\Lib\site‑packages\ipykernel\kernelapp.py", line 328, in init_sockets self.shell_port = self._bind_socket(self.shell_socket, self.shell_port) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Anaconda3\envs\mne\Lib\site‑packages\ipykernel\kernelapp.py", line 252, in _bind_socket return self._try_bind_socket(s, port) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Anaconda3\envs\mne\Lib\site‑packages\ipykernel\kernelapp.py", line 228, in _try_bind_socket s.bind("tcp://%s:%i" % (self.ip, port)) File "C:\Anaconda3\envs\mne\Lib\site‑packages\zmq\sugar\socket.py", line 302, in bind super().bind(addr) File "zmq/backend/cython/socket.pyx", line 564, in zmq.backend.cython.socket.Socket.bind File "zmq/backend/cython/checkrc.pxd", line 28, in zmq.backend.cython.checkrc._check_rc zmq.error.ZMQError: Address in use (addr='tcp://127.0.0.1:60974') Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Anaconda3\envs\mne\Lib\site‑packages\spyder_kernels\console__main__.py", line 24, in start.main() File "C:\Anaconda3\envs\mne\Lib\site‑packages\spyder_kernels\console\start.py", line 318, in main kernel.initialize() File "C:\Anaconda3\envs\mne\Lib\site‑packages\traitlets\config\application.py", line 113, in inner return method(app, args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Anaconda3\envs\mne\Lib\site‑packages\ipykernel\kernelapp.py", line 689, in initialize self.init_sockets() File "C:\Anaconda3\envs\mne\Lib\site‑packages\ipykernel\kernelapp.py", line 328, in init_sockets self.shell_port = self._bind_socket(self.shell_socket, self.shell_port) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Anaconda3\envs\mne\Lib\site‑packages\ipykernel\kernelapp.py", line 252, in _bind_socket return self._try_bind_socket(s, port) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Anaconda3\envs\mne\Lib\site‑packages\ipykernel\kernelapp.py", line 228, in _try_bind_socket s.bind("tcp://%s:%i" % (self.ip, port)) File "C:\Anaconda3\envs\mne\Lib\site‑packages\zmq\sugar\socket.py", line 302, in bind super().bind(addr) File "zmq/backend/cython/socket.pyx", line 564, in zmq.backend.cython.socket.Socket.bind File "zmq/backend/cython/checkrc.pxd", line 28, in zmq.backend.cython.checkrc._check_rc zmq.error.ZMQError: Address in use (addr='tcp://127.0.0.1:60974')

ccordoba12 commented 1 year ago

Hey @vdebenay, thanks for reporting. This could be caused by your firewall, VPN and/or antivirus. Please disable them and try again.

vdebenay commented 1 year ago

Hello @ccordoba12, thank you for your time. As you asked, I disabled my Windows Defender firewall, my antivirus software and my VPN. Unfortunately, I still get the same error message in my console. Please find below the new error message I get after opening a new console :

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

Best,

ccordoba12 commented 1 year ago

Thanks @vdebenay! That's not good news because the main issue you're having is this one:

zmq.error.ZMQError: Address in use (addr='tcp://127.0.0.1:60974')

That means that the port selected to create a connection to (which is necessary for our consoles) is not available when the connection is tried to be established.

Does Spyder work for you if you use the Default option in Preferences > Python Interpreter?

vdebenay commented 1 year ago

Yes, Spyder works fine when setting the 'Default' option. But my problem is that the packages I need for the program I am currently working on to run are located in the 'mne' conda environment, which differs from the one (base) I launch Spyder from. I have done things this way, since it is what's indicated in the MNE-Python toolbox setup instructions. Best,

ccordoba12 commented 1 year ago

Ok, I see. Let's poke a little bit with the code in your environment to see if that solves the issue. For that, please open this file in a text editor (e.g. Notepad++ or Spyder):

C:\Anaconda3\envs\mne\Lib\site‑packages\ipykernel\kernelapp.py

Then go to line 225, which should be

if port <= 0:

and change it to be

if False:

Finally, close Spyder (if you have it open) and start it again.

Maybe that will solve your problem, but I'm not really sure.

vdebenay commented 1 year ago

So I modified the line 225 of the kernelapp.py file, then I launched Spyder. Spyder starts up without issues. As the "Default" Python interpreter was set, I selected C:/Anaconda3/envs/mne/python.exe instead. Then I opened a second console, and once again the same error message appears:

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

ccordoba12 commented 1 year ago

and once again the same error message appears:

Ok, but that's just a warning. The important questions are: is the initial error avoided? and, are you able to use a console connect to your mne environment without problems?

vdebenay commented 1 year ago

Alright, so Question 1:

is the initial error avoided?

After launching Spyder from my (base) conda env and selecting C:/Anaconda3/envs/mne/python.exe as the Python interpreter, I restart Console 1/A:

Python 3.11.5 | packaged by conda-forge | (main, Aug 27 2023, 03:23:48) [MSC v.1936 64 bit (AMD64)] Type "copyright", "credits" or "license" for more information. IPython 8.15.0 -- An enhanced Interactive Python. Restarting kernel...

About 30 seconds later, the warning message appears:

[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

At this moment, I can't do anything in Console 1/A, so I launch a second Console 2/A. Immediately, the initial error appears in Console 2/A:

Traceback (most recent call last): File "C:\Anaconda3\envs\mne\Lib\site‑packages\spyder_kernels\console__main__.py", line 24, in start.main() File "C:\Anaconda3\envs\mne\Lib\site‑packages\spyder_kernels\console\start.py", line 318, in main kernel.initialize() File "C:\Anaconda3\envs\mne\Lib\site‑packages\traitlets\config\application.py", line 113, in inner return method(app, *args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Anaconda3\envs\mne\Lib\site‑packages\ipykernel\kernelapp.py", line 689, in initialize self.init_sockets() File "C:\Anaconda3\envs\mne\Lib\site‑packages\ipykernel\kernelapp.py", line 328, in init_sockets self.shell_port = self._bind_socket(self.shell_socket, self.shell_port) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Anaconda3\envs\mne\Lib\site‑packages\ipykernel\kernelapp.py", line 252, in _bind_socket return self._try_bind_socket(s, port) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Anaconda3\envs\mne\Lib\site‑packages\ipykernel\kernelapp.py", line 228, in _try_bind_socket s.bind("tcp://%s:%i" % (self.ip, port)) File "C:\Anaconda3\envs\mne\Lib\site‑packages\zmq\sugar\socket.py", line 302, in bind super().bind(addr) File "zmq/backend/cython/socket.pyx", line 564, in zmq.backend.cython.socket.Socket.bind File "zmq/backend/cython/checkrc.pxd", line 28, in zmq.backend.cython.checkrc._check_rc zmq.error.ZMQError: Address in use (addr='tcp://127.0.0.1:60974') Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Anaconda3\envs\mne\Lib\site‑packages\spyder_kernels\console__main__.py", line 24, in start.main() File "C:\Anaconda3\envs\mne\Lib\site‑packages\spyder_kernels\console\start.py", line 318, in main kernel.initialize() File "C:\Anaconda3\envs\mne\Lib\site‑packages\traitlets\config\application.py", line 113, in inner return method(app, args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Anaconda3\envs\mne\Lib\site‑packages\ipykernel\kernelapp.py", line 689, in initialize self.init_sockets() File "C:\Anaconda3\envs\mne\Lib\site‑packages\ipykernel\kernelapp.py", line 328, in init_sockets self.shell_port = self._bind_socket(self.shell_socket, self.shell_port) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Anaconda3\envs\mne\Lib\site‑packages\ipykernel\kernelapp.py", line 252, in _bind_socket return self._try_bind_socket(s, port) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Anaconda3\envs\mne\Lib\site‑packages\ipykernel\kernelapp.py", line 228, in _try_bind_socket s.bind("tcp://%s:%i" % (self.ip, port)) File "C:\Anaconda3\envs\mne\Lib\site‑packages\zmq\sugar\socket.py", line 302, in bind super().bind(addr) File "zmq/backend/cython/socket.pyx", line 564, in zmq.backend.cython.socket.Socket.bind File "zmq/backend/cython/checkrc.pxd", line 28, in zmq.backend.cython.checkrc._check_rc zmq.error.ZMQError: Address in use (addr='tcp://127.0.0.1:60974')

It is the same error message as above. So the answer is no.

Then Question 2:

are you able to use a console connect to your mne environment without problems?

Consequently, no.

Regards,

ccordoba12 commented 1 year ago

I'm sorry but I don't understand why our consoles are selecting the same port to connect to (60974, you can see it in your initial error message and in the last one), which turns out to be busy. To me that indicates a problem in your system and not in Spyder, although I don't know which one.

My last advice is for you to install Spyder in the mne environment, change the selected interpreter to Default in our Preferences and try again.

vdebenay commented 1 year ago

Thank you @ccordoba12 for your help and for your time!

Best,

ccordoba12 commented 1 year ago

@vdebenay, no problem. Did Spyder work for you after my last suggestion?

vdebenay commented 1 year ago

Yes it does! I just hope installing Spyder in the mne environment won't cause too many dependency conflicts as I progress through my project, as indicated here... Anyway, thank you again @ccordoba12!

ccordoba12 commented 1 year ago

Yes it does!

Great! Thanks for letting us know about it.

I just hope installing Spyder in the mne environment won't cause too many dependency conflicts as I progress through my project, as indicated here...

Hopefully not, but you can open a new issue if it does.