Python kernel installation should report error through its notification #15740
Labels
bug
Issue identified by VS Code Team member as probable bug
notebook-execution
Kernels issues (start/restart/switch/execution, install ipykernel)
Applies To
What happened?
Repro:
Screen.Recording.2024-06-04.at.11.32.59.mov
VS Code Version
Version: 1.90.0-insider Commit: 89de5a8d4d6205e5b11647eb6a74844ca23d2573 Date: 2024-06-04T01:35:33.174Z Electron: 29.4.0 ElectronBuildId: 9593362 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Darwin arm64 23.5.0
Jupyter Extension Version
v2024.5.2024052901 (pre-release)
Jupyter logs
11:34:11.622 [info] Process Execution: /opt/homebrew/bin/python3 -c "import pip;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
11:34:15.721 [info] Process Execution: /opt/homebrew/bin/python3 -c "import pip;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
11:34:15.750 [info] Process Execution: /opt/homebrew/bin/python3 -m pip install -U --user ipykernel
11:34:16.245 [error] Failed to install ipykernel error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
xyz, where xyz is the package you are trying to
install.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
11:34:16.246 [info] Dispose Kernel '
/code/intent-detection/logsprobs.ipynb' associated with '/code/intent-detection/logsprobs.ipynb'11:34:16.247 [error] Error in execution Error: The kernel died. Error: /opt/homebrew/opt/[email protected]/bin/python3.12: No module named ipykernel_launcher... View Jupyter log for further details.
> Kernel Id = .jvsc74a57bd0b0fa6594d8f4cbf19f97940f81e996739fb7646882a419484c72d19e05852a7e./opt/homebrew/bin/python3./opt/homebrew/bin/python3.-m#ipykernel_launcher
> Interpreter Id = /opt/homebrew/bin/python3
> at DT. (/Users/
/.vscode-insiders/extensions/ms-toolsai.jupyter-2024.5.2024052901-darwin-arm64/dist/extension.node.js:314:11641)/.vscode-insiders/extensions/ms-toolsai.jupyter-2024.5.2024052901-darwin-arm64/dist/extension.node.js:314:11641),l.y (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:82:664),l.z (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:82:734),l.fire (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:82:950),ChildProcess. (/Users/> stdErr = /opt/homebrew/opt/[email protected]/bin/python3.12: No module named ipykernel_launcher
> vslsStack = DT. (/Users/
/.vscode-insiders/extensions/ms-toolsai.jupyter-2024.5.2024052901-darwin-arm64/dist/extension.node.js:309:44184),ChildProcess.emit (node:events:526:35),ChildProcess._handle.onexit (node:internal/child_process:294:12)/.vscode-insiders/extensions/ms-toolsai.jupyter-2024.5.2024052901-darwin-arm64/dist/extension.node.js:314:11641)11:34:16.247 [error] Error in execution (get message for cell) Error: The kernel died. Error: /opt/homebrew/opt/[email protected]/bin/python3.12: No module named ipykernel_launcher... View Jupyter log for further details.
> Kernel Id = .jvsc74a57bd0b0fa6594d8f4cbf19f97940f81e996739fb7646882a419484c72d19e05852a7e./opt/homebrew/bin/python3./opt/homebrew/bin/python3.-m#ipykernel_launcher
> Interpreter Id = /opt/homebrew/bin/python3
> at DT. (/Users/
> stdErr = /opt/homebrew/opt/[email protected]/bin/python3.12: No module named ipykernel_launcher
> vslsStack = DT. (/Users/
/.vscode-insiders/extensions/ms-toolsai.jupyter-2024.5.2024052901-darwin-arm64/dist/extension.node.js:314:11641),l.y (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:82:664),l.z (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:82:734),l.fire (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:82:950),ChildProcess. (/Users//.vscode-insiders/extensions/ms-toolsai.jupyter-2024.5.2024052901-darwin-arm64/dist/extension.node.js:309:44184),ChildProcess.emit (node:events:526:35),ChildProcess._handle.onexit (node:internal/child_process:294:12)11:34:16.248 [info] Process Execution: /opt/homebrew/bin/python3 -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
Coding Language and Runtime Version
python 3.12.2 (installed with brew at /opt/homebrew/bin/python3)
Language Extension Version (if applicable)
v2024.7.11511013 (pre-release)
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Local
The text was updated successfully, but these errors were encountered: