Skip to content

Error popup with 'unresolvable venv' that was working until 1.20.1 #357

@Hnasar

Description

@Hnasar

I upgraded 1.16 to 1.20.1 today and suddenly started getting a lot of errors

in my workspace .vscode/settings.json I have

    "python.defaultInterpreterPath": "/usr/local/venvs/myvenv/bin/python",

This is the error output from the python environments extension.

2026-02-24 18:31:37.358 [error] [pet] �[2m   4.854676138s�[0m �[33m WARN�[0m �[2mpet_telemetry�[0m�[2m:�[0m Inaccurate Python Environment Info for =>
Environment (Venv)
   Executable  : /usr/local/venvs/myvenv/bin/python
   Version     : 3.12.7
   Prefix      : /usr/local/venvs/myvenv
   Symlinks    : "/usr/local/venvs/myvenv/bin/python"
               : "/usr/local/venvs/myvenv/bin/python3"
               : "/usr/local/venvs/myvenv/bin/python3.12"
.
Resolved as =>
Environment (Venv)
   Executable  : /usr/local/venvs/myvenv/bin/python
   Version     : 3.12.7.final.0
   Prefix      : /usr/local/venvs/versioned/myvenv-1.0.51
   Architecture: x64
   Symlinks    : "/usr/local/venvs/myvenv/bin/python"
               : "/usr/local/venvs/myvenv/bin/python3"
               : "/usr/local/venvs/myvenv/bin/python3.12"
               : "/usr/local/venvs/versioned/myvenv-1.0.51/bin/python"

Incorrect information =>
Environment Some(Venv) incorrectly identified
   Prefix is incorrect
2026-02-24 18:23:28.321 [warning] [pet] Configure request timed out, killing hung process for restart
2026-02-24 18:23:28.321 [info] [pet] Killing hung/crashed PET process
2026-02-24 18:23:28.321 [error] [pet] configure: Configuration error Request 'configure' timed out after 30000ms
2026-02-24 18:23:28.322 [warning] [pet] Request timed out, killing hung process for restart
2026-02-24 18:23:28.322 [error] [pet] Error refreshing Request 'configure' timed out after 30000ms
2026-02-24 18:23:28.322 [warning] [pet] Restarting Python Environment Tools (attempt 1/3, waiting 1000ms)
2026-02-24 18:23:28.322 [info] Pyenv not found, turning off pyenv features. [Error: Request 'configure' timed out after 30000ms
	at Timeout.<anonymous> (/usr/scratch/username/.vscode-server/extensions/ms-python.vscode-python-envs-1.20.1-linux-x64/dist/extension.js:2:534062)
	at listOnTimeout (node:internal/timers:588:17)
	at process.processTimers (node:internal/timers:523:7)]
2026-02-24 18:23:28.323 [info] [interpreterSelection] Applying initial environment selection for 1 workspace folder(s)
2026-02-24 18:23:28.324 [warning] [priorityChain] /usr/scratch/username/checkouts/dev5 defaultInterpreterPath '/usr/local/venvs/myvenv/bin/python' unresolvable, falling back to auto-discovery
2026-02-24 18:23:28.324 [error] [pet] Python Environment Tools exited unexpectedly with code null, signal SIGTERM
2026-02-24 18:23:29.338 [info] [pet] Starting Python Locator /usr/scratch/username/.vscode-server/extensions/ms-python.vscode-python-envs-1.20.1-linux-x64/python-env-tools/bin/pet server
2026-02-24 18:23:29.338 [info] [pet] Python Environment Tools restarted successfully
2026-02-24 18:23:29.339 [info] [pet] configure: Sending configuration update: {"workspaceDirectories":["/usr/scratch/username/checkouts/dev5"],"environmentDirectories":["/usr/scratch/username/checkouts/dev5/**/.venv"],"pipenvExecutable":"pipenv","poetryExecutable":"poetry","cacheDirectory":"/usr/scratch/username/.vscode-server/data/User/globalStorage/ms-python.vscode-python-envs/pythonLocator"}
2026-02-24 18:23:59.340 [warning] [pet] Configure request timed out, killing hung process for restart
2026-02-24 18:23:59.340 [info] [pet] Killing hung/crashed PET process
2026-02-24 18:23:59.340 [error] [pet] configure: Configuration error Request 'configure' timed out after 30000ms
2026-02-24 18:23:59.340 [warning] [pet] Request timed out, killing hung process for restart
2026-02-24 18:23:59.340 [error] [pet] Error refreshing Request 'configure' timed out after 30000ms
2026-02-24 18:23:59.340 [warning] [pet] Restarting Python Environment Tools (attempt 2/3, waiting 2000ms)
2026-02-24 18:23:59.542 [error] [pet] Python Environment Tools exited unexpectedly with code null, signal SIGTERM
2026-02-24 18:24:01.356 [info] [pet] Starting Python Locator /usr/scratch/username/.vscode-server/extensions/ms-python.vscode-python-envs-1.20.1-linux-x64/python-env-tools/bin/pet server
2026-02-24 18:24:01.356 [info] [pet] Python Environment Tools restarted successfully
2026-02-24 18:24:01.356 [info] [pet] configure: Sending configuration update: {"workspaceDirectories":["/usr/scratch/username/checkouts/dev5"],"environmentDirectories":["/usr/scratch/username/checkouts/dev5/**/.venv"],"pipenvExecutable":"pipenv","poetryExecutable":"poetry","cacheDirectory":"/usr/scratch/username/.vscode-server/data/User/globalStorage/ms-python.vscode-python-envs/pythonLocator"}

Downgrading the extension is a workaround.

cc @eleanorjboyd — not sure if it's a regression from ee031ad7e597060abd519f43e77b05b59ab090e0

(btw is this extension going to be required at some point? I'm a bit worried, anyway, thanks for taking a look!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions