Skip to content

VS Code Extension error - Unable to find any Python environment for the interpreter path: .venv/bin/python #568

@abhat-koppert

Description

@abhat-koppert

Hello,

It seems that the VS Code extension fails to work. Even with repeated restarts, the only messages I get it in the Output tab on VS Code are:

2024-07-30 11:11:01.601 [info] Using interpreter: .venv/bin/python
2024-07-30 11:11:01.612 [error] Unable to find any Python environment for the interpreter path: .venv/bin/python

I have uninstalled and reinstalled the extension. I have disabled and enabled it as well. Nothing works. I am attempting to run it on a Windows machine on WSL Ubuntu 22.04. I have also attempted to run it on a Dev Container in VS Code and am met with the same result. I make use of a virtual environment created using uv.

Let me know if there is any other information I can provide to make this easier to solve.

Relevant VS Code Settings

    "[python]": {
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "charliermarsh.ruff"
    },
    "ruff.interpreter": [
        ".venv/bin/python"
    ],

Version information

ruff 0.5.5
charliermarsh.ruff v2024.36.0
VS Code v1.9.1
python 3.10.14
uv 0.2.31

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