Closed
Description
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