DonJayamanne / vscode-python-manager

Python Environment & Package Manager
MIT License
119 stars 20 forks source link

Loading managed Windows PowerShell failed with error 8009001d - VS Code Python Environment Manager extension #88

Open lexignot opened 8 months ago

lexignot commented 8 months ago

Type: Bug

In Visual Studio Code, in the Python Environment Manager extension, hover any Python environment installed in C:\program files, and click on "Open in Terminal".

The terminal is not loading in VS code and displays briefly the error "Loading managed Windows PowerShell failed with error 8009001d." And then VS Code displays a notification with the following error: " The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe" terminated with exit code: -65536."

Python Env Management error 1 Python Env Management error 2

Extension version: 1.2.4 VS Code version: Code 1.87.0 (019f4d1419fbc8219a181fab7892ebccf7ee29a2, 2024-02-27T23:41:44.469Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz (4 x 2496)| |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| |Load (avg)|undefined| |Memory (System)|7.92GB (1.42GB free)| |Process Argv|--crash-reporter-id f9a09de2-4d69-4ceb-8f3a-f7d8de286ba6| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 accentitlementsc:30887149 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 pydisww1:30959800 8082a590:30971561 edj9j583:30969295 a89i1917:30973842 bg6jg535:30958357 78248357:30976999 dsvsc020:30976470 666c4381:30973075 ```
DonJayamanne commented 8 months ago

Does the powershell terminal work on your machine?

lexignot commented 8 months ago

I guess so, I apologize I am beginner. Do you want me to type a specific command in PowerShell to test?

hjenryin commented 7 months ago

Same here. I also get the 8009001d flashing on my terminal. Then the exit code is 4294901760 instead of -65536.

AtariWebster commented 6 months ago

@DonJayamanne Hey friend! I have been dealing with this same error in VScode. For some reason the launch environment will not work. I'm intermediate, but I have been working on this issue for a week. Refuses to launch from the Python Environment Manager. I'm only experiencing this since updating to the windows insider beta program. Please let me know if you have any information. Driving me crazy because I enjoy your PEM.

Fosly commented 6 months ago

Same error when trying to activate global or venv.

Foptciy commented 3 weeks ago

I had the same issue, deleting the venv and re-creating it worked for me,