microsoft / vscode-jupyter

VS Code Jupyter extension
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
MIT License
1.27k stars 280 forks source link

zmq does not work on Alpine arm64 #13399

Closed rzhao271 closed 1 year ago

rzhao271 commented 1 year ago

Testing #13385

Logs:

Visual Studio Code - Insiders (1.78.0-insider, attached-container, desktop)
Jupyter Extension Version: 2023.3.1201040234.
Python Extension Version: 2023.6.1.
No workspace folder opened.
warn 17:10:13.416: Exception while attempting zmq : No native build was found for platform=linux arch=arm64 runtime=electron abi=93 uv=1 armv=8 libc=musl node=16.17.1
    loaded from: /root/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2023.3.1201040234/out/node_modules/zeromq

warn 17:10:13.436: Exception while attempting zmq (fallback) : No native build was found for platform=linux arch=arm64 runtime=electron abi=93 uv=1 armv=8 libc=musl node=16.17.1
    loaded from: /root/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2023.3.1201040234/out/node_modules/zeromqold

User belongs to experiment group 'jupyterEnhancedDataViewer'
User belongs to experiment group 'jupyterTestcf'
info 17:10:21.107: LSP Notebooks experiment is enabled
info 17:10:33.451: Loading webview. View is notset
info 17:10:33.481: Loading web view...
info 17:10:33.499: Webview panel created.

Edit: the extension versions don't match the versions I have installed. I have the latest pre-release installed for both Python and Jupyter, but it looks like the stable versions are being used in the logs above.

rzhao271 commented 1 year ago

Better logs:

Visual Studio Code - Insiders (1.78.0-insider, attached-container, desktop)
Jupyter Extension Version: 2023.4.1011171100.
Python Extension Version: 2023.7.11141008.
Platform: linux (arm64).
No workspace folder opened.
17:17:29.111 [warn] Exception while attempting zmq : Error relocating ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2023.4.1011171100-alpine-arm64/out/node_modules/zeromq/prebuilds/linux-arm64/node.napi.musl.node: unsupported relocation type 7
17:17:29.120 [warn] Exception while attempting zmq (fallback) : No native build was found for platform=linux arch=arm64 runtime=electron abi=93 uv=1 armv=8 libc=musl node=16.17.1
    loaded from: ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2023.4.1011171100-alpine-arm64/out/node_modules/zeromqold

User belongs to experiment group 'jupyterEnhancedDataViewer'
User belongs to experiment group 'jupyterTestcf'
17:17:35.722 [info] Start refreshing Kernel Picker (1682443055719)
17:17:36.226 [info] Using Pylance
17:17:50.806 [info] End refreshing Kernel Picker (1682443055719)
DonJayamanne commented 1 year ago

zmq fails in both the fallback as well as the native build (i.e. zmq never worked for this even in the past)

The test for Testing https://github.com/microsoft/vscode-jupyter/issues/13385 multiplatorm extensions can be deemed a success as the extension loaded and it was workign (based on the logs)