jupyterq icon indicating copy to clipboard operation
jupyterq copied to clipboard

pykx and jupyterq

Open kimtang opened this issue 8 months ago • 1 comments

Looks like pykx and jupyterq do not work well together. Is there a way to fix it?

Thanks, Kim


(pykx308) λ jupyter console --kernel=qpk
'2024.06.17T05:42:32.193 type
[6] C:\edev\software\anaconda3\envs\pykx308\Lib\site-packages\pykx\lib\jupyterq_pyzmq.q:17: {(x?".")#x}
^
[5] C:\edev\software\anaconda3\envs\pykx308\Lib\site-packages\pykx\lib\jupyterq_pyzmq.q:17: zsock.fd:$[17<="I"${(x?".")#x}pyzmq[:pyzmq_version][]; / file descriptor for zeromq socke, need v>=17 for fileno
^
{"i"$zsocks[x][:fileno][]};
[2] C:\edev\private\jupyterq\jupyterq_windows-1.1.11\jupyterq_kernel.q:94: \l jupyterq_pyzmq.q
/ zero mq messaging
^
'2024.06.17T05:42:32.194 cleanz
[0] C:\edev\private\jupyterq\jupyterq_windows-1.1.11\jupyterq_kernel.q:32: .z.exit:{cleanz;cleans}
^
Traceback (most recent call last):
File "C:\edev\software\anaconda3\envs\pykx308\lib\site-packages\jupyter_console\ptshell.py", line 434, in init_kernel_info
reply = self.client.get_shell_msg(timeout=1)
File "C:\edev\software\anaconda3\envs\pykx308\lib\site-packages\jupyter_core\utils_init_.py", line 173, in wrapped
return loop.run_until_complete(inner)
File "C:\edev\software\anaconda3\envs\pykx308\lib\asyncio\base_events.py", line 616, in run_until_complete
return future.result()
File "C:\edev\software\anaconda3\envs\pykx308\lib\site-packages\jupyter_client\client.py", line 143, in _async_get_shell_msg
return await ensure_async(self.shell_channel.get_msg(*args, **kwargs))
File "C:\edev\software\anaconda3\envs\pykx308\lib\site-packages\jupyter_client\channels.py", line 233, in get_msg
raise Empty
_queue.Empty

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\edev\software\anaconda3\envs\pykx308\Scripts\jupyter-console-script.py", line 10, in
sys.exit(main())
File "C:\edev\software\anaconda3\envs\pykx308\lib\site-packages\jupyter_core\application.py", line 280, in launch_instance
super().launch_instance(argv=argv, **kwargs)
File "C:\edev\software\anaconda3\envs\pykx308\lib\site-packages\traitlets\config\application.py", line 1074, in launch_instance
app.initialize(argv)
File "C:\edev\software\anaconda3\envs\pykx308\lib\site-packages\traitlets\config\application.py", line 118, in inner
return method(app, *args, **kwargs)
File "C:\edev\software\anaconda3\envs\pykx308\lib\site-packages\jupyter_console\app.py", line 136, in initialize
self.init_shell()
File "C:\edev\software\anaconda3\envs\pykx308\lib\site-packages\jupyter_console\app.py", line 106, in init_shell
self.shell = ZMQTerminalInteractiveShell.instance(parent=self,
File "C:\edev\software\anaconda3\envs\pykx308\lib\site-packages\traitlets\config\configurable.py", line 583, in instance
inst = cls(*args, **kwargs)
File "C:\edev\software\anaconda3\envs\pykx308\lib\site-packages\jupyter_console\ptshell.py", line 352, in init
self.init_kernel_info()
File "C:\edev\software\anaconda3\envs\pykx308\lib\site-packages\jupyter_console\ptshell.py", line 437, in init_kernel_info
raise RuntimeError("Kernel didn't respond to kernel_info_request") from e
RuntimeError: Kernel didn't respond to kernel_info_request

kimtang avatar Jun 16 '24 21:06 kimtang