Closed hsm207 closed 1 week ago
Please can you share the full logs
How do i share the full logs? Is it in a file somewhere or something?
21:27:47.037 [error] Failed to request kernel info Canceled: Canceled at i.value (/home/~/.~-server/extensions/ms-toolsai.jupyter-2024.7.0-linux-a
The logs you have above is what we need.
Here is the entire output I copied from the top to the end:
Visual Studio Code (1.92.2, dev-container, desktop)
Jupyter Extension Version: 2024.7.0.
Python Extension Version: 2024.12.3.
Pylance Extension Version: 2024.8.2.
Platform: linux (arm64).
Multiple Workspace folders opened /workspaces/graphrag, /workspaces/graphrag/ragtest-local, /workspaces/graphrag/ragtest-openai
09:32:50.503 [info] Starting Kernel (Python Path: /usr/local/bin/python, Unknown, 3.11.4) for '/workspaces/graphrag/.devcontainer/scratch.ipynb' (disableUI=true)
09:32:52.175 [warn] Failed to get activated env vars for /usr/local/bin/python in 1674ms
09:32:52.183 [warn] Failed to get activated env vars for /usr/local/bin/python in 1037ms
09:32:52.235 [info] Process Execution: /usr/local/bin/python -c "import site;print("USER_BASE_VALUE");print(site.USER_BASE);print("USER_BASE_VALUE");"
09:32:52.260 [error] Unable to determine site packages path for python /usr/local/bin/python (Unknown)
09:32:52.261 [error] Unable to determine site packages path for python /usr/local/bin/python (Unknown)
09:32:52.267 [info] Process Execution: /usr/local/bin/python -m pip list
09:32:52.272 [info] Process Execution: /usr/local/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
09:32:52.286 [info] Process Execution: /usr/local/bin/python -m ipykernel_launcher --f=/home/~/.local/share/jupyter/runtime/kernel-v2-12822yUN9kM3Zwhpz.json
> cwd: //workspaces/graphrag/.devcontainer
09:33:52.701 [error] Failed to request kernel info Canceled: Canceled
at i.value (/home/~/.~-server/extensions/ms-toolsai.jupyter-2024.7.0-linux-arm64/dist/extension.node.js:181:22014)
at n.B (/~/~-server/bin/linux-arm64/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/out/vs/workbench/api/node/extensionHostProcess.js:83:737)
at n.fire (/~/~-server/bin/linux-arm64/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/out/vs/workbench/api/node/extensionHostProcess.js:83:954)
at R.cancel (/~/~-server/bin/linux-arm64/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/out/vs/workbench/api/node/extensionHostProcess.js:83:5370)
at L.cancel (/~/~-server/bin/linux-arm64/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/out/vs/workbench/api/node/extensionHostProcess.js:83:5780)
at Timeout._onTimeout (/home/~/.~-server/extensions/ms-toolsai.jupyter-2024.7.0-linux-arm64/dist/extension.node.js:304:11746)
at listOnTimeout (node:internal/timers:573:17)
at processTimers (node:internal/timers:514:7)
09:33:52.742 [warn] Failed to shutdown kernel, .jvsc74a57bd0949777d72b0d2535278d3dc13498b2535136f6dfe0678499012e853ee9abcab1./usr/local/python./usr/local/python.-m#ipykernel_launcher TypeError: Failed to parse URL from /api/kernels/6bedd0cf-cd69-4f57-aaa8-3285275e16aa?1725269632740
at new Request (node:internal/deps/undici/undici:4855:19)
at Object.t [as handleRequest] (/home/~/.~-server/extensions/ms-toolsai.jupyter-2024.7.0-linux-arm64/dist/node_modules/@jupyterlab/services/lib/kernel/nonSerializingKernel.js:11:2054)
... 8 lines matching cause stack trace ...
at Function.wrapKernelMethodImpl (/home/~/.~-server/extensions/ms-toolsai.jupyter-2024.7.0-linux-arm64/dist/extension.node.js:304:82121) {
[cause]: TypeError: Invalid URL
at new URL (node:internal/url:797:36)
at new Request (node:internal/deps/undici/undici:4853:25)
at Object.t [as handleRequest] (/home/~/.~-server/extensions/ms-toolsai.jupyter-2024.7.0-linux-arm64/dist/node_modules/@jupyterlab/services/lib/kernel/nonSerializingKernel.js:11:2054)
at Object.t [as makeRequest] (/home/~/.~-server/extensions/ms-toolsai.jupyter-2024.7.0-linux-arm64/dist/node_modules/@jupyterlab/services/lib/kernel/nonSerializingKernel.js:11:730)
at Object.Vl [as shutdownKernel] (/home/~/.~-server/extensions/ms-toolsai.jupyter-2024.7.0-linux-arm64/dist/node_modules/@jupyterlab/services/lib/kernel/nonSerializingKernel.js:11:5781)
at n.shutdown (/home/~/.~-server/extensions/ms-toolsai.jupyter-2024.7.0-linux-arm64/dist/node_modules/@jupyterlab/services/lib/kernel/nonSerializingKernel.js:11:89571)
at R_.start (/home/~/.~-server/extensions/ms-toolsai.jupyter-2024.7.0-linux-arm64/dist/extension.node.js:304:12333)
at A_.startKernel (/home/~/.~-server/extensions/ms-toolsai.jupyter-2024.7.0-linux-arm64/dist/extension.node.js:304:21270)
at Ry.create (/home/~/.~-server/extensions/ms-toolsai.jupyter-2024.7.0-linux-arm64/dist/extension.node.js:304:23577)
at YD.createJupyterSession (/home/~/.~-server/extensions/ms-toolsai.jupyter-2024.7.0-linux-arm64/dist/extension.node.js:285:35993)
at YD.startJupyterSession (/home/~/.~-server/extensions/ms-toolsai.jupyter-2024.7.0-linux-arm64/dist/extension.node.js:285:34001)
at Function.wrapKernelMethodImpl (/home/~/.~-server/extensions/ms-toolsai.jupyter-2024.7.0-linux-arm64/dist/extension.node.js:304:82121) {
code: 'ERR_INVALID_URL',
input: '/api/kernels/6bedd0cf-cd69-4f57-aaa8-3285275e16aa?1725269632740'
}
}
09:33:52.777 [error] Disposing session as kernel process died ExitCode: undefined, Reason: undefined
09:33:52.810 [error] Failed to connect raw kernel session: Error: The kernel died. Error: ... View Jupyter [log](command:jupyter.viewOutput) for further details.
09:33:52.813 [warn] Error occurred while trying to start the kernel, options.disableUI=false Error: The kernel died. Error: ... View Jupyter [log](command:jupyter.viewOutput) for further details.
> Kernel Id = .jvsc74a57bd0949777d72b0d2535278d3dc13498b2535136f6dfe0678499012e853ee9abcab1./usr/local/python./usr/local/python.-m#ipykernel_launcher
> Interpreter Id = /usr/local/bin/python
> at R_.<anonymous> (/home/~/.~-server/extensions/ms-toolsai.jupyter-2024.7.0-linux-arm64/dist/extension.node.js:304:11641)
> stdErr =
09:33:52.817 [warn] Kernel Error, context = start Error: The kernel died. Error: ... View Jupyter [log](command:jupyter.viewOutput) for further details.
> Kernel Id = .jvsc74a57bd0949777d72b0d2535278d3dc13498b2535136f6dfe0678499012e853ee9abcab1./usr/local/python./usr/local/python.-m#ipykernel_launcher
> Interpreter Id = /usr/local/bin/python
> at R_.<anonymous> (/home/~/.~-server/extensions/ms-toolsai.jupyter-2024.7.0-linux-arm64/dist/extension.node.js:304:11641)
> stdErr =
09:33:52.889 [warn] Failed to get activated env vars for /usr/local/bin/python in 64ms
09:33:52.890 [error] Unable to determine site packages path for python /usr/local/bin/python (Unknown)
09:33:52.898 [info] Process Execution: /usr/local/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
09:33:53.085 [info] Dispose Kernel '/workspaces/graphrag/.devcontainer/scratch.ipynb' associated with '/workspaces/graphrag/.devcontainer/scratch.ipynb'
09:33:53.088 [error] Error in execution Error: The kernel died. Error: ... View Jupyter [log](command:jupyter.viewOutput) for further details.
> Kernel Id = .jvsc74a57bd0949777d72b0d2535278d3dc13498b2535136f6dfe0678499012e853ee9abcab1./usr/local/python./usr/local/python.-m#ipykernel_launcher
> Interpreter Id = /usr/local/bin/python
> at R_.<anonymous> (/home/~/.~-server/extensions/ms-toolsai.jupyter-2024.7.0-linux-arm64/dist/extension.node.js:304:11641)
> stdErr =
09:33:53.089 [error] Error in execution (get message for cell) Error: The kernel died. Error: ... View Jupyter [log](command:jupyter.viewOutput) for further details.
> Kernel Id = .jvsc74a57bd0949777d72b0d2535278d3dc13498b2535136f6dfe0678499012e853ee9abcab1./usr/local/python./usr/local/python.-m#ipykernel_launcher
> Interpreter Id = /usr/local/bin/python
> at R_.<anonymous> (/home/~/.~-server/extensions/ms-toolsai.jupyter-2024.7.0-linux-arm64/dist/extension.node.js:304:11641)
> stdErr =
09:33:53.096 [info] Process Execution: /usr/local/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
09:32:50.503 [info] Starting Kernel (Python Path: /usr/local/bin/python, Unknown, 3.11.4) for '/workspaces/graphrag/.devcontainer/scratch.ipynb' (disableUI=true) 09:32:52.175 [warn] Failed to get activated env vars for /usr/local/bin/python in 1674ms
Doesn't look like you have the latest image. Can you try creating a new folder with the container. Its supposed to have Python 3.12, however you have 3.11.4
I have tried this at my end and it works as expected. I too am using a Mac arm64 (local machine) and the dev container is linux arm64
I updated to use 3.12, switch to VC Code code insiders and the pre-release extension so that it matches your environment according to the logs you shared. I still get the same error.
Could you share the image you used for the devcontainer? I'm using mcr.microsoft.com/devcontainers/python:1-3.12-bullseye
with a feature ghcr.io/devcontainers/features/rust:1
I'm not using any features
Closing because because this is not reproducible anymore.
I removed the feature and rebuilt the container and now the error is gone. Then, I added back the feature and tested again, and the error is no longer there too....
Type: Bug
Create a devcontainer using image
mcr.microsoft.com/devcontainers/python:1-3.12-bullseye
Install ipykernel package and the jupyter and python extensions
Create a new notebook, select a python kernel and enter
1+1
in a cell and click runThe output from the Jupyter extension:
Extension version: 2024.7.0 VS Code version: Code 1.92.2 (Universal) (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z) OS version: Darwin arm64 23.6.0 Modes: Connection to 'Dev Container: Go @ desktop-linux' could not be established Canceled Connection to 'Dev Container: Default Linux Universal @ desktop-linux' could not be established Canceled Connection to 'Dev Container: Python 3 @ desktop-linux' could not be established Canceled Remote OS version: Linux arm64 6.10.4-linuxkit
System Info
|Item|Value| |---|---| |CPUs|Apple M1 Max (10 x 2400)| |GPU Status|2d_canvas: enabledcanvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|5, 5, 5| |Memory (System)|32.00GB (0.07GB free)| |Process Argv|--crash-reporter-id 2a768ca4-5346-4b1b-8ddc-e1e818aac68e| |Screen Reader|no| |VM|0%| Connection to 'Dev Container: Go @ desktop-linux' could not be established Canceled Connection to 'Dev Container: Default Linux Universal @ desktop-linux' could not be established Canceled Connection to 'Dev Container: Python 3 @ desktop-linux' could not be established Canceled |Item|Value| |---|---| |Remote|Dev Container: Python 3 @ desktop-linux| |OS|Linux arm64 6.10.4-linuxkit| |CPUs|unknown (10 x 0)| |Memory (System)|31.30GB (28.83GB free)| |VM|0%|
A/B Experiments
``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonnoceb:30805159 asynctok:30898717 pythonregdiag2:30936856 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 01bff139:31013167 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 dwnewjupytercf:31046870 newcmakeconfigv2:31071590 impr_priority:31102340 refactort:31108082 pythonrstrctxt:31112756 wkspc-onlycs-c:31111717 wkspc-ranged-t:31125599 ei213698:31121563 aajjf12562:31125793 ```