Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stuck on "Activating Python environment." #24234

Closed
Silverwolf-x opened this issue Oct 3, 2024 · 1 comment
Closed

stuck on "Activating Python environment." #24234

Silverwolf-x opened this issue Oct 3, 2024 · 1 comment
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@Silverwolf-x
Copy link

Type: Performance Issue

After I removed the conda environment (e.g., named "py312"), the next time I launched the Python file, which had "py312" set as its interpreter, VSCode seemed unresponsive, stuck on "Activating Python environment." Restarting didn't help either, and in the extension's "Uncaught Errors," the following message appeared:

Failed to resolve env "D:\miniforge3\envs\py312\python.exe"

Extension version: 2024.14.1
VS Code version: Code 1.93.1 (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40, 2024-09-11T17:20:05.685Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs AMD Ryzen 7 7840H with Radeon 780M Graphics (16 x 3793)
GPU Status 2d_canvas: enabled
canvas_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
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 27.69GB (20.63GB free)
Process Argv --crash-reporter-id 5a75a3b3-61fc-40c2-bfe6-fe79728b6872
Screen Reader no
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
    0	   131	  7704	code main
    0	    28	  2276	   crashpad-handler
    2	   153	  6008	   gpu-process
    0	   195	  6024	extensionHost [1]
    0	     8	  4940	     c:\Users\Administrator\.vscode\extensions\ms-python.python-2024.14.1-win32-x64\python-env-tools\bin\pet.exe server
    0	    11	  6744	       C:\Windows\system32\conhost.exe 0x4
    0	   202	  5960	     electron-nodejs (bundle.js )
    0	    86	  7796	     powershell.exe -NoLogo -InputFormat Text -NoExit -Command -
    0	     8	 11620	       C:\Windows\system32\conhost.exe 0x4
    0	   104	  6232	ptyHost
    0	     7	  6064	     conpty-agent
    0	     7	  7404	     conpty-agent
    0	    89	 10628	     C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"d:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}"
    0	    83	 10940	     C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"d:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}"
    0	    97	  8908	fileWatcher [1]
    1	   110	 10040	shared-process
    0	    41	 10580	   utility-network-service
Workspace Info
|  Window (main.py)
|    Folder (CNN-MNIST): 196 files
|      File types: png(93) log(40) ckpt(34) py(5) gz(4) pyc(4) gitignore(1)
|                  yaml(1) md(1) txt(1)
|      Conf files:;
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
vscrp:30673768
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
da93g388:31013173
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
2f103344:31071589
impr_priority:31102340
nativerepl2:31139839
refactort:31108082
pythonrstrctxt:31112756
flighttreat:31134774
wkspc-onlycs-t:31132770
nativeloc1:31134641
wkspc-ranged-t:31151552
cf971741:31144450
autoexpandse:31146404
iacca1:31150322
notype1cf:31151524
cc771715:31146322

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Oct 3, 2024
@karthiknadig
Copy link
Member

Duplicate of #23922

@Silverwolf-x Please try VS Code 1.94 and Python extension v1.93.1. Let us know if that fixes your issue.

@karthiknadig karthiknadig closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2024
@github-actions github-actions bot added the info-needed Issue requires more information from poster label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants