[GH-ISSUE #4646] [TUI] The model could not be installed. command failed (exit 2): python3.12 #2107

Open
opened 2026-11-04 01:56:45 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @mgarf on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4646

Problem: Attempting to download the nividia QAD model causes it to fail

Environment:
Nobara 44 - Operating System: Nobara Linux 44
KDE Plasma Version: 6.7.5
KDE Frameworks Version: 6.31.0
Qt Version: 6.11.2
Kernel Version: 7.2.11-200.nobara.fc44.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 24 × Intel® Core™ Ultra 9 275HX
Memory: 64 GiB of RAM (62.2 GiB usable)
Graphics Processor 1: Intel® Graphics
Graphics Processor 2: NVIDIA GeForce RTX 5090 Laptop GPU
Manufacturer: Razer
Product Name: Blade 18 - RZ09-0529
System Version: 11.04

Reproduce: Strata launch -> Create Preset with advanced tuning, vision, request = 1, vision = yes
Expected: Download, Boot, tune, and get ready
Actual:
Image

Attempts to mitigate:

  • Deleted the models from the folder
  • Tried different model storage folder
  • Tried to retry
  • Tried to reboot and retry
Originally created by @mgarf on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4646 **Problem:** Attempting to download the nividia QAD model causes it to fail **Environment:** Nobara 44 - Operating System: Nobara Linux 44 KDE Plasma Version: 6.7.5 KDE Frameworks Version: 6.31.0 Qt Version: 6.11.2 Kernel Version: 7.2.11-200.nobara.fc44.x86_64 (64-bit) Graphics Platform: Wayland Processors: 24 × Intel® Core™ Ultra 9 275HX Memory: 64 GiB of RAM (62.2 GiB usable) Graphics Processor 1: Intel® Graphics Graphics Processor 2: NVIDIA GeForce RTX 5090 Laptop GPU Manufacturer: Razer Product Name: Blade 18 - RZ09-0529 System Version: 11.04 **Reproduce:** Strata launch -> Create Preset with advanced tuning, vision, request = 1, vision = yes **Expected:** Download, Boot, tune, and get ready **Actual:** <img width="1289" height="304" alt="Image" src="https://github.com/user-attachments/assets/895a526b-8e7e-486c-ad4d-adb01a9b5af5" /> **Attempts to mitigate:** - Deleted the models from the folder - Tried different model storage folder - Tried to retry - Tried to reboot and retry
Author
Owner

@github-actions[bot] commented on GitHub (Oct 29, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6509880441 --> @github-actions[bot] commented on GitHub (Oct 29, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Oct 29, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6509895625 --> @github-actions[bot] commented on GitHub (Oct 29, 2026): Thanks, this follows the format now.
Author
Owner

@mgarf commented on GitHub (Oct 29, 2026):

Root cause: the Terminal 0.1.45.3 bundle is missing the preparation tool that its own setup.py runs for NVFP4-QAD.

Reproduction status: reproduced on the reporter's machine (same failure, same build).

What step 6 actually runs

NVFP4-QAD is the one model that is not a ready-made pack. Step 6 of the Terminal's setup.py runs:

<python>/bin/python3.12 <terminal>/tools/nvfp4_local_pack.py prepare \
  --model  <data>/models/nvidia--Qwen3.8-Flash-Next-FP4-Local \
  --out    <data>/models/nvidia--Qwen3.8-Flash-Next-FP4-Local/prepared

<terminal>/tools/nvfp4_local_pack.py does not exist in the 0.1.45.3 archive. Python then exits 2 on its own, before any Strata code runs:

$ ~/.local/share/strata/terminal/0.1.45.3/python/bin/python3 tools/nvfp4_local_pack.py --help
.../python/bin/python3.12: can't open file '.../tools/nvfp4_local_pack.py':
[Errno 2] No such file or directory
exit=2

setup.py turns that into command failed (exit 2): python3.12; the TUI keeps only the progress lines it parses, so Python's "can't open file" line is never shown. That is why the screen has no usable error.

Evidence

  • ~/.local/share/strata/terminal/0.1.45.3/tools/ has 15 files (iq_pack.py, strata_pack.py, mtp_*.py, …) and no nvfp4_* file.
  • BUNDLE.json → installer.files lists exactly those 15 tools; nvfp4_local_pack.py, nvfp4_convert.py and nvfp4_verify.py are all absent.
  • The same bundle's setup.py (sha256 d2fef51f…, identical to the current source tree) references tools/nvfp4_local_pack.py.
  • The download itself completed: 21/21 safetensors with .done marks (~95 GB) plus the 866 MB vision encoder. Nothing is corrupt and a retry cannot help.
  • strata update --check: Engine 0.1.52 up to date, Control 0.1.53 current; no Terminal update is offered, so the bundle stays as it is.

Why packaging misses it (code reading; the missing files are the observed result)

packaging/package_terminal.py stages the installer's tools from INSTALLER_TOOLS plus local_imports(), which walks import/from … import statements only. setup.py invokes this tool by path via run([sys.executable, ROOT/"tools"/"nvfp4_local_pack.py", …]), so the static scan never sees it and it was never copied into the archive. Any tool that is only ever executed (never imported) has the same hole.

A second blocker behind it

Supplying the file by hand does not finish the step either; tested with the Terminal's own interpreter and the llama.cpp source from the install folder:

  1. import gguf fails unless llama.cpp sits at <terminal>/third_party/llama.cpp — tools/nvfp4_convert.py hardcodes that path, but this layout keeps it at ~/.local/share/strata/install/third_party/llama.cpp.
  2. With the path supplied, it stops at from transformers import AutoConfig / torch: the bundled 3.12 runtime has none of torch, transformers or safetensors, and neither requirements.txt nor setup's package step installs them.

This is the same gap as #3227. The fix is present in Control 0.1.53 (ensure_nvfp4_local_packages()), but not in the Terminal bundle. Also, requirements-nvfp4-local.txt is absent from both the 0.1.53 Control component and the 0.1.45.3 Terminal bundle (searched the whole install and the source tree), so even the source-installer path stops at requirements-nvfp4-local.txt is missing and asks for a manual pip install.

Suggestion

  1. Add the three nvfp4_* tools to the Terminal's installer set (and a test that every tool setup.py executes by path is staged).
  2. Ship the #3227 logic and requirements-nvfp4-local.txt with the Terminal, or fail in CONTROL mode with the 0.1.53 message ("install this model from the source download") instead of exit 2.
  3. When a setup step fails, show setup's own output for that step (at least the > <command> line and the child's stderr) in the TUI. strata launch --no-tui currently shows it; the TUI does not.

Workarounds until then, in order of preference:

  • A ready-made NVFP4 or NVFP4-NVIDIA pack installs normally (a fresh 128 GB download, no conversion).
  • Source route: run ./setup.sh --family nvfp4 --model NVFP4-QAD from a checkout pointed at the existing data folder. Its step 4/6 uses the checkout's own llama.cpp and tools, but requirements.txt still installs no torch, so install torch transformers safetensors into the .venv it creates and run it again (finished steps are skipped, the 95 GB download is reused through the .done marks).
  • Patching the Terminal by hand (what was verified here, not recommended as a user path): copy nvfp4_local_pack.py, nvfp4_convert.py and nvfp4_verify.py from components/control/0.1.53/tools/ into the Terminal's tools/, pip install torch transformers safetensors into its private Python, and link <terminal>/third_party/llama.cpp to <install>/third_party/llama.cpp so nvfp4_convert.py's hardcoded path resolves.

Environment note, from the same machine: 62 GB usable RAM, while this model's table asks ~80 GB to keep every expert in RAM. It should still run with experts streaming from the SSD, just slower; that is not the cause of this failure.

<!-- gh-comment-id:6510153377 --> @mgarf commented on GitHub (Oct 29, 2026): **Root cause: the Terminal 0.1.45.3 bundle is missing the preparation tool that its own `setup.py` runs for NVFP4-QAD.** Reproduction status: reproduced on the reporter's machine (same failure, same build). ### What step 6 actually runs NVFP4-QAD is the one model that is not a ready-made pack. Step 6 of the Terminal's `setup.py` runs: ``` <python>/bin/python3.12 <terminal>/tools/nvfp4_local_pack.py prepare \ --model <data>/models/nvidia--Qwen3.8-Flash-Next-FP4-Local \ --out <data>/models/nvidia--Qwen3.8-Flash-Next-FP4-Local/prepared ``` `<terminal>/tools/nvfp4_local_pack.py` does not exist in the 0.1.45.3 archive. Python then exits **2** on its own, before any Strata code runs: ``` $ ~/.local/share/strata/terminal/0.1.45.3/python/bin/python3 tools/nvfp4_local_pack.py --help .../python/bin/python3.12: can't open file '.../tools/nvfp4_local_pack.py': [Errno 2] No such file or directory exit=2 ``` `setup.py` turns that into `command failed (exit 2): python3.12`; the TUI keeps only the progress lines it parses, so Python's "can't open file" line is never shown. That is why the screen has no usable error. ### Evidence - `~/.local/share/strata/terminal/0.1.45.3/tools/` has 15 files (`iq_pack.py`, `strata_pack.py`, `mtp_*.py`, …) and no `nvfp4_*` file. - `BUNDLE.json` → `installer.files` lists exactly those 15 tools; `nvfp4_local_pack.py`, `nvfp4_convert.py` and `nvfp4_verify.py` are all absent. - The same bundle's `setup.py` (`sha256 d2fef51f…`, identical to the current source tree) references `tools/nvfp4_local_pack.py`. - The download itself completed: 21/21 safetensors with `.done` marks (~95 GB) plus the 866 MB vision encoder. Nothing is corrupt and a retry cannot help. - `strata update --check`: Engine 0.1.52 up to date, Control 0.1.53 current; no Terminal update is offered, so the bundle stays as it is. ### Why packaging misses it (code reading; the missing files are the observed result) `packaging/package_terminal.py` stages the installer's tools from `INSTALLER_TOOLS` plus `local_imports()`, which walks `import`/`from … import` statements only. `setup.py` invokes this tool **by path** via `run([sys.executable, ROOT/"tools"/"nvfp4_local_pack.py", …])`, so the static scan never sees it and it was never copied into the archive. Any tool that is only ever executed (never imported) has the same hole. ### A second blocker behind it Supplying the file by hand does not finish the step either; tested with the Terminal's own interpreter and the llama.cpp source from the install folder: 1. `import gguf` fails unless llama.cpp sits at `<terminal>/third_party/llama.cpp` — `tools/nvfp4_convert.py` hardcodes that path, but this layout keeps it at `~/.local/share/strata/install/third_party/llama.cpp`. 2. With the path supplied, it stops at `from transformers import AutoConfig` / `torch`: the bundled 3.12 runtime has none of torch, transformers or safetensors, and neither `requirements.txt` nor setup's package step installs them. This is the same gap as #3227. The fix is present in Control 0.1.53 (`ensure_nvfp4_local_packages()`), but not in the Terminal bundle. Also, `requirements-nvfp4-local.txt` is absent from both the 0.1.53 Control component and the 0.1.45.3 Terminal bundle (searched the whole install and the source tree), so even the source-installer path stops at `requirements-nvfp4-local.txt is missing` and asks for a manual pip install. ### Suggestion 1. Add the three `nvfp4_*` tools to the Terminal's installer set (and a test that every tool `setup.py` executes by path is staged). 2. Ship the #3227 logic and `requirements-nvfp4-local.txt` with the Terminal, or fail in CONTROL mode with the 0.1.53 message ("install this model from the source download") instead of exit 2. 3. When a setup step fails, show setup's own output for that step (at least the `> <command>` line and the child's stderr) in the TUI. `strata launch --no-tui` currently shows it; the TUI does not. Workarounds until then, in order of preference: - A ready-made `NVFP4` or `NVFP4-NVIDIA` pack installs normally (a fresh 128 GB download, no conversion). - Source route: run `./setup.sh --family nvfp4 --model NVFP4-QAD` from a checkout pointed at the existing data folder. Its step 4/6 uses the checkout's own llama.cpp and tools, but `requirements.txt` still installs no torch, so install `torch transformers safetensors` into the `.venv` it creates and run it again (finished steps are skipped, the 95 GB download is reused through the `.done` marks). - Patching the Terminal by hand (what was verified here, not recommended as a user path): copy `nvfp4_local_pack.py`, `nvfp4_convert.py` and `nvfp4_verify.py` from `components/control/0.1.53/tools/` into the Terminal's `tools/`, `pip install torch transformers safetensors` into its private Python, and link `<terminal>/third_party/llama.cpp` to `<install>/third_party/llama.cpp` so `nvfp4_convert.py`'s hardcoded path resolves. Environment note, from the same machine: 62 GB usable RAM, while this model's table asks ~80 GB to keep every expert in RAM. It should still run with experts streaming from the SSD, just slower; that is not the cause of this failure.
Author
Owner

@Niko1221 commented on GitHub (Oct 31, 2026):

The missing file in the Terminal bundle is fixed in current builds, and a test now checks it, as the root cause above showed. One limit remains in 0.2.9: converting NVFP4-QAD needs extra Python packages (torch) that the Terminal doesn't carry. For now, please use the ready-made NVFP4 version listed in docs/MODELS.md. Keeping this open for the conversion.

<!-- gh-comment-id:6541144163 --> @Niko1221 commented on GitHub (Oct 31, 2026): The missing file in the Terminal bundle is fixed in current builds, and a test now checks it, as the root cause above showed. One limit remains in [0.2.9](https://github.com/Niko1221/Strata/releases/tag/v0.2.9): converting NVFP4-QAD needs extra Python packages (torch) that the Terminal doesn't carry. For now, please use the ready-made NVFP4 version listed in docs/MODELS.md. Keeping this open for the conversion.
Author
Owner

@Juul commented on GitHub (Nov 5, 2026):

I'm getting this same error trying to load an existing Unsloth GGUF model from a local directory. This is with strata 0.2.10 (build 0.1.56)

Specifically I'm trying to load a dir with the files Qwen3.8-Flash-Next-UD-Q4_K_XL-<number>-of-00004.gguf from the official Unsloth GGUF HuggingFace repo.

<!-- gh-comment-id:6655458287 --> @Juul commented on GitHub (Nov 5, 2026): I'm getting this same error trying to load an existing Unsloth GGUF model from a local directory. This is with `strata 0.2.10 (build 0.1.56)` Specifically I'm trying to load a dir with the files `Qwen3.8-Flash-Next-UD-Q4_K_XL-<number>-of-00004.gguf` from the official Unsloth GGUF HuggingFace repo.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2107
No description provided.