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

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

Open
lexignot opened this issue Mar 3, 2024 · 6 comments

Comments

@lexignot
Copy link

lexignot commented Mar 3, 2024

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
Copy link
Owner

Does the powershell terminal work on your machine?

@lexignot
Copy link
Author

lexignot commented Mar 4, 2024

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

@hjenryin
Copy link

hjenryin commented Mar 8, 2024

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

@AtariWebster
Copy link

@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
Copy link

Fosly commented Apr 18, 2024

Same error when trying to activate global or venv.

@Foptciy
Copy link

Foptciy commented Oct 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants