Closed pculbertson-bdai closed 3 weeks ago
Sorry you are running into this issue.
What is the name of the interpreter that you have selected via Python: Select Interpreter
Please could you enable logging as follows:
Jupyter->Logging
trace
Jupyter
output panel (use the command Jupyter: Show Output
to get to the logs).Select Kernel->Python Environments
Jupyter: Create Interactive Window
Sure, here are the logs from the following steps:
Python: Select Interpreter -> /home/pculbertson_theaiinstitute_com/starfish/bazel-bin/sam2_python
(custom executable)Select Kernel->Python Environments
(not available)Jupyter: Create Interactive Window
(successful, run import torch
to ensure package paths are correct).
Visual Studio Code (1.92.0, attached-container, desktop)
Jupyter Extension Version: 2024.8.2024080201.
Python Extension Version: 2024.13.2024081501.
Pylance Extension Version: 2024.8.101.
Platform: linux (x64).
Workspace folder ~/starfish, Home = /home/pculbertson_theaiinstitute_com
13:01:13.526 [debug] Start refreshing Kernel Picker (1723813273526)
13:01:13.573 [trace] Search for KernelSpecs in Interpreter /bin/python
13:01:13.577 [trace] Search for KernelSpecs in Interpreter /usr/bin/python
13:01:13.580 [debug] Get Custom Env Variables, Class name = Sm, completed in 55ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
13:01:13.580 [debug] Jupyter Paths /kernels:
13:01:13.581 [debug] Kernel Spec Root Paths, /usr/share/jupyter/kernels, /usr/local/share/jupyter/kernels, ~/.local/share/jupyter/kernels
13:01:13.589 [trace] Preferred Remote kernel for /Interactive-1.interactive is undefined
13:01:13.589 [trace] Preferred Remote kernel for ~/starfish/dexterity/gaussian_splatting/sam2_prototyping.ipynb is a3d59a37-2245-4828-a481-339685d03287
13:01:13.605 [debug] End refreshing Kernel Picker (1723813273526)
13:01:13.750 [trace] No controller, hence notebook communications cannot be initialized for editor /Interactive-1.interactive
13:01:13.750 [trace] No controller, hence notebook communications cannot be initialized for editor ~/starfish/dexterity/gaussian_splatting/sam2_prototyping.ipynb
13:01:13.751 [debug] Start refreshing Interpreter Kernel Picker
13:01:13.752 [debug] Start refreshing Kernel Picker (1723813273752)
13:01:13.943 [error] Failed to validate Password info [D [FetchError]: request to http://127.0.0.1:8888/ failed, reason: connect ECONNREFUSED 127.0.0.1:8888
at ClientRequest.<anonymous> (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.8.2024080201-linux-x64/dist/node_modules/node-fetch.js:1:306417)
at ClientRequest.emit (node:events:519:28)
at Socket.socketErrorListener (node:_http_client:500:9)
at Socket.emit (node:events:519:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
type: 'system',
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED'
}
13:01:13.992 [error] Error fetching kernels from http://127.0.0.1:8888/ (127.0.0.1): [FetchError: request to http://127.0.0.1:8888/api/kernels?1723813273986 failed, reason: connect ECONNREFUSED 127.0.0.1:8888
at ClientRequest.<anonymous> (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.8.2024080201-linux-x64/dist/node_modules/node-fetch.js:1:306417)
at ClientRequest.emit (node:events:519:28)
at Socket.socketErrorListener (node:_http_client:500:9)
at Socket.emit (node:events:519:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
13:01:13.992 [trace] Disposing Jupyter Lab Helper
13:01:13.992 [trace] SessionManager - dispose contents manager
13:01:13.993 [trace] ShutdownSessionAndConnection - dispose session manager
13:01:13.994 [trace] Finished disposing Jupyter Lab Helper
13:01:13.995 [error] Jupyter Lab Helper:getKernelSpecs failure: [Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
at v.dispose (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.8.2024080201-linux-x64/dist/node_modules/@jupyterlab/services.js:11:10935)
at ni.dispose (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.8.2024080201-linux-x64/dist/node_modules/@jupyterlab/services.js:11:29299)
at /home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.8.2024080201-linux-x64/dist/extension.node.js:181:17775
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
13:01:13.997 [error] Failed to validate Password info [D [FetchError]: request to http://127.0.0.1:8888/ failed, reason: connect ECONNREFUSED 127.0.0.1:8888
at ClientRequest.<anonymous> (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.8.2024080201-linux-x64/dist/node_modules/node-fetch.js:1:306417)
at ClientRequest.emit (node:events:519:28)
at Socket.socketErrorListener (node:_http_client:500:9)
at Socket.emit (node:events:519:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
type: 'system',
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED'
}
13:01:14.003 [error] Error fetching kernels from http://127.0.0.1:8888/ (127.0.0.1): [FetchError: request to http://127.0.0.1:8888/api/kernels?1723813273999 failed, reason: connect ECONNREFUSED 127.0.0.1:8888
at ClientRequest.<anonymous> (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.8.2024080201-linux-x64/dist/node_modules/node-fetch.js:1:306417)
at ClientRequest.emit (node:events:519:28)
at Socket.socketErrorListener (node:_http_client:500:9)
at Socket.emit (node:events:519:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
13:01:14.003 [trace] Disposing Jupyter Lab Helper
13:01:14.003 [trace] SessionManager - dispose contents manager
13:01:14.003 [trace] ShutdownSessionAndConnection - dispose session manager
13:01:14.004 [trace] Finished disposing Jupyter Lab Helper
13:01:14.005 [error] Jupyter Lab Helper:getKernelSpecs failure: [Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
at v.dispose (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.8.2024080201-linux-x64/dist/node_modules/@jupyterlab/services.js:11:10935)
at ni.dispose (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.8.2024080201-linux-x64/dist/node_modules/@jupyterlab/services.js:11:29299)
at /home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.8.2024080201-linux-x64/dist/extension.node.js:181:17775
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
13:01:14.005 [error] UniversalRemoteKernelFinder: Failed to get kernels without cache [FetchError: request to http://127.0.0.1:8888/api/kernels?1723813273999 failed, reason: connect ECONNREFUSED 127.0.0.1:8888
at ClientRequest.<anonymous> (/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.8.2024080201-linux-x64/dist/node_modules/node-fetch.js:1:306417)
at ClientRequest.emit (node:events:519:28)
at Socket.socketErrorListener (node:_http_client:500:9)
at Socket.emit (node:events:519:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
13:01:14.005 [trace] UniversalRemoteKernelFinder: Writing 0 remote kernel connection metadata to cache
13:01:14.055 [trace] Python API env change detected, update => '/bin/python'
13:01:14.057 [trace] Python API env change detected, update => '/usr/bin/python'
13:01:14.061 [debug] Refreshed Environments
13:01:14.204 [trace] Python API env change detected, update => '/bin/python3.10'
13:01:14.204 [trace] Search for KernelSpecs in Interpreter /bin/python3.10
13:01:14.211 [trace] Python API env change detected, update => '/usr/bin/python3.10'
13:01:14.212 [trace] Search for KernelSpecs in Interpreter /usr/bin/python3.10
13:01:14.248 [trace] Conda file is conda
13:01:14.258 [trace] Python API env change detected, update => '/bin/python3'
13:01:14.258 [trace] Search for KernelSpecs in Interpreter /bin/python3
13:01:14.261 [trace] Python API env change detected, update => '/usr/bin/python3'
13:01:14.261 [trace] Search for KernelSpecs in Interpreter /usr/bin/python3
13:01:15.062 [debug] End refreshing Kernel Picker (1723813273752)
13:01:16.148 [debug] No interpreter for Pylance for Notebook URI "/Interactive-1.interactive"
13:03:26.869 [debug] Start refreshing Kernel Picker (1723813406869)
13:03:26.871 [info] Starting interactive window for resource '' with controller '.jvsc74a57bd00c6716fb5338085ebb390e36742a6aaa12daa435cd75110ff1c0f30feb58cf15./home/~/starfish/bazel-bin/sam2_python./home/~/starfish/bazel-bin/sam2_python.-m#ipykernel_launcher (Interactive)'
13:03:26.872 [warn] The following kernels use interpreters that are no longer valid or not recognized by Python extension, Kernels startUsingPythonInterpreter:'id=.jvsc74a57bd0e7370f93d1d0cde622a1f8e1c04877d8463912d04d973331ad4851f04de6915a./bin/python./bin/python.-m#ipykernel_launcher'(interpreterId='/bin/python'),startUsingPythonInterpreter:'id=.jvsc74a57bd0767d51c1340bd893661ea55ea3124f6de3c7a262a8b4abca0554b478b1e2ff90./usr/bin/python./usr/bin/python.-m#ipykernel_launcher'(interpreterId='/usr/bin/python'),startUsingPythonInterpreter:'id=.jvsc74a57bd097cc609b13305c559618ec78a438abc56230b9381f827f22d070313b9a1f3777./bin/python3.10./bin/python3.10.-m#ipykernel_launcher'(interpreterId='/bin/python3.10'),startUsingPythonInterpreter:'id=.jvsc74a57bd08a94588eda9d64d9e9a351ab8144e55b1fabf5113b54e67dd26a8c27df0381b3./usr/bin/python3.10./usr/bin/python3.10.-m#ipykernel_launcher'(interpreterId='/usr/bin/python3.10') and valid interpreter ids include /bin/python3, /usr/bin/python3
13:03:26.872 [debug] Local Python connection deleted startUsingPythonInterpreter:'.jvsc74a57bd0e7370f93d1d0cde622a1f8e1c04877d8463912d04d973331ad4851f04de6915a./bin/python./bin/python.-m#ipykernel_launcher: (interpreter id=/bin/python)',startUsingPythonInterpreter:'.jvsc74a57bd0767d51c1340bd893661ea55ea3124f6de3c7a262a8b4abca0554b478b1e2ff90./usr/bin/python./usr/bin/python.-m#ipykernel_launcher: (interpreter id=/usr/bin/python)',startUsingPythonInterpreter:'.jvsc74a57bd097cc609b13305c559618ec78a438abc56230b9381f827f22d070313b9a1f3777./bin/python3.10./bin/python3.10.-m#ipykernel_launcher: (interpreter id=/bin/python3.10)',startUsingPythonInterpreter:'.jvsc74a57bd08a94588eda9d64d9e9a351ab8144e55b1fabf5113b54e67dd26a8c27df0381b3./usr/bin/python3.10./usr/bin/python3.10.-m#ipykernel_launcher: (interpreter id=/usr/bin/python3.10)'
13:03:26.872 [debug] End refreshing Kernel Picker (1723813406869)
13:03:26.978 [trace] No controller, hence notebook communications cannot be initialized for editor ~/starfish/dexterity/gaussian_splatting/sam2_prototyping.ipynb
13:03:26.984 [trace] No controller, hence notebook communications cannot be initialized for editor ~/starfish/dexterity/gaussian_splatting/sam2_prototyping.ipynb
13:03:26.986 [trace] No controller, hence notebook communications cannot be initialized for editor /Interactive-2.interactive
13:03:26.994 [debug] Controller selection change completed
13:03:26.995 [trace] Preferred Remote kernel for /Interactive-2.interactive is undefined
13:03:27.000 [debug] Get Custom Env Variables, Class name = Sm, completed in 1ms, has a truthy return value, Arg 1: "~/starfish", Arg 2: "RunPythonCode"
13:03:27.052 [debug] Interactive Window Editor Created: untitled:/Interactive-2.interactive with input box: vscode-interactive-input:/InteractiveInput-2
13:03:27.054 [debug] start the kernel, options.disableUI=false for /Interactive-2.interactive
13:03:27.059 [info] Starting Kernel (Python Path: ~/starfish/bazel-bin/sam2_python, Unknown) for '/Interactive-2.interactive' (disableUI=false)
13:03:27.060 [trace] Creating raw notebook for resource '/Interactive-2.interactive'
13:03:27.075 [debug] Get Custom Env Variables, Class name = Sm, completed in 1ms, has a truthy return value, Arg 1: "/Interactive-2.interactive", Arg 2: "RunPythonCode"
13:03:27.085 [trace] Registering commtarget jupyter.widget
13:03:27.087 [debug] Controller selection change completed
13:03:27.088 [debug] Launching kernel .jvsc74a57bd00c6716fb5338085ebb390e36742a6aaa12daa435cd75110ff1c0f30feb58cf15./home/~/starfish/bazel-bin/sam2_python./home/~/starfish/bazel-bin/sam2_python.-m#ipykernel_launcher for /Interactive-2.interactive in ~/starfish with ports 9001, 9000, 9004, 9002, 9003
13:03:27.359 [warn] Failed to get activated env vars for ~/starfish/bazel-bin/sam2_python in 360ms
13:03:27.361 [debug] Create ProcessService, Class name = Im (started execution), Arg 1: undefined
13:03:27.363 [debug] Get Custom Env Variables, Class name = Sm, completed in 2ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunNonPythonCode", Arg 3: undefined
13:03:27.363 [debug] Create ProcessService, Class name = Im, completed in 2ms, has a truthy return value, Arg 1: undefined
13:03:27.368 [info] Process Execution: ~/starfish/bazel-bin/sam2_python -c "import site;print("USER_BASE_VALUE");print(site.USER_BASE);print("USER_BASE_VALUE");"
13:03:27.395 [warn] Failed to get activated env vars for ~/starfish/bazel-bin/sam2_python in 321ms
13:03:27.764 [trace] USER_SITE for ~/starfish/bazel-bin/sam2_python is /home/~/.local/bin
13:03:27.765 [error] Unable to determine site packages path for python ~/starfish/bazel-bin/sam2_python (Unknown)
13:03:27.765 [trace] Prepend PATH with python bin for ~/starfish/bazel-bin/sam2_python
13:03:27.766 [error] Unable to determine site packages path for python ~/starfish/bazel-bin/sam2_python (Unknown)
13:03:27.766 [trace] Prepend PATH with python bin for ~/starfish/bazel-bin/sam2_python
13:03:27.767 [debug] Getting activated env variables, Class name = hd, completed in 769ms, has a truthy return value, Arg 1: "~/starfish", Arg 2: "~/starfish/bazel-bin/sam2_python", Arg 3: undefined
13:03:27.767 [debug] Getting activated env variables, Class name = hd, completed in 693ms, has a truthy return value, Arg 1: "/Interactive-2.interactive", Arg 2: "~/starfish/bazel-bin/sam2_python", Arg 3: undefined
13:03:27.772 [info] Process Execution: ~/starfish/bazel-bin/sam2_python -m pip list
13:03:27.777 [info] Process Execution: ~/starfish/bazel-bin/sam2_python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
13:03:27.782 [info] Process Execution: ~/starfish/bazel-bin/sam2_python -m ipykernel_launcher --f=/home/~/.local/share/jupyter/runtime/kernel-v2-5163FbcEL71kdQdw.json
> cwd: ~/starfish
13:03:27.782 [debug] Kernel process 7115.
13:03:27.813 [debug] Waiting for Raw Session to be ready in postStartRawSession
13:03:27.814 [debug] Waiting for Raw session to be ready, status: connected
13:03:27.814 [trace] Raw session connected
13:03:27.815 [debug] Waited for Raw session to be ready & got status: connected
13:03:27.815 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
13:03:27.815 [debug] Kernel status is 'unknown' before requesting kernel info and after ready
13:03:27.815 [debug] Sending request for kernelInfo
13:03:28.317 [trace] Did not get a response for requestKernelInfo
13:03:28.318 [debug] Sending request for kernelInfo
13:03:28.819 [trace] Did not get a response for requestKernelInfo
13:03:28.823 [debug] Sending request for kernelInfo
13:03:28.990 [trace] ipykernel version & path 6.29.4, ~/starfish/bazel-bin/sam2_python.runfiles/pypi_ipykernel/site-packages/ipykernel/__init__.py for ~/starfish/bazel-bin/sam2_python
13:03:29.325 [trace] Did not get a response for requestKernelInfo
13:03:29.325 [debug] Sending request for kernelInfo
13:03:29.526 [debug] Kernel output 7115: To connect another client to this kernel, use:
--existing kernel-v2-5163FbcEL71kdQdw.json
13:03:29.698 [trace] Got response for requestKernelInfo
13:03:29.699 [debug] Successfully completed postStartRawSession after 4 attempt(s) in 1884ms
13:03:29.702 [trace] Executing silently Code (busy) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys
13:03:29.720 [trace] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s)
13:03:29.721 [trace] Started running kernel initialization for /Interactive-2.interactive
13:03:29.722 [trace] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy
13:03:29.798 [trace] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 1 output(s)
13:03:29.799 [trace] Determined IPyWidgets Version as 8
13:03:29.800 [trace] Version of IPyWidgets 8 determined after 2.714s
13:03:29.801 [trace] Version of IPyWidgets 8 determined after 2.552s
13:03:29.802 [trace] Executing silently Code (idle) = import types as _VSCODE_types\nimport os\nimport hashlib as _VSCODE_hashlib\nfrom IPython import get_ip
13:03:29.825 [trace] Executing silently Code (completed) = import types as _VSCODE_types\nimport os\nimport hashlib as _VSCODE_hashlib\nfrom IPython import get_ip with 0 output(s)
13:03:29.826 [debug] Requesting Kernel info
13:03:29.827 [trace] Got Kernel info
13:03:29.828 [trace] End running kernel initialization, now waiting for idle
13:03:29.829 [trace] Waiting for idle on (kernel): 3bd8b0b2-78a1-41c5-af8b-18bb11171120 -> idle
13:03:29.830 [trace] Finished waiting for idle on (kernel): 3bd8b0b2-78a1-41c5-af8b-18bb11171120 -> idle
13:03:29.831 [trace] End running kernel initialization, session is idle
13:03:29.833 [trace] Registering Kernel Completion Provider from kernel Python for language python
13:03:29.835 [trace] IPyWidgetScriptSource.initialize
13:03:29.836 [info] Kernel successfully started
13:03:29.841 [debug] getDataDirsImpl, Class name = Mr (started execution), Arg 1: "/Interactive-2.interactive", Arg 2: "~/starfish/bazel-bin/sam2_python"
13:03:29.843 [debug] Start refreshing Kernel Picker (1723813409843)
13:03:29.843 [debug] Get Custom Env Variables, Class name = Sm, completed in 2ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
13:03:29.843 [debug] Jupyter Paths :
13:03:29.844 [debug] End refreshing Kernel Picker (1723813409843)
13:03:29.849 [info] Process Execution: ~/starfish/bazel-bin/sam2_python /home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.8.2024080201-linux-x64/pythonFiles/printJupyterDataDir.py
13:03:30.192 [debug] getDataDirsImpl, Class name = Mr, completed in 351ms, has a truthy return value, Arg 1: "/Interactive-2.interactive", Arg 2: "~/starfish/bazel-bin/sam2_python", Return Value: <Uri:/home/~/.local/share/jupyter>, <Uri:/home/~/.cache/bazel/_bazel_~/9ef1bf014edaf65afe1917d954d1a34a/external/python_3_10_x86_64-unknown-linux-gnu/share/jupyter>, <Uri:/usr/local/share/jupyter>, <Uri:/usr/share/jupyter>
13:03:30.455 [trace] Web view is ready to receive widget messages
13:03:30.616 [trace] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
13:03:30.618 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
13:03:30.622 [trace] Widget Message: data-base-url set to https://vscode-remote%2Battached-002dcontainer-002b7b22636f6e7461696e65724e616d65223a222f73746172666973682d646576656c6f70227d-0040ssh-002dremote-002bgcp3.vscode-resource.vscode-cdn.net/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.8.2024080201-linux-x64/temp/scripts/bf620e275f25a5dacebfa847cbdcd90495e62e2587552245e1ddce552efb1a93/jupyter
13:03:30.623 [trace] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
13:03:30.624 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
13:03:30.625 [trace] Widget Message: data-base-url set to https://vscode-remote%2Battached-002dcontainer-002b7b22636f6e7461696e65724e616d65223a222f73746172666973682d646576656c6f70227d-0040ssh-002dremote-002bgcp3.vscode-resource.vscode-cdn.net/home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.8.2024080201-linux-x64/temp/scripts/bf620e275f25a5dacebfa847cbdcd90495e62e2587552245e1ddce552efb1a93/jupyter
13:03:32.311 [debug] Jupyter completion time: 16
13:03:32.315 [debug] Execution of code ms-toolsai.jupyter-1 completed in 18ms
13:03:35.614 [debug] Handle Execution of Cells 1 for /Interactive-2.interactive
13:03:35.618 [trace] Execute Notebook /Interactive-2.interactive. Step 1
13:03:35.618 [trace] Connect to Kernel /Interactive-2.interactive. Step 2
13:03:35.619 [trace] Connected to Kernel /Interactive-2.interactive. Step 3
13:03:35.620 [trace] executeCell 1. Step 4
13:03:35.623 [trace] Cell Index:1 sent to kernel
13:03:35.626 [debug] start the kernel, options.disableUI=false for /Interactive-1.interactive
13:03:35.628 [info] Starting Kernel (Python Path: ~/starfish/bazel-bin/sam2_python, Unknown) for '/Interactive-1.interactive' (disableUI=false)
13:03:35.628 [trace] Creating raw notebook for resource '/undefined'
13:03:35.633 [trace] Start cell 1 execution @ 1723813415633 (clear output)
13:03:35.636 [debug] Kernel acknowledged execution of cell 1 @ 1723813415633
13:03:35.641 [debug] Get Custom Env Variables, Class name = Sm, completed in 1ms, has a truthy return value, Arg 1: "/undefined", Arg 2: "RunPythonCode"
13:03:35.651 [debug] Launching kernel .jvsc74a57bd00c6716fb5338085ebb390e36742a6aaa12daa435cd75110ff1c0f30feb58cf15./home/~/starfish/bazel-bin/sam2_python./home/~/starfish/bazel-bin/sam2_python.-m#ipykernel_launcher for /undefined in ~/starfish with ports 9006, 9005, 9009, 9007, 9008
13:03:35.869 [warn] Failed to get activated env vars for ~/starfish/bazel-bin/sam2_python in 229ms
13:03:35.871 [error] Unable to determine site packages path for python ~/starfish/bazel-bin/sam2_python (Unknown)
13:03:35.871 [trace] Prepend PATH with python bin for ~/starfish/bazel-bin/sam2_python
13:03:35.872 [debug] Getting activated env variables, Class name = hd, completed in 232ms, has a truthy return value, Arg 1: "/undefined", Arg 2: "~/starfish/bazel-bin/sam2_python", Arg 3: undefined
13:03:35.877 [info] Process Execution: ~/starfish/bazel-bin/sam2_python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
13:03:35.882 [info] Process Execution: ~/starfish/bazel-bin/sam2_python -m ipykernel_launcher --f=/home/~/.local/share/jupyter/runtime/kernel-v2-51637tJGNF6y2gmP.json
> cwd: ~/starfish
13:03:35.883 [debug] Kernel process 7223.
13:03:35.885 [debug] Waiting for Raw Session to be ready in postStartRawSession
13:03:35.885 [debug] Waiting for Raw session to be ready, status: connected
13:03:35.885 [trace] Raw session connected
13:03:35.886 [debug] Waited for Raw session to be ready & got status: connected
13:03:35.886 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
13:03:35.886 [debug] Kernel status is 'unknown' before requesting kernel info and after ready
13:03:35.886 [debug] Sending request for kernelInfo
13:03:36.386 [trace] Did not get a response for requestKernelInfo
13:03:36.387 [debug] Sending request for kernelInfo
13:03:36.887 [trace] Did not get a response for requestKernelInfo
13:03:36.888 [debug] Sending request for kernelInfo
13:03:37.138 [trace] ipykernel version & path 6.29.4, ~/starfish/bazel-bin/sam2_python.runfiles/pypi_ipykernel/site-packages/ipykernel/__init__.py for ~/starfish/bazel-bin/sam2_python
13:03:37.389 [trace] Did not get a response for requestKernelInfo
13:03:37.390 [debug] Sending request for kernelInfo
13:03:37.675 [debug] Kernel output 7223: To connect another client to this kernel, use:
--existing kernel-v2-51637tJGNF6y2gmP.json
13:03:37.841 [trace] Got response for requestKernelInfo
13:03:37.841 [debug] Successfully completed postStartRawSession after 4 attempt(s) in 1955ms
13:03:37.843 [trace] Executing silently Code (idle) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys
13:03:37.867 [trace] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s)
13:03:37.868 [trace] Started running kernel initialization for /Interactive-1.interactive
13:03:37.869 [trace] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy
13:03:37.967 [trace] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 1 output(s)
13:03:37.968 [trace] Determined IPyWidgets Version as 8
13:03:37.969 [trace] Executing silently Code (idle) = import types as _VSCODE_types\nimport os\nimport hashlib as _VSCODE_hashlib\nfrom IPython import get_ip
13:03:37.991 [trace] Executing silently Code (completed) = import types as _VSCODE_types\nimport os\nimport hashlib as _VSCODE_hashlib\nfrom IPython import get_ip with 0 output(s)
13:03:37.991 [debug] Requesting Kernel info
13:03:37.992 [trace] Got Kernel info
13:03:37.992 [trace] End running kernel initialization, now waiting for idle
13:03:37.993 [trace] Waiting for idle on (kernel): bdeb1a63-cf64-484c-bdb0-ecbc9472b85c -> idle
13:03:37.994 [trace] Finished waiting for idle on (kernel): bdeb1a63-cf64-484c-bdb0-ecbc9472b85c -> idle
13:03:37.994 [trace] End running kernel initialization, session is idle
13:03:37.996 [trace] Registering Kernel Completion Provider from kernel Python for language python
13:03:37.997 [info] Kernel successfully started
13:03:37.998 [debug] Initializing __file__ in setFileInKernel with file:///undefined for mode multiple
13:03:37.999 [trace] Executing silently Code (idle) = __file__ = '/undefined'
13:03:38.000 [debug] Start refreshing Kernel Picker (1723813418000)
13:03:38.000 [debug] End refreshing Kernel Picker (1723813418000)
13:03:38.009 [trace] Executing silently Code (completed) = __file__ = '/undefined' with 0 output(s)
13:03:38.250 [trace] Cell 1 completed in 2.617s (start: 1723813415633, end: 1723813418250)
13:03:38.252 [trace] Cell 1 executed successfully
Thanks so much for your help with this! Guessing this is user error / a weird edge case but struggling to find the cause / a good workaround.
Apologies for the delay in getting back to you. If I understand this correctly, everything works fine in interactive window and regular Python. However in Notebooks you cannot select this Python environment as its not displayed, is that correct?
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!
Applies To
What happened?
Using the suggested (but complicated) workflow to pick a custom interpreter, I run:
Python: Select Interpreter
-> select my interpreterSelect Kernel->Python Environments
. The current python interpreter is not available.Ironically, I can run
Jupyter: Create Interactive Window
which connects just fine. I just can't run an existing notebook :upside_down_face:I should note my workflow is pretty nontraditional -- I'm using a python executable built with Bazel that changes some paths etc on startup. But still, I can run it fine from the command line + sometimes can pick it as a kernel using the above workflow -- it just stopped working randomly today (possibly due to a clean rebuild).
Really appreciate your help + sorry if my workflow is silly. This is a possible duplicate of many issues also (#15086, #15087, and their duplicates).
VS Code Version
1.92.0
Jupyter Extension Version
2024.7.0
Jupyter logs
Coding Language and Runtime Version
Python v3.10.14
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Remote