Skip to content

Stale interpreter label for virtualenv showing old Python version despite executable being Python 3.14 #25691

Closed as not planned

Description

Summary
The VS Code Python extension shows a stale interpreter label (e.g., "venv (3.13.4)") for a workspace virtual environment even though the virtual environment's python.exe is Python 3.14.0 and pyvenv.cfg shows version = 3.14.0.

Environment

  • VS Code: 1.107.1 (Windows)
  • Python extension: v2025.20.1
  • Pylance: v2025.10.4
  • Project: MeemSaaS (Django)
  • Workspace path: D:\VScode Projects\MeemSaaS
  • Virtualenv path showing stale label: D:\VScode Projects\MeemSaaS\backend\venv\Scripts\python.exe (UI label: venv (3.13.4))
  • Actual python: D:\VScode Projects\MeemSaaS\backend\venv_314\Scripts\python.exe -> Python 3.14.0

Reproduction steps

  1. Create a new virtual environment using Python 3.14 and install dependencies (or replace python.exe in an existing venv).
  2. Open the workspace in VS Code and set the workspace interpreter to the venv path (workspace settings or via interpreter selector).
  3. Reload the window / restart VS Code.
  4. Observe interpreter selector: the listed label for the selected path still shows the old Python minor version (e.g., 3.13.4) even though python --version in that path reports 3.14.0.

Expected behavior

  • The interpreter selector should display the correct Python version that matches the interpreter executable (3.14.0).

Actual behavior

  • The interpreter selector displays a stale label (e.g., "venv (3.13.4)").

Additional diagnostic info

  • I cleared Python extension caches, fully reinstalled the Python extension and Pylance, and removed temporary metadata caches. The problem persists.
  • pyvenv.cfg shows version = 3.14.0 for the new venv.
  • Tests run via VS Code test runner still pick up the workspace interpreter path internally (the executable is correct), but UI labeling is inconsistent and confusing for users.

Logs / Artifacts

  • I can provide VS Code logs (shared process logs, extension host logs), the pyvenv.cfg files, and a screenshot showing the stale label if helpful.

Notes / Possible causes

  • This may be caused by caching interpreter metadata (stored label/metadata not invalidated when venv is updated in-place or when Python minor version changes without changing venv path).

Please let me know what additional logs or steps you'd like me to collect. Thanks!

