Skip to content

unable to detect kernel in my venv #25315

@skyper91

Description

@skyper91

Type: Bug

Windows user. running a jupyter notebook in a venv. Closing and opening VSC in session is fine.

Everything works fine until I shutdown my computer, when I re open VSC, it cannot detect the venv. In terminal I can activate the venv just fine, but in the top right Detecting kernel is rotating constantly. If I click through that quick picker > Python environments > it searches for a while then shows Create python .. > venv > use existing but after i click existing it goes back to the detecting kernel & wheel.

If I reinstall VSC it fixes the issue for my session.

Have tried a few fixes based on other help requests but nothing is working besides a reinstall.

Have put in python logs and happy to put in any other requested info.

2025-07-23 11:10:25.692 [info] Native locator: Refresh started
2025-07-23 11:10:25.751 [debug] Extension ms-toolsai.jupyter accessed onDidEnvironmentVariablesChange with args: undefined
2025-07-23 11:10:25.753 [debug] Extension ms-toolsai.jupyter accessed getEnvironmentVariables with args: undefined
2025-07-23 11:10:25.754 [debug] Extension ms-toolsai.jupyter accessed onDidEnvironmentVariablesChange with args: undefined
2025-07-23 11:10:25.777 [debug] Extension ms-toolsai.jupyter accessed onDidChangeEnvironments with args: undefined
2025-07-23 11:10:25.778 [debug] Extension ms-toolsai.jupyter accessed onDidChangeEnvironments with args: undefined
2025-07-23 11:10:25.778 [debug] Extension ms-toolsai.jupyter accessed onDidChangeActiveEnvironmentPath with args: undefined
2025-07-23 11:10:25.779 [debug] Extension ms-toolsai.jupyter accessed onDidChangeEnvironments with args: undefined
2025-07-23 11:10:25.818 [debug] Searching for conda.
2025-07-23 11:10:25.819 [debug] Probing conda binary: conda
2025-07-23 11:10:25.824 [info] > conda info --json
2025-07-23 11:10:25.839 [debug] Failed to spawn conda binary conda Error: spawn conda ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:483:16)
    at processTicksAndRejections (node:internal/process/task_queues:90:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn conda',
  path: 'conda',
  spawnargs: [ 'info', '--json' ]
}
2025-07-23 11:10:26.538 [debug] Couldn't locate the conda binary.
2025-07-23 11:10:28.660 [info] Native locator: Refresh started
2025-07-23 11:10:28.660 [info] Native locator: Refresh started
2025-07-23 11:10:28.667 [debug] Extension unknown accessed getActiveEnvironmentPath with args: undefined
2025-07-23 11:10:28.667 [debug] Extension unknown accessed resolveEnvironment with args: {"id":"C:\\USERS\\SLEEP\\CAREER_ANALYSIS\\.VENV\\SCRIPTS\\PYTHON.EXE","path":"c:\\Users\\sleep\\career_analysis\\.venv\\Scripts\\python.exe"}
2025-07-23 11:10:28.684 [debug] Extension ms-toolsai.jupyter accessed onDidChangeActiveEnvironmentPath with args: undefined
2025-07-23 11:10:28.686 [debug] Extension ms-toolsai.jupyter accessed onDidChangeEnvironments with args: undefined
2025-07-23 11:15:01.504 [info] Native locator: Refresh started
2025-07-23 11:15:01.506 [debug] Extension unknown accessed getActiveEnvironmentPath with args: undefined
2025-07-23 11:15:01.506 [debug] Extension unknown accessed resolveEnvironment with args: {"id":"C:\\USERS\\SLEEP\\CAREER_ANALYSIS\\.VENV\\SCRIPTS\\PYTHON.EXE","path":"c:\\Users\\sleep\\career_analysis\\.venv\\Scripts\\python.exe"}
2025-07-23 11:15:01.536 [debug] Extension ms-toolsai.jupyter accessed onDidChangeEnvironments with args: undefined
2025-07-23 11:15:01.539 [debug] Extension ms-toolsai.jupyter accessed onDidChangeActiveEnvironmentPath with args: undefined
2025-07-23 11:15:24.015 [info] Selected workspace c:\Users\sleep\career_analysis for creating virtual environment.
2025-07-23 11:15:25.369 [info] Selected interpreter c:\Users\sleep\career_analysis\.venv\Scripts\python.exe for creating virtual environment.
2025-07-23 11:15:25.392 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: "c:\\Users\\sleep\\career_analysis\\.venv\\Scripts\\python.exe"


Extension version: 2025.11.2025072201
VS Code version: Code 1.102.1 (7adae6a56e34cb64d08899664b814cf620465925, 2025-07-15T16:41:17.147Z)
OS version: Windows_NT x64 10.0.19045
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz (4 x 3000)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled<br>webnn: disabled_off|
|Load (avg)|undefined|
|Memory (System)|3.92GB (0.24GB free)|
|Process Argv|--crash-reporter-id 318a3451-a0b3-4ec1-84b1-6d775341f605|
|Screen Reader|no|
|VM|0%|
</details><details>
<summary>A/B Experiments</summary>
vsliv368:30146709
vswsl492:30256859
binariesv615:30325510
h48ei257:31000450
nativeloc1:31344060
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
hdaa2157:31222309
copilot_t_ci:31333650
e5gg6876:31282496
pythoneinst12:31285622
c7cif404:31314491
pythonpulldiag:31343502
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
0aa6g176:31307128
747dc170:31275177
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
pylancequickfixt:31350061
9d2cg352:31346308
usemarketplace:31343026
nesew2to5:31336538
agentclaude:31350858
82j33506:31327384
nes-diff-11:31337487
replacestringexc:31350595
nes-set-on:31351930
6abeh943:31336334
yijiwantestdri0626-c:31336931
0927b901:31350571
f76d9909:31348711
0cj2b977:31352657
a02b4192-color:31352671

Metadata

Metadata

Assignees

Labels

triage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions