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

issue starting qpk kernel on Apple Silicon #71

Open
seiji594 opened this issue Dec 20, 2022 · 0 comments
Open

issue starting qpk kernel on Apple Silicon #71

seiji594 opened this issue Dec 20, 2022 · 0 comments

Comments

@seiji594
Copy link

seiji594 commented Dec 20, 2022

running on Mac M1, macOS Ventura

q, embedPy installed and built from source for arm64 architecture
q p.q command runs ok and executes things like

q).p.eval["list.pop"][;0]

when launching qpk kernel though the following happens:

[I 2022-12-20 20:30:42.547 ServerApp] jupyterlab | extension was successfully linked.
[I 2022-12-20 20:30:42.724 ServerApp] nbclassic | extension was successfully linked.
[I 2022-12-20 20:30:42.724 ServerApp] panel.io.jupyter_server_extension | extension was successfully linked.
[I 2022-12-20 20:30:42.749 ServerApp] nbclassic | extension was successfully loaded.
[I 2022-12-20 20:30:42.749 LabApp] JupyterLab extension loaded from /opt/anaconda3/lib/python3.9/site-packages/jupyterlab
[I 2022-12-20 20:30:42.749 LabApp] JupyterLab application directory is /opt/anaconda3/share/jupyter/lab
[I 2022-12-20 20:30:42.751 ServerApp] jupyterlab | extension was successfully loaded.
[I 2022-12-20 20:30:42.752 ServerApp] panel.io.jupyter_server_extension | extension was successfully loaded.
[I 2022-12-20 20:30:42.753 ServerApp] The port 8888 is already in use, trying another port.
[I 2022-12-20 20:30:42.753 ServerApp] The port 8889 is already in use, trying another port.
[I 2022-12-20 20:30:42.753 ServerApp] Serving notebooks from local directory: /Users/HomeOffice/Downloads
[I 2022-12-20 20:30:42.753 ServerApp] Jupyter Server 1.18.1 is running at:
[I 2022-12-20 20:30:42.753 ServerApp] http://localhost:8890/lab?token=c67cc8bea3b36e802338dce7e897b7c3b0324bf2ae613dda
[I 2022-12-20 20:30:42.753 ServerApp] or http://127.0.0.1:8890/lab?token=c67cc8bea3b36e802338dce7e897b7c3b0324bf2ae613dda
[I 2022-12-20 20:30:42.753 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2022-12-20 20:30:42.757 ServerApp]

To access the server, open this file in a browser:
    file:///Users/HomeOffice/Library/Jupyter/runtime/jpserver-25031-open.html
Or copy and paste one of these URLs:
    http://localhost:8890/lab?token=c67cc8bea3b36e802338dce7e897b7c3b0324bf2ae613dda
 or http://127.0.0.1:8890/lab?token=c67cc8bea3b36e802338dce7e897b7c3b0324bf2ae613dda

[W 2022-12-20 20:30:45.331 LabApp] Could not determine jupyterlab build status without nodejs
[W 2022-12-20 20:30:45.757 ServerApp] Notebook jupyterq-1.1.14/kdb+Notebooks.ipynb is not trusted
[I 2022-12-20 20:30:45.989 ServerApp] Kernel started: 3c9ccdf8-3afb-4746-9de2-f06de9df85b8
'2022.12.20T20:30:46.185 .p.eval
[5] /Users/HomeOffice/Downloads/jupyterq-1.1.14/jupyterq_pyzmq.q:2: pypop:.p.eval["list.pop"][;0]
^
[2] /opt/anaconda3/q/jupyterq_kernel.q:94: \l jupyterq_pyzmq.q / zero mq messaging
^
[I 2022-12-20 20:30:48.981 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (1/5), new random ports
'2022.12.20T20:30:49.231 .p.eval
[5] /Users/HomeOffice/Downloads/jupyterq-1.1.14/jupyterq_pyzmq.q:2: pypop:.p.eval["list.pop"][;0]
^
[2] /opt/anaconda3/q/jupyterq_kernel.q:94: \l jupyterq_pyzmq.q / zero mq messaging
^
.....
[W 2022-12-20 20:31:04.124 ServerApp] AsyncIOLoopKernelRestarter: restart failed
[W 2022-12-20 20:31:04.125 ServerApp] Kernel 3c9ccdf8-3afb-4746-9de2-f06de9df85b8 died, removing from map.
[W 2022-12-20 20:31:46.027 ServerApp] Timeout waiting for kernel_info reply from 3c9ccdf8-3afb-4746-9de2-f06de9df85b8
[W 2022-12-20 20:31:46.030 ServerApp] 404 GET /api/kernels/3c9ccdf8-3afb-4746-9de2-f06de9df85b8/channels?session_id=9bc789e9-6cd3-49b8-94f4-d923e1f342f8 (::1): Kernel does not exist: 3c9ccdf8-3afb-4746-9de2-f06de9df85b8
[W 2022-12-20 20:31:46.031 ServerApp] 404 GET /api/kernels/3c9ccdf8-3afb-4746-9de2-f06de9df85b8/channels?session_id=fd7ed5a9-f991-4d08-af89-29617de21d55 (127.0.0.1): Kernel does not exist: 3c9ccdf8-3afb-4746-9de2-f06de9df85b8

So it seems the kernel can start put embedPy somehow fails. Can't figure out what is the problem here.
Put all jupyterq files plus p.q and p.k into /opt/anaconda3/q and p.so and jupyterq.so into /opt/anaconda3/q/m64.
Added "DYLD_LIBRARY_PATH": "/opt/anaconda3/lib" to kernel.json for qpk kernel. To no avail.

Any help will be appreciated.

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