Activity

  1. eleanorjboyd commented on Jan 5, 2026

    @eleanorjboyd
    Member

    Could you please run the Python Environment Tool and share the output? Here’s how:

    1. Open VS Code
    2. Press Ctrl/Cmd+Shift+P
    3. Run: Python: Run Python Environment Tool (PET) in Terminal...
    4. When prompted, choose “Search all”
    5. Wait until it finishes and a terminal called “Python Environment Tool” appears at the bottom
    6. Copy everything printed there and paste it here (or attach it as a text file)

    This will show us which environments VS Code detected and how they were resolved, which is very helpful for debugging interpreter issues 👍

  2. benoitperrin commented on Jan 13, 2026

    @benoitperrin

    Ma'moun Al-zyoud (@mamounalzyoud) I ran into the same issue.

    It was "fixed" it by running the command: "Python: Clear Cache and Reload", as suggested here.

    VS Code:
    Version: 1.107.1
    Commit: 994fd12f8d3a5aa16f17d42c041e5809167e845a
    Architecture: x64

    Operating System:
    OS: Linux (Ubuntu 24.04)
    Kernel: 6.14.0-37-generic
    Architecture: x86_64

  3. Jahongir-Qurbonov commented on Jan 16, 2026

    @Jahongir-Qurbonov

    Same issue Eleanor Boyd (@eleanorjboyd)

    I run this in VS Code: Python: Run Python Environment Tool (PET) in Terminal...

    j-user@j-host:~/Temp/check$ /home/j-user/.vscode/extensions/ms-python.vscode-python-envs-1.17.10151017-linux-x64/python-env-tools/bin/pet find --verbose
    [2026-01-16T05:54:56Z TRACE pet_core::os_environment] Env PATH: ["/home/j-user/.local/bin", "/home/j-user/.config/Code/User/globalStorage/github.copilot-chat/debugCommand", "/home/j-user/.config/Code/User/globalStorage/github.copilot-chat/copilotCli", "/home/j-user/.local/bin", "/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/usr/games", "/usr/local/games", "/snap/bin", "/snap/bin", "/home/j-user/.vscode/extensions/ms-python.debugpy-2025.19.2026011501-linux-x64/bundled/scripts/noConfigScripts"]
    [2026-01-16T05:54:56Z TRACE pet::find] Searching for environments in global folders: ["/home/j-user/.local/bin", "/home/j-user/.config/Code/User/globalStorage/github.copilot-chat/debugCommand", "/home/j-user/.config/Code/User/globalStorage/github.copilot-chat/copilotCli", "/home/j-user/.local/bin", "/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/usr/games", "/usr/local/games", "/snap/bin", "/snap/bin", "/home/j-user/.vscode/extensions/ms-python.debugpy-2025.19.2026011501-linux-x64/bundled/scripts/noConfigScripts", "/etc", "/lib", "/lib/x86_64-linux-gnu", "/lib64", "/usr/include", "/usr/lib", "/usr/lib/x86_64-linux-gnu", "/usr/lib64", "/usr/libexec", "/usr/local", "/usr/local/etc", "/usr/local/lib", "/usr/share", "/opt", "/home/j-user/.local/bin"]
    [2026-01-16T05:54:56Z TRACE pet::find] Searching for environments in global venv folders: []
    [2026-01-16T05:54:56Z TRACE pet::find] Searching using locator: Conda
    [2026-01-16T05:54:56Z TRACE pet::find] Searching for environments in workspace folders: ["/home/j-user/Temp/check"]
    [2026-01-16T05:54:56Z TRACE pet::find] Searching using locator: PyEnv
    [2026-01-16T05:54:56Z TRACE pet::find] Searching using locator: Pixi
    [2026-01-16T05:54:56Z TRACE pet::find] Completed searching using locator: Pixi in 63.474µs
    [2026-01-16T05:54:56Z TRACE pet::find] Searching using locator: Uv
    [2026-01-16T05:54:56Z TRACE pet_pyenv] PyEnv Info PyEnvInfo { exe: None, versions: None, version: None }
    [2026-01-16T05:54:56Z TRACE pet_pyenv] PyEnv versions directory not found
    [2026-01-16T05:54:56Z TRACE pet::find] Completed searching using locator: PyEnv in 133.28µs
    [2026-01-16T05:54:56Z TRACE pet_uv] uv-managed venv found for project in /home/j-user/Temp/check
    [2026-01-16T05:54:56Z TRACE pet::find] Searching using locator: Poetry
    [2026-01-16T05:54:56Z TRACE pet_poetry::manager] Poetry exe not found
    [2026-01-16T05:54:56Z TRACE pet_poetry] Poetry Manager None
    [2026-01-16T05:54:56Z TRACE pet_poetry::pyproject_toml] Finding poetry file in "/home/j-user/Temp/check"
    [2026-01-16T05:54:56Z TRACE pet_poetry::pyproject_toml] Parsing poetry file: "/home/j-user/Temp/check/pyproject.toml"
    [2026-01-16T05:54:56Z TRACE pet_poetry::pyproject_toml] Poetry project name not found in "/home/j-user/Temp/check/pyproject.toml", trying the new format
    [2026-01-16T05:54:56Z TRACE pet::find] Searching using locator: PipEnv
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/home/j-user/.conda/.condarc")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/etc/miniconda3/mambarc")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] Conda environments in known paths ["/bin", "/etc", "/home/j-user/.config/Code/User/globalStorage/github.copilot-chat/copilotCli", "/home/j-user/.config/Code/User/globalStorage/github.copilot-chat/debugCommand", "/home/j-user/.local/bin", "/home/j-user/.vscode/extensions/ms-python.debugpy-2025.19.2026011501-linux-x64/bundled/scripts/noConfigScripts", "/lib", "/lib/x86_64-linux-gnu", "/lib64", "/opt", "/sbin", "/snap/bin", "/usr/bin", "/usr/games", "/usr/include", "/usr/lib", "/usr/lib/x86_64-linux-gnu", "/usr/lib64", "/usr/libexec", "/usr/local", "/usr/local/bin", "/usr/local/etc", "/usr/local/games", "/usr/local/lib", "/usr/local/sbin", "/usr/sbin", "/usr/share"]
    [2026-01-16T05:54:56Z TRACE pet::find] Searching using locator: VirtualEnvWrapper
    [2026-01-16T05:54:56Z TRACE pet::find] Completed searching using locator: VirtualEnvWrapper in 355.204µs
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/home/j-user/.condarc")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/etc/miniconda3/.condarc")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/var/lib/miniconda/condarc")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/home/j-user/.conda/condarc.d")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/home/j-user/.config/conda/condarc")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/home/j-user/.conda/condarc")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/home/j-user/.config/conda/.condarc")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/var/lib/miniconda3/.condarc")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/etc/miniconda3/condarc")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/var/lib/miniconda/.condarc")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/etc/miniconda3/condarc.d")
    [2026-01-16T05:54:56Z TRACE pet_poetry::pyproject_toml] Poetry project: "/home/j-user/Temp/check/pyproject.toml" with name "check"
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/home/j-user/.config/conda/condarc.d")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/etc/miniconda/condarc.d")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/var/lib/miniconda3/condarc")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/var/lib/conda/condarc")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/home/j-user/condarc")
    [2026-01-16T05:54:56Z TRACE pet_poetry::config] Poetry cache (default): Some("/home/j-user/.cache/pypoetry")
    [2026-01-16T05:54:56Z TRACE pet_poetry::config] Poetry config file => None, virtualenv.path => "/home/j-user/.cache/pypoetry/virtualenvs", cache_dir => Some("/home/j-user/.cache/pypoetry"), virtualenvs_in_project => None
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/etc/miniconda/mambarc")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/var/lib/miniconda3/.mambarc")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/var/lib/conda/condarc.d")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/etc/conda/condarc")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/var/lib/conda/.mambarc")
    [2026-01-16T05:54:56Z TRACE pet::find] Completed searching using locator: PipEnv in 102.262µs
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/var/lib/conda/.condarc")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/etc/conda/mambarc")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/etc/conda/.condarc")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/etc/conda/condarc.d")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/etc/miniconda/condarc")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/var/lib/miniconda/condarc.d")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/var/lib/miniconda/.mambarc")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/etc/miniconda/.condarc")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/var/lib/miniconda3/condarc.d")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/home/j-user/condarc.d")
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] .condarc not found ("/home/j-user/.mambarc")
    [2026-01-16T05:54:56Z TRACE pet::find] Searching using locator: Homebrew
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] No Conda environments in .condarc []
    [2026-01-16T05:54:56Z TRACE pet::find] Searching using locator: VirtualEnv
    [2026-01-16T05:54:56Z TRACE pet::find] Completed searching using locator: VirtualEnv in 18.927µs
    [2026-01-16T05:54:56Z TRACE pet::find] Completed searching using locator: Homebrew in 320.653µs
    [2026-01-16T05:54:56Z TRACE pet::find] Searching using locator: Venv
    [2026-01-16T05:54:56Z TRACE pet::find] Completed searching using locator: Venv in 17.359µs
    [2026-01-16T05:54:56Z TRACE pet_poetry::environment_locations] Found pyproject.toml (check-MEcXsbw7-py): "check" in "/home/j-user/Temp/check"
    [2026-01-16T05:54:56Z TRACE pet::find] Searching using locator: LinuxGlobal
    [2026-01-16T05:54:56Z TRACE pet::find] Completed searching using locator: Uv in 4.714751ms
    [2026-01-16T05:54:56Z TRACE pet_poetry::environment_locations] Poetry Project ("/home/j-user/Temp/check") config file => None
    [2026-01-16T05:54:56Z TRACE pet_poetry::environment_locations] Poetry virtualenvs_in_project from global config file: false
    [2026-01-16T05:54:56Z TRACE pet::find] Completed searching using locator: Poetry in 5.785259ms
    [2026-01-16T05:54:56Z TRACE pet::locators] Identifying Python environment using locators: "/home/j-user/Temp/check/.venv/bin/python"
    [2026-01-16T05:54:56Z TRACE pet_pyenv] PyEnv Info PyEnvInfo { exe: None, versions: None, version: None }
    [2026-01-16T05:54:56Z TRACE pet_uv] uv-managed venv found in /home/j-user/Temp/check/.venv/bin/python, made by uv 0.9.24
    [2026-01-16T05:54:56Z TRACE pet_python_utils::executable] Ignoring folder: "/home/j-user/Temp/check/.git"
    [2026-01-16T05:54:56Z TRACE pet_python_utils::env] Executing Python: /bin/python -c import json, sys; print('093385e9-59f7-4a16-a604-14bf206256fe');print(json.dumps({'version': '.'.join(str(n) for n in sys.version_info), 'sys_prefix': sys.prefix, 'executable': sys.executable, 'is64_bit': sys.maxsize > 2**32}))
    [2026-01-16T05:54:56Z TRACE pet::locators] Identifying Python environment using locators: "/bin/python"
    [2026-01-16T05:54:56Z TRACE pet_pyenv] PyEnv Info PyEnvInfo { exe: None, versions: None, version: None }
    [2026-01-16T05:54:56Z TRACE pet::locators] Failed to identify Python environment using locators, now trying to resolve: "/bin/python"
    [2026-01-16T05:54:56Z TRACE pet_python_utils::env] Executing Python: /usr/bin/python -c import json, sys; print('093385e9-59f7-4a16-a604-14bf206256fe');print(json.dumps({'version': '.'.join(str(n) for n in sys.version_info), 'sys_prefix': sys.prefix, 'executable': sys.executable, 'is64_bit': sys.maxsize > 2**32}))
    [2026-01-16T05:54:56Z TRACE pet::locators] Identifying Python environment using locators: "/usr/bin/python"
    [2026-01-16T05:54:56Z TRACE pet_pyenv] PyEnv Info PyEnvInfo { exe: None, versions: None, version: None }
    [2026-01-16T05:54:56Z TRACE pet::locators] Failed to identify Python environment using locators, now trying to resolve: "/usr/bin/python"
    [2026-01-16T05:54:56Z TRACE pet_conda::environment_locations] Time taken to get conda environment paths: 38.406922ms
    [2026-01-16T05:54:56Z TRACE pet::find] Completed searching using locator: Conda in 38.504003ms
    [2026-01-16T05:54:56Z TRACE pet_python_utils::env] Executed Python "/bin/python" in Ok(32.116264ms) & produced an output "093385e9-59f7-4a16-a604-14bf206256fe\n{\"version\": \"3.13.7.final.0\", \"sys_prefix\": \"/usr\", \"executable\": \"/bin/python\", \"is64_bit\": true}"
    [2026-01-16T05:54:56Z TRACE pet_python_utils::cache] Caching interpreter info for "/bin/python"
    [2026-01-16T05:54:56Z TRACE pet_pyenv] PyEnv Info PyEnvInfo { exe: None, versions: None, version: None }
    [2026-01-16T05:54:56Z TRACE pet_python_utils::env] Executed Python "/usr/bin/python" in Ok(40.288185ms) & produced an output "093385e9-59f7-4a16-a604-14bf206256fe\n{\"version\": \"3.13.7.final.0\", \"sys_prefix\": \"/usr\", \"executable\": \"/usr/bin/python\", \"is64_bit\": true}"
    [2026-01-16T05:54:56Z TRACE pet_python_utils::cache] Caching interpreter info for "/usr/bin/python"
    [2026-01-16T05:54:56Z TRACE pet_pyenv] PyEnv Info PyEnvInfo { exe: None, versions: None, version: None }
    [2026-01-16T05:54:56Z TRACE pet::locators] Env ("/bin/python") in Path resolved as Some(LinuxGlobal)
    [2026-01-16T05:54:56Z TRACE pet::locators] Identifying Python environment using locators: "/bin/python3"
    [2026-01-16T05:54:56Z TRACE pet_pyenv] PyEnv Info PyEnvInfo { exe: None, versions: None, version: None }
    [2026-01-16T05:54:56Z TRACE pet::locators] Failed to identify Python environment using locators, now trying to resolve: "/bin/python3"
    [2026-01-16T05:54:56Z TRACE pet_python_utils::env] Executing Python: /bin/python3 -c import json, sys; print('093385e9-59f7-4a16-a604-14bf206256fe');print(json.dumps({'version': '.'.join(str(n) for n in sys.version_info), 'sys_prefix': sys.prefix, 'executable': sys.executable, 'is64_bit': sys.maxsize > 2**32}))
    [2026-01-16T05:54:56Z TRACE pet::find] Completed searching using locator: LinuxGlobal in 82.069515ms
    [2026-01-16T05:54:56Z TRACE pet::locators] Env ("/usr/bin/python") in Path resolved as Some(LinuxGlobal)
    [2026-01-16T05:54:56Z TRACE pet::locators] Identifying Python environment using locators: "/usr/bin/python3"
    [2026-01-16T05:54:56Z TRACE pet_pyenv] PyEnv Info PyEnvInfo { exe: None, versions: None, version: None }
    [2026-01-16T05:54:56Z TRACE pet::locators] Failed to identify Python environment using locators, now trying to resolve: "/usr/bin/python3"
    [2026-01-16T05:54:56Z TRACE pet_python_utils::env] Executing Python: /usr/bin/python3 -c import json, sys; print('093385e9-59f7-4a16-a604-14bf206256fe');print(json.dumps({'version': '.'.join(str(n) for n in sys.version_info), 'sys_prefix': sys.prefix, 'executable': sys.executable, 'is64_bit': sys.maxsize > 2**32}))
    [2026-01-16T05:54:56Z TRACE pet_python_utils::env] Executed Python "/bin/python3" in Ok(23.763022ms) & produced an output "093385e9-59f7-4a16-a604-14bf206256fe\n{\"version\": \"3.13.7.final.0\", \"sys_prefix\": \"/usr\", \"executable\": \"/bin/python3\", \"is64_bit\": true}"
    [2026-01-16T05:54:56Z TRACE pet_python_utils::cache] Caching interpreter info for "/bin/python3"
    [2026-01-16T05:54:56Z TRACE pet_pyenv] PyEnv Info PyEnvInfo { exe: None, versions: None, version: None }
    [2026-01-16T05:54:56Z TRACE pet::locators] Env ("/bin/python3") in Path resolved as Some(LinuxGlobal)
    [2026-01-16T05:54:56Z TRACE pet::locators] Identifying Python environment using locators: "/bin/python3.13"
    [2026-01-16T05:54:56Z TRACE pet_pyenv] PyEnv Info PyEnvInfo { exe: None, versions: None, version: None }
    [2026-01-16T05:54:56Z TRACE pet::locators] Failed to identify Python environment using locators, now trying to resolve: "/bin/python3.13"
    [2026-01-16T05:54:56Z TRACE pet_python_utils::env] Executing Python: /bin/python3.13 -c import json, sys; print('093385e9-59f7-4a16-a604-14bf206256fe');print(json.dumps({'version': '.'.join(str(n) for n in sys.version_info), 'sys_prefix': sys.prefix, 'executable': sys.executable, 'is64_bit': sys.maxsize > 2**32}))
    [2026-01-16T05:54:56Z TRACE pet_python_utils::env] Executed Python "/bin/python3.13" in Ok(25.187564ms) & produced an output "093385e9-59f7-4a16-a604-14bf206256fe\n{\"version\": \"3.13.7.final.0\", \"sys_prefix\": \"/usr\", \"executable\": \"/bin/python3.13\", \"is64_bit\": true}"
    [2026-01-16T05:54:56Z TRACE pet_python_utils::cache] Caching interpreter info for "/bin/python3.13"
    [2026-01-16T05:54:56Z TRACE pet_pyenv] PyEnv Info PyEnvInfo { exe: None, versions: None, version: None }
    [2026-01-16T05:54:56Z TRACE pet::locators] Env ("/bin/python3.13") in Path resolved as Some(LinuxGlobal)
    [2026-01-16T05:54:56Z TRACE pet_python_utils::env] Executed Python "/usr/bin/python3" in Ok(48.456619ms) & produced an output "093385e9-59f7-4a16-a604-14bf206256fe\n{\"version\": \"3.13.7.final.0\", \"sys_prefix\": \"/usr\", \"executable\": \"/usr/bin/python3\", \"is64_bit\": true}"
    [2026-01-16T05:54:56Z TRACE pet_python_utils::cache] Caching interpreter info for "/usr/bin/python3"
    [2026-01-16T05:54:56Z TRACE pet_pyenv] PyEnv Info PyEnvInfo { exe: None, versions: None, version: None }
    [2026-01-16T05:54:56Z TRACE pet::locators] Env ("/usr/bin/python3") in Path resolved as Some(LinuxGlobal)
    [2026-01-16T05:54:56Z TRACE pet::locators] Identifying Python environment using locators: "/usr/bin/python3.13"
    [2026-01-16T05:54:56Z TRACE pet_pyenv] PyEnv Info PyEnvInfo { exe: None, versions: None, version: None }
    [2026-01-16T05:54:56Z TRACE pet::locators] Failed to identify Python environment using locators, now trying to resolve: "/usr/bin/python3.13"
    [2026-01-16T05:54:56Z TRACE pet_python_utils::env] Executing Python: /usr/bin/python3.13 -c import json, sys; print('093385e9-59f7-4a16-a604-14bf206256fe');print(json.dumps({'version': '.'.join(str(n) for n in sys.version_info), 'sys_prefix': sys.prefix, 'executable': sys.executable, 'is64_bit': sys.maxsize > 2**32}))
    [2026-01-16T05:54:56Z TRACE pet_python_utils::env] Executed Python "/usr/bin/python3.13" in Ok(19.689164ms) & produced an output "093385e9-59f7-4a16-a604-14bf206256fe\n{\"version\": \"3.13.7.final.0\", \"sys_prefix\": \"/usr\", \"executable\": \"/usr/bin/python3.13\", \"is64_bit\": true}"
    [2026-01-16T05:54:56Z TRACE pet_python_utils::cache] Caching interpreter info for "/usr/bin/python3.13"
    [2026-01-16T05:54:56Z TRACE pet_pyenv] PyEnv Info PyEnvInfo { exe: None, versions: None, version: None }
    [2026-01-16T05:54:56Z TRACE pet::locators] Env ("/usr/bin/python3.13") in Path resolved as Some(LinuxGlobal)
    
    Breakdown by each locator:
    --------------------------
    Conda                : 38.50818ms
    Homebrew             : 343.75µs
    LinuxGlobal          : 82.122609ms
    PipEnv               : 905.672µs
    Pixi                 : 79.062µs
    Poetry               : 5.79593ms
    PyEnv                : 136.144µs
    Uv                   : 4.723626ms
    Venv                 : 28.908µs
    VirtualEnv           : 25.596µs
    VirtualEnvWrapper    : 368.167µs
    
    Breakdown for finding Environments:
    -----------------------------------
    GlobalVirtualEnvs    : 129.774µs
    Locators             : 87.492059ms
    Path                 : 176.515559ms
    Workspaces           : 16.227927ms
    
    Environments (3):
    ------------------
    LinuxGlobal          : 2
    Uv                   : 1
    
    Completed in 177ms
    
  4. github-actions commented on Feb 15, 2026

    @github-actions

    Hey Eleanor Boyd (@eleanorjboyd), this issue might need further attention.

    Ma'moun Al-zyoud (@mamounalzyoud), you can help us out by closing this issue if the problem no longer exists, or adding more information.

  5. eleanorjboyd commented on Feb 17, 2026

    @eleanorjboyd
    Member

    Hi- sorry about the delay here. Are you still seeing the problem? We did a release 1.20.0 for the python environments extension which has a lot of updates in this area of env selection and storing

  6. github-actions commented on Apr 13, 2026

    @github-actions

    Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.

    Happy Coding!

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

Metadata

Metadata

Labels

info-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