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

Uncaught exception in ZMQStream callback #533

Open
kongming0917 opened this issue Feb 19, 2025 · 0 comments
Open

Uncaught exception in ZMQStream callback #533

kongming0917 opened this issue Feb 19, 2025 · 0 comments

Comments

@kongming0917
Copy link

Hello, I am trying to run the xeus-cling C++ kernel in Jupyter Notebook, but I keep encountering the following error when selecting the xcpp17 kernel:

[E 2025-02-20 03:18:42.135 ServerApp] Uncaught exception in ZMQStream callback
Traceback (most recent call last):
  File "/home/user/miniconda3/envs/cling/lib/python3.10/site-packages/zmq/eventloop/zmqstream.py", line 551, in _run_callback
    f = callback(*args, **kwargs)
  File "/home/user/miniconda3/envs/cling/lib/python3.10/site-packages/jupyter_server/services/kernels/kernelmanager.py", line 600, in record_activity
    parent_msg_type = msg.get("parent_header", {}).get("msg_type", None)
AttributeError: 'NoneType' object has no attribute 'get'

The Jupyter Notebook launches correctly, and I can see the xcpp17 (C++17) kernel in the list of available kernels as below, but when I try to select it, I get the error above.

Available kernels:
  python3    /home/user/miniconda3/envs/cling/share/jupyter/kernels/python3
  xcpp11     /home/user/miniconda3/envs/cling/share/jupyter/kernels/xcpp11
  xcpp14     /home/user/miniconda3/envs/cling/share/jupyter/kernels/xcpp14
  xcpp17     /home/user/miniconda3/envs/cling/share/jupyter/kernels/xcpp17

System Information:

Operating System: Windows 11 (WSL2 - Ubuntu 22.04)
Conda Environment: cling
Python Version: 3.10 (Miniconda)
Jupyter Server Version: 2.15.0
Jupyter Client Version: 8.6.3
ZeroMQ Version: 4.3.5
xeus 3.1.5
xeus-cling Version: 0.15.3
xeus-zmq: 1.1.1

What could be causing this Uncaught exception in ZMQStream callback error?

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

No branches or pull requests

1 participant