Skip to content

CLI reported by uv run on Windows is not found on invocation #8770

Closed
@kdeldycke

Description

@kdeldycke

Tl;Dr: On Windows nuitka is reported as an available CLI in a uv venv:

$ uv run
Provide a command or script to invoke with `uv run <command>` or `uv run <script>.py`.

The following commands are available in the environment:

- nuitka
- nuitka-run
- pydoc
- python
- pythonw

See `uv run --help` for more information.

But its invocation fails:

$ uv --no-progress run --frozen -- nuitka --version
error: Failed to spawn: `nuitka`
  Caused by: program not found

Context

This happened in a GitHub action runner on windows-2022. But the exact same sequence and invocation works perfectly on macos-15, macos-13 or ubuntu-24.04.

Fix

To fix the issue, I have to use an indirect call to the Python interpreter on windows-2022:

$ uv --no-progress run --frozen -- python -m nuitka --version

Reproduction

To reproduce the issue, on Windows:

$ python -m pip install uv
$ uv venv
$ uv pip install nuitka
$ uv run -- nuitka --version

This issue has been reported and being discussed in Nuitka project at: Nuitka/Nuitka#3173

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions