Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues while trying to reconnect to an external existing kernel #23710

Closed
nmathewa opened this issue Feb 11, 2025 · 2 comments
Closed

Issues while trying to reconnect to an external existing kernel #23710

nmathewa opened this issue Feb 11, 2025 · 2 comments

Comments

@nmathewa
Copy link

Description

What steps will reproduce the problem?

  1. Connect to an external remote kernel (via ssh)
  2. Interrupt the kernel manually from spyder
  3. Try to reconnect to the same remote spyder kernel via ssh

Traceback

Traceback (most recent call last):
  File "/home/nmathewa/miniconda3/envs/nma/lib/python3.11/site-packages/spyder/plugins/ipythonconsole/widgets/main_widget.py", line 1187, in _create_client_for_kernel
    self.create_client_for_kernel(
  File "/home/nmathewa/miniconda3/envs/nma/lib/python3.11/site-packages/spyder/plugins/ipythonconsole/widgets/main_widget.py", line 1785, in create_client_for_kernel
    client = ClientWidget(
             ^^^^^^^^^^^^^
  File "/home/nmathewa/miniconda3/envs/nma/lib/python3.11/site-packages/spyder/plugins/ipythonconsole/widgets/client.py", line 173, in __init__
    self.layout.addWidget(self.infowidget)
RuntimeError: wrapped C/C++ object of type FrameWebView has been deleted

Versions

  • Spyder version: 6.0.4 (conda)
  • Python version: 3.11.11 64-bit
  • Qt version: 5.15.14
  • PyQt5 version: 5.15.11
  • Operating System: Linux-6.8.0-52-generic-x86_64-with-glibc2.39

Dependencies

# Mandatory:
aiohttp >=3.9.3                  :  3.11.11 (OK)
asyncssh >=2.14.0,<3.0.0         :  2.19.0 (OK)
atomicwrites >=1.2.0             :  1.4.1 (OK)
chardet >=2.0.0                  :  5.2.0 (OK)
cloudpickle >=0.5.0              :  3.1.0 (OK)
cookiecutter >=1.6.0             :  2.6.0 (OK)
diff_match_patch >=20181111      :  20241021 (OK)
github >=2.3.0                   :  2.5.0 (OK)
importlib_metadata >=4.6.0       :  8.5.0 (OK)
intervaltree >=3.0.2             :  3.1.0 (OK)
IPython >=8.13.0,<9.0.0,!=8.17.1 :  8.31.0 (OK)
jedi >=0.17.2,<0.20.0            :  0.19.2 (OK)
jellyfish >=0.7                  :  1.1.3 (OK)
jsonschema >=3.2.0               :  4.23.0 (OK)
keyring >=17.0.0                 :  25.6.0 (OK)
nbconvert >=4.0                  :  7.16.5 (OK)
numpydoc >=0.6.0                 :  1.8.0 (OK)
parso >=0.7.0,<0.9.0             :  0.8.4 (OK)
pexpect >=4.4.0                  :  4.9.0 (OK)
pickleshare >=0.4                :  0.7.5 (OK)
psutil >=5.3                     :  6.1.1 (OK)
pygments >=2.0                   :  2.19.0 (OK)
pylint >=3.1,<4                  :  3.3.3 (OK)
pylint_venv >=3.0.2              :  3.0.4 (OK)
pyls_spyder >=0.4.0              :  0.4.0 (OK)
pylsp >=1.12.0,<1.13.0           :  1.12.0 (OK)
pylsp_black >=2.0.0,<3.0.0       :  2.0.0 (OK)
pyuca >=1.2                      :  1.2 (OK)
qdarkstyle >=3.2.0,<3.3.0        :  3.2.3 (OK)
qstylizer >=0.2.2                :  0.2.4 (OK)
qtawesome >=1.3.1,<1.4.0         :  1.3.1 (OK)
qtconsole >=5.6.1,<5.7.0         :  5.6.1 (OK)
qtpy >=2.4.0                     :  2.4.2 (OK)
rtree >=0.9.7                    :  1.3.0 (OK)
setuptools >=49.6.0              :  75.1.0 (OK)
sphinx >=0.6.6                   :  8.1.3 (OK)
spyder_kernels >=3.0.3,<3.1.0    :  3.0.3 (OK)
superqt >=0.6.2,<1.0.0           :  0.7.0 (OK)
textdistance >=4.2.0             :  4.6.2 (OK)
three_merge >=0.1.1              :  0.1.1 (OK)
watchdog >=0.10.3                :  6.0.0 (OK)
xdg >=0.26                       :  0.28 (OK)
yarl >=1.9.4                     :  1.18.3 (OK)
zmq >=24.0.0                     :  26.2.0 (OK)

# Optional:
cython >=0.21                    :  None (NOK)
matplotlib >=3.0.0               :  3.10.0 (OK)
numpy >=1.7                      :  2.2.1 (OK)
pandas >=1.1.1                   :  2.2.3 (OK)
scipy >=0.17.0                   :  1.15.0 (OK)
sympy >=0.7.3                    :  None (NOK)

Environment

Environment
# packages in environment at /home/nmathewa/miniconda3/envs/nma:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main  
_openmp_mutex             5.1                       1_gnu  
aiohappyeyeballs          2.4.4                    pypi_0    pypi
aiohttp                   3.11.11                  pypi_0    pypi
aiosignal                 1.3.2                    pypi_0    pypi
alabaster                 1.0.0                    pypi_0    pypi
arrow                     1.3.0                    pypi_0    pypi
astroid                   3.3.8                    pypi_0    pypi
asttokens                 3.0.0                    pypi_0    pypi
asyncssh                  2.19.0                   pypi_0    pypi
atomicwrites              1.4.1                    pypi_0    pypi
attrs                     24.3.0                   pypi_0    pypi
autopep8                  2.0.4                    pypi_0    pypi
babel                     2.16.0                   pypi_0    pypi
backports-tarfile         1.2.0                    pypi_0    pypi
beautifulsoup4            4.12.3                   pypi_0    pypi
binaryornot               0.4.4                    pypi_0    pypi
black                     24.10.0                  pypi_0    pypi
bleach                    6.2.0                    pypi_0    pypi
bokeh                     3.6.2                    pypi_0    pypi
bzip2                     1.0.8                h5eee18b_6  
ca-certificates           2024.11.26           h06a4308_0  
certifi                   2024.12.14               pypi_0    pypi
cffi                      1.17.1                   pypi_0    pypi
cftime                    1.6.4.post1              pypi_0    pypi
chardet                   5.2.0                    pypi_0    pypi
charset-normalizer        3.4.1                    pypi_0    pypi
click                     8.1.8                    pypi_0    pypi
cloudpickle               3.1.0                    pypi_0    pypi
comm                      0.2.2                    pypi_0    pypi
contourpy                 1.3.1                    pypi_0    pypi
cookiecutter              2.6.0                    pypi_0    pypi
cryptography              44.0.0                   pypi_0    pypi
cycler                    0.12.1                   pypi_0    pypi
dask                      2024.12.1                pypi_0    pypi
dask-expr                 1.1.21                   pypi_0    pypi
debugpy                   1.8.11                   pypi_0    pypi
decorator                 5.1.1                    pypi_0    pypi
defusedxml                0.7.1                    pypi_0    pypi
deprecated                1.2.15                   pypi_0    pypi
diff-match-patch          20241021                 pypi_0    pypi
dill                      0.3.9                    pypi_0    pypi
distributed               2024.12.1                pypi_0    pypi
docstring-to-markdown     0.15                     pypi_0    pypi
docutils                  0.21.2                   pypi_0    pypi
executing                 2.1.0                    pypi_0    pypi
fastjsonschema            2.21.1                   pypi_0    pypi
flake8                    7.1.1                    pypi_0    pypi
flexcache                 0.3                      pypi_0    pypi
flexparser                0.4                      pypi_0    pypi
fonttools                 4.55.3                   pypi_0    pypi
frozenlist                1.5.0                    pypi_0    pypi
fsspec                    2024.12.0                pypi_0    pypi
idna                      3.10                     pypi_0    pypi
imagesize                 1.4.1                    pypi_0    pypi
importlib-metadata        8.5.0                    pypi_0    pypi
inflection                0.5.1                    pypi_0    pypi
intervaltree              3.1.0                    pypi_0    pypi
ipykernel                 6.29.5                   pypi_0    pypi
ipython                   8.31.0                   pypi_0    pypi
isort                     5.13.2                   pypi_0    pypi
jaraco-classes            3.4.0                    pypi_0    pypi
jaraco-context            6.0.1                    pypi_0    pypi
jaraco-functools          4.1.0                    pypi_0    pypi
jedi                      0.19.2                   pypi_0    pypi
jeepney                   0.8.0                    pypi_0    pypi
jellyfish                 1.1.3                    pypi_0    pypi
jinja2                    3.1.5                    pypi_0    pypi
jsonschema                4.23.0                   pypi_0    pypi
jsonschema-specifications 2024.10.1                pypi_0    pypi
jupyter-client            8.6.3                    pypi_0    pypi
jupyter-core              5.7.2                    pypi_0    pypi
jupyterlab-pygments       0.3.0                    pypi_0    pypi
keyring                   25.6.0                   pypi_0    pypi
kiwisolver                1.4.8                    pypi_0    pypi
ld_impl_linux-64          2.40                 h12ee557_0  
libffi                    3.4.4                h6a678d5_1  
libgcc-ng                 11.2.0               h1234567_1  
libgomp                   11.2.0               h1234567_1  
libstdcxx-ng              11.2.0               h1234567_1  
libuuid                   1.41.5               h5eee18b_0  
locket                    1.0.0                    pypi_0    pypi
lz4                       4.3.3                    pypi_0    pypi
markdown-it-py            3.0.0                    pypi_0    pypi
markupsafe                3.0.2                    pypi_0    pypi
matplotlib                3.10.0                   pypi_0    pypi
matplotlib-inline         0.1.7                    pypi_0    pypi
mccabe                    0.7.0                    pypi_0    pypi
mdurl                     0.1.2                    pypi_0    pypi
metpy                     1.6.3                    pypi_0    pypi
mistune                   3.1.0                    pypi_0    pypi
more-itertools            10.5.0                   pypi_0    pypi
msgpack                   1.1.0                    pypi_0    pypi
multidict                 6.1.0                    pypi_0    pypi
mypy-extensions           1.0.0                    pypi_0    pypi
nbclient                  0.10.2                   pypi_0    pypi
nbconvert                 7.16.5                   pypi_0    pypi
nbformat                  5.10.4                   pypi_0    pypi
ncurses                   6.4                  h6a678d5_0  
nest-asyncio              1.6.0                    pypi_0    pypi
netcdf4                   1.7.2                    pypi_0    pypi
numpy                     2.2.1                    pypi_0    pypi
numpydoc                  1.8.0                    pypi_0    pypi
openssl                   3.0.15               h5eee18b_0  
packaging                 24.2                     pypi_0    pypi
pandas                    2.2.3                    pypi_0    pypi
pandocfilters             1.5.1                    pypi_0    pypi
parso                     0.8.4                    pypi_0    pypi
partd                     1.4.2                    pypi_0    pypi
pathspec                  0.12.1                   pypi_0    pypi
pexpect                   4.9.0                    pypi_0    pypi
pickleshare               0.7.5                    pypi_0    pypi
pillow                    11.1.0                   pypi_0    pypi
pint                      0.24.4                   pypi_0    pypi
pip                       24.2            py311h06a4308_0  
platformdirs              4.3.6                    pypi_0    pypi
pluggy                    1.5.0                    pypi_0    pypi
pooch                     1.8.2                    pypi_0    pypi
prompt-toolkit            3.0.48                   pypi_0    pypi
propcache                 0.2.1                    pypi_0    pypi
psutil                    6.1.1                    pypi_0    pypi
ptyprocess                0.7.0                    pypi_0    pypi
pure-eval                 0.2.3                    pypi_0    pypi
pyarrow                   18.1.0                   pypi_0    pypi
pycodestyle               2.12.1                   pypi_0    pypi
pycparser                 2.22                     pypi_0    pypi
pydocstyle                6.3.0                    pypi_0    pypi
pyflakes                  3.2.0                    pypi_0    pypi
pygithub                  2.5.0                    pypi_0    pypi
pygments                  2.19.0                   pypi_0    pypi
pyjwt                     2.10.1                   pypi_0    pypi
pylint                    3.3.3                    pypi_0    pypi
pylint-venv               3.0.4                    pypi_0    pypi
pyls-spyder               0.4.0                    pypi_0    pypi
pynacl                    1.5.0                    pypi_0    pypi
pyparsing                 3.2.1                    pypi_0    pypi
pyproj                    3.7.0                    pypi_0    pypi
pyqt5                     5.15.11                  pypi_0    pypi
pyqt5-qt5                 5.15.16                  pypi_0    pypi
pyqt5-sip                 12.16.1                  pypi_0    pypi
pyqtwebengine             5.15.7                   pypi_0    pypi
pyqtwebengine-qt5         5.15.16                  pypi_0    pypi
python                    3.11.11              he870216_0  
python-dateutil           2.9.0.post0              pypi_0    pypi
python-lsp-black          2.0.0                    pypi_0    pypi
python-lsp-jsonrpc        1.1.2                    pypi_0    pypi
python-lsp-server         1.12.0                   pypi_0    pypi
python-slugify            8.0.4                    pypi_0    pypi
pytoolconfig              1.3.1                    pypi_0    pypi
pytz                      2024.2                   pypi_0    pypi
pyuca                     1.2                      pypi_0    pypi
pyxdg                     0.28                     pypi_0    pypi
pyyaml                    6.0.2                    pypi_0    pypi
pyzmq                     26.2.0                   pypi_0    pypi
qdarkstyle                3.2.3                    pypi_0    pypi
qstylizer                 0.2.4                    pypi_0    pypi
qtawesome                 1.3.1                    pypi_0    pypi
qtconsole                 5.6.1                    pypi_0    pypi
qtpy                      2.4.2                    pypi_0    pypi
readline                  8.2                  h5eee18b_0  
referencing               0.35.1                   pypi_0    pypi
requests                  2.32.3                   pypi_0    pypi
rich                      13.9.4                   pypi_0    pypi
rope                      1.13.0                   pypi_0    pypi
rpds-py                   0.22.3                   pypi_0    pypi
rtree                     1.3.0                    pypi_0    pypi
scipy                     1.15.0                   pypi_0    pypi
seaborn                   0.13.2                   pypi_0    pypi
secretstorage             3.3.3                    pypi_0    pypi
setuptools                75.1.0          py311h06a4308_0  
six                       1.17.0                   pypi_0    pypi
snowballstemmer           2.2.0                    pypi_0    pypi
sortedcontainers          2.4.0                    pypi_0    pypi
soupsieve                 2.6                      pypi_0    pypi
sphinx                    8.1.3                    pypi_0    pypi
sphinxcontrib-applehelp   2.0.0                    pypi_0    pypi
sphinxcontrib-devhelp     2.0.0                    pypi_0    pypi
sphinxcontrib-htmlhelp    2.1.0                    pypi_0    pypi
sphinxcontrib-jsmath      1.0.1                    pypi_0    pypi
sphinxcontrib-qthelp      2.0.0                    pypi_0    pypi
sphinxcontrib-serializinghtml 2.0.0                    pypi_0    pypi
spyder                    6.0.4                    pypi_0    pypi
spyder-kernels            3.0.3                    pypi_0    pypi
sqlite                    3.45.3               h5eee18b_0  
stack-data                0.6.3                    pypi_0    pypi
superqt                   0.7.0                    pypi_0    pypi
tabulate                  0.9.0                    pypi_0    pypi
tblib                     3.0.0                    pypi_0    pypi
text-unidecode            1.3                      pypi_0    pypi
textdistance              4.6.3                    pypi_0    pypi
three-merge               0.1.1                    pypi_0    pypi
tinycss2                  1.4.0                    pypi_0    pypi
tk                        8.6.14               h39e8969_0  
tomlkit                   0.13.2                   pypi_0    pypi
toolz                     1.0.0                    pypi_0    pypi
tornado                   6.4.2                    pypi_0    pypi
traitlets                 5.14.3                   pypi_0    pypi
types-python-dateutil     2.9.0.20241206           pypi_0    pypi
typing-extensions         4.12.2                   pypi_0    pypi
tzdata                    2024.2                   pypi_0    pypi
ujson                     5.10.0                   pypi_0    pypi
urllib3                   2.3.0                    pypi_0    pypi
watchdog                  6.0.0                    pypi_0    pypi
wcwidth                   0.2.13                   pypi_0    pypi
webencodings              0.5.1                    pypi_0    pypi
whatthepatch              1.0.7                    pypi_0    pypi
wheel                     0.44.0          py311h06a4308_0  
wrapt                     1.17.0                   pypi_0    pypi
wurlitzer                 3.1.1                    pypi_0    pypi
xarray                    2025.1.0                 pypi_0    pypi
xyzservices               2024.9.0                 pypi_0    pypi
xz                        5.4.6                h5eee18b_1  
yapf                      0.43.0                   pypi_0    pypi
yarl                      1.18.3                   pypi_0    pypi
zict                      3.0.0                    pypi_0    pypi
zipp                      3.21.0                   pypi_0    pypi
zlib                      1.2.13               h5eee18b_1  

@nmathewa nmathewa changed the title When trying to reoonnect external remote kernel When trying to reconnect to an external existing remote kernel Feb 11, 2025
@nmathewa nmathewa changed the title When trying to reconnect to an external existing remote kernel Issues while trying to reconnect to an external existing kernel Feb 11, 2025
@dalthviz
Copy link
Member

Hi @nmathewa thank you for the report! I think this is related with #23529 From #23529 (comment) seems like the error is harmless and a fix will be done in a future release.

Let us know if the info above helps!

@nmathewa
Copy link
Author

nmathewa commented Feb 11, 2025

Thanks @dalthviz .

Changing status to Closed as it appears to be a duplicate of issue #23529.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants