Skip to content

Unable to handle python when installed with scoop #187

@InfiniteLoopGameDev

Description

@InfiniteLoopGameDev

I have been unable to make the extension work, I have tried installing python using winget but I get the same error.

Python.log

2025-02-06 10:12:47.155 [info] L’expérience «pythonRecommendTensorboardExt» est active
2025-02-06 10:12:47.155 [info] L’expérience «pythonTerminalEnvVarActivation» est active
2025-02-06 10:12:47.155 [info] L’expérience «pythonTestAdapter» est active
2025-02-06 10:12:47.155 [error] EnvExt: Failed to resolve environment for c:\Users\coren\scoop\shims\python3.exe
2025-02-06 10:12:47.164 [info] > pyenv which python
2025-02-06 10:12:47.164 [info] cwd: .
2025-02-06 10:12:48.436 [info] Démarrage du serveur de langage Pylance
2025-02-06 10:12:48.445 [info] > ~\scoop\shims\python3.exe -c "import sys;print(sys.executable)"

Python Environements.log

2025-02-06 10:12:47.165 [info] Starting Python Locator C:\Users\coren\scoop\apps\vscode\1.96.4\data\extensions\ms-python.vscode-python-envs-0.1.2025013001-win32-x64\python-env-tools\bin\pet.exe server
2025-02-06 10:12:47.165 [error] No environment managers registered
2025-02-06 10:12:47.165 [error] Unable to handle c:\Users\coren\scoop\shims\python3.exe
2025-02-06 10:12:47.226 [error] No environment managers registered
2025-02-06 10:12:47.227 [error] Unable to handle c:\Users\coren\scoop\shims\python3.exe
2025-02-06 10:12:47.227 [error] No environment managers registered
2025-02-06 10:12:47.227 [error] Unable to handle c:\Users\coren\scoop\shims\python3.exe
2025-02-06 10:12:47.232 [error] No environment managers registered
2025-02-06 10:12:47.684 [warning] Failed to open HKLM\Software\Python, Os { code: 2, kind: NotFound, message: "Le fichier spécifié est introuvable." }
2025-02-06 10:12:47.685 [warning] Executable is empty HKCU\Software\Python\PythonCore\2.7\ExecutablePath
2025-02-06 10:12:47.686 [info] Discovered env: C:\Users\coren\AppData\Local\Programs\Python\Python313\python.exe
2025-02-06 10:12:47.687 [info] Env ("C:\\Users\\coren\\scoop\\shims\\python2.exe") in Path resolved as ResolvedPythonEnv { executable: "C:\\Users\\coren\\scoop\\apps\\python27\\current\\python.exe", prefix: "C:\\Users\\coren\\scoop\\apps\\python27\\current", version: "2.7.18.final.0", is64_bit: true, symlinks: Some(["C:\\Users\\coren\\scoop\\apps\\python27\\current\\python.exe", "C:\\Users\\coren\\scoop\\shims\\python2.exe"]) } and reported as Some(GlobalPaths)
2025-02-06 10:12:47.687 [info] Discovered env: C:\Users\coren\scoop\apps\python27\2.7.18\python.exe
2025-02-06 10:12:47.688 [info] Env ("C:\\Users\\coren\\scoop\\shims\\python3.exe") in Path resolved as ResolvedPythonEnv { executable: "C:\\Users\\coren\\scoop\\apps\\python\\current\\python.exe", prefix: "C:\\Users\\coren\\scoop\\apps\\python\\current", version: "3.13.2.final.0", is64_bit: true, symlinks: Some(["C:\\Users\\coren\\scoop\\apps\\python\\current\\python.exe", "C:\\Users\\coren\\scoop\\shims\\python3.exe"]) } and reported as Some(GlobalPaths)
2025-02-06 10:12:47.688 [info] Discovered env: C:\Users\coren\scoop\apps\python\3.13.2\python.exe
2025-02-06 10:12:47.688 [info] Env ("C:\\Users\\coren\\scoop\\shims\\python310.exe") in Path resolved as ResolvedPythonEnv { executable: "C:\\Users\\coren\\scoop\\apps\\python310\\current\\python.exe", prefix: "C:\\Users\\coren\\scoop\\apps\\python310\\current", version: "3.10.11.final.0", is64_bit: true, symlinks: Some(["C:\\Users\\coren\\scoop\\apps\\python310\\current\\python.exe", "C:\\Users\\coren\\scoop\\shims\\python310.exe"]) } and reported as Some(GlobalPaths)
2025-02-06 10:12:47.689 [info] Discovered env: C:\Users\coren\scoop\apps\python310\3.10.11\python.exe
2025-02-06 10:12:47.694 [info] Env ("C:\\Users\\coren\\scoop\\shims\\python38.exe") in Path resolved as ResolvedPythonEnv { executable: "C:\\Users\\coren\\scoop\\apps\\python38\\current\\python.exe", prefix: "C:\\Users\\coren\\scoop\\apps\\python38\\current", version: "3.8.10.final.0", is64_bit: true, symlinks: Some(["C:\\Users\\coren\\scoop\\apps\\python38\\current\\python.exe", "C:\\Users\\coren\\scoop\\shims\\python38.exe"]) } and reported as Some(GlobalPaths)
2025-02-06 10:12:47.695 [info] Discovered env: C:\Users\coren\scoop\apps\python38\3.8.10\python.exe
2025-02-06 10:12:47.789 [info] Locator Conda took 158.0987ms
2025-02-06 10:12:47.790 [info] Locator PipEnv took 1.0705ms
2025-02-06 10:12:47.790 [info] Locator Pixi took 1.0091ms
2025-02-06 10:12:47.790 [info] Locator Poetry took 7.9434ms
2025-02-06 10:12:47.790 [info] Locator PyEnv took 3.8583ms
2025-02-06 10:12:47.790 [info] Locator Venv took 563.6µs
2025-02-06 10:12:47.791 [info] Locator VirtualEnv took 152.1µs
2025-02-06 10:12:47.791 [info] Locator VirtualEnvWrapper took 781.2µs
2025-02-06 10:12:47.791 [info] Locator WindowsRegistry took 7.5866ms
2025-02-06 10:12:47.791 [info] Locator WindowsStore took 1.4286ms
2025-02-06 10:12:47.791 [info] Locator GlobalVirtualEnvs took 1.374ms
2025-02-06 10:12:47.791 [info] Locator Locators took 158.7846ms
2025-02-06 10:12:47.791 [info] Locator Path took 63.4822ms
2025-02-06 10:12:47.791 [info] Locator Workspaces took 10.6178ms
2025-02-06 10:12:47.792 [info] Conda not found, turning off conda features. [Error: Conda not found
	at O (C:\Users\coren\scoop\persist\vscode\data\extensions\ms-python.vscode-python-envs-0.1.2025013001-win32-x64\dist\extension.js:2:429278)
	at async t.registerCondaFeatures (C:\Users\coren\scoop\persist\vscode\data\extensions\ms-python.vscode-python-envs-0.1.2025013001-win32-x64\dist\extension.js:2:439524)
	at async Promise.all (index 1)]
2025-02-06 10:12:47.792 [info] Telemetry:  {"event":"RefreshPerformance","data":{"refreshPerformance":{"total":158,"breakdown":{"GlobalVirtualEnvs":1,"Locators":158,"Path":63,"Workspaces":10},"locators":{"Conda":158,"PipEnv":1,"Pixi":1,"Poetry":7,"PyEnv":3,"Venv":0,"VirtualEnv":0,"VirtualEnvWrapper":0,"WindowsRegistry":7,"WindowsStore":1}}}}
2025-02-06 10:12:48.436 [error] No environment managers registered
2025-02-06 10:12:48.589 [error] No environment managers registered
2025-02-06 10:12:48.589 [error] Unable to handle c:\Users\coren\scoop\shims\python3.exe
2025-02-06 10:12:48.591 [error] No environment managers registered
2025-02-06 10:12:48.591 [error] Unable to handle c:\Users\coren\scoop\shims\python3.exe
2025-02-06 10:12:48.593 [error] No environment managers registered
2025-02-06 10:12:48.594 [error] No environment managers registered

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions