mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4646] [TUI] The model could not be installed. command failed (exit 2): python3.12 #2107
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2107
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
Attempts to mitigate:
@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:
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
@github-actions[bot] commented on GitHub (Oct 29, 2026):
Thanks, this follows the format now.
@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.pyruns 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.pyruns:<terminal>/tools/nvfp4_local_pack.pydoes not exist in the 0.1.45.3 archive. Python then exits 2 on its own, before any Strata code runs:setup.pyturns that intocommand 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 nonvfp4_*file.BUNDLE.json→installer.fileslists exactly those 15 tools;nvfp4_local_pack.py,nvfp4_convert.pyandnvfp4_verify.pyare all absent.setup.py(sha256 d2fef51f…, identical to the current source tree) referencestools/nvfp4_local_pack.py..donemarks (~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.pystages the installer's tools fromINSTALLER_TOOLSpluslocal_imports(), which walksimport/from … importstatements only.setup.pyinvokes this tool by path viarun([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:
import gguffails unless llama.cpp sits at<terminal>/third_party/llama.cpp—tools/nvfp4_convert.pyhardcodes that path, but this layout keeps it at~/.local/share/strata/install/third_party/llama.cpp.from transformers import AutoConfig/torch: the bundled 3.12 runtime has none of torch, transformers or safetensors, and neitherrequirements.txtnor 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.txtis 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 atrequirements-nvfp4-local.txt is missingand asks for a manual pip install.Suggestion
nvfp4_*tools to the Terminal's installer set (and a test that every toolsetup.pyexecutes by path is staged).requirements-nvfp4-local.txtwith the Terminal, or fail in CONTROL mode with the 0.1.53 message ("install this model from the source download") instead of exit 2.> <command>line and the child's stderr) in the TUI.strata launch --no-tuicurrently shows it; the TUI does not.Workarounds until then, in order of preference:
NVFP4orNVFP4-NVIDIApack installs normally (a fresh 128 GB download, no conversion)../setup.sh --family nvfp4 --model NVFP4-QADfrom a checkout pointed at the existing data folder. Its step 4/6 uses the checkout's own llama.cpp and tools, butrequirements.txtstill installs no torch, so installtorch transformers safetensorsinto the.venvit creates and run it again (finished steps are skipped, the 95 GB download is reused through the.donemarks).nvfp4_local_pack.py,nvfp4_convert.pyandnvfp4_verify.pyfromcomponents/control/0.1.53/tools/into the Terminal'stools/,pip install torch transformers safetensorsinto its private Python, and link<terminal>/third_party/llama.cppto<install>/third_party/llama.cppsonvfp4_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.
@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.
@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.gguffrom the official Unsloth GGUF HuggingFace repo.