You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: "Unable to handle" error when selecting Python interpreter from uv-managed .venv #25886
It appears that in the official VS Code Stable it does NOT reproduce. This issue only happens in Kiro.
Here is the output channel when trying to select a python interpreter showing the Trace level :
2026-04-06 10:32:18.143 [debug] Checking venv (ms-python.python:venv) for c:\Users\.....\.venv\Scripts\python.exe
2026-04-06 10:32:18.143 [debug] Failed to resolve venv env "c:\Users\.....\.venv\Scripts\python.exe": Error: Python Environment Tools (PET) failed after 3 restart attempts. Please reload the window or check the output channel for details. To debug, run "Python Environments: Run Python Environment Tool (PET) in Terminal" from the Command Palette.
2026-04-06 10:32:18.143 [debug] Failed to resolve env "c:\Users\.....\.venv\Scripts\python.exe": Error: Python Environment Tools (PET) failed after 3 restart attempts. Please reload the window or check the output channel for details. To debug, run "Python Environments: Run Python Environment Tool (PET) in Terminal" from the Command Palette.
2026-04-06 10:32:18.143 [debug] Manager venv (ms-python.python:venv) cannot handle c:\Users\.....\.venv\Scripts\python.exe
2026-04-06 10:32:18.143 [debug] Checking Conda (ms-python.python:conda) for c:\Users\.....\.venv\Scripts\python.exe
2026-04-06 10:32:18.143 [debug] Checking Global (ms-python.python:system) for c:\Users\.....\.venv\Scripts\python.exe
2026-04-06 10:32:18.144 [debug] Failed to resolve env "c:\Users\.....\.venv\Scripts\python.exe": Error: Python Environment Tools (PET) failed after 3 restart attempts. Please reload the window or check the output channel for details. To debug, run "Python Environments: Run Python Environment Tool (PET) in Terminal" from the Command Palette.
2026-04-06 10:32:18.144 [error] Unable to handle c:\Users\.....\.venv\Scripts\python.exe
When I try to run: Python Environments: Run Python Environment Tool (PET) in Terminal in the command palette, Find All Environments:
c:\Users\..\.kiro\extensions\ms-python.python-2026.4.0-universal\python-env-tools\bin\pet.exe find --verbose
&: The term 'c:\Users\..\.kiro\extensions\ms-python.python-2026.4.0-universal\python-env-tools\bin\pet.exe' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
When I try to run Python Environments: Run Python Environment Tool (PET) in Terminal in the command palette, Resolve Environment:
PS C:\Users\..\automate-everything-with-python\accessing-apis> & c:\Users\..\.kiro\extensions\ms-python.python-2026.4.0-universal\python-env-tools\bin\pet.exe resolve "C:\Users\..\automate-everything-with-python\accessing-apis\.venv\Scripts\python.exe"
&: The term 'c:\Users\..\.kiro\extensions\ms-python.python-2026.4.0-universal\python-env-tools\bin\pet.exe' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Activity
eleanorjboyd commentedon Apr 3, 2026
Two questions here:
camhelkuik commentedon Apr 6, 2026
eleanorjboyd commentedon Apr 22, 2026
Closing this issue — it's a Kiro-specific PET binary issue, not a VS Code or extension bug.
This is also a duplicate of microsoft/vscode-python-environments#1394 for the general "Unable to handle" class of issues.
If you experience this in official VS Code (not Kiro), please file a new issue with output logs from the "Python Environments" output channel. Thanks!