Skip to content

Error running pre-commit after pre-commit-uv install on Windows #4

@owenlamont

Description

@owenlamont

I'm running on Windows 11 and have both pre-commit and uv installed with pipx. I followed the pipx instructions to inject install pre-commit-uv then tried deleting my pre-commit cache and running pre-commit on a repo to receive this error:

[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Using pre-commit with uv 0.2.34 via pre-commit-uv 4.0.2
An unexpected error has occurred: CalledProcessError: command: ('C:\\Users\\Owen\\.local\\pipx\\venvs\\pre-commit\\Scripts\\uv.exe', 'venv', 'C:\\Users\\Owen\\.cache\\pre-commit\\repoj03weecx\\py_env-default')
return code: 1
stdout: (none)
stderr:
      × No interpreter found in system path or `py` launcher
Check the log at C:\Users\Owen\.cache\pre-commit\pre-commit.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions