[GH-ISSUE #3613] [TUI] strata launch worked then, after a tune had been saved for this PC, every later launch failed #1490

Closed
opened 2026-11-04 01:51:40 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @richgoldberg on GitHub (Oct 21, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3613

strata launch worked, then after a tune had been saved for this PC every later launch stopped at Model › "Saving the model's settings" with:

The model could not be installed. Run it again: finished steps are skipped.

Pressing r repeats it. The TUI shows no reason. Running the same setup step by hand shows it:

=== Step 7: writing the start script ===
  [ok] KV streaming on: ...
Traceback (most recent call last):
  File "...\Strata\terminal\0.1.46.3\setup.py", line 8919, in <module>
    sys.exit(main())
  File "...\Strata\terminal\0.1.46.3\setup.py", line 8864, in main
    import calibrate as CAL
ModuleNotFoundError: No module named 'calibrate'

Cause: the Terminal bundle does not ship tools/calibrate.py. setup.py imports it whenever setup_calibration() finds a saved calibration for this PC and model. Before the first tune nothing is saved and setup passes; once a tune has been saved, every launch fails. packaging/package_terminal.py leaves calibrate out of INSTALLER_TOOLS, and main still does today, so v0.2.2 most likely has the same problem. The Linux bundle uses the same list, so this may be what #3467 is seeing (same message, no reason shown).

Workaround: copy tools/calibrate.py from the commit in the bundle's COMMIT file (here 9de04cd) into <Strata>\terminal\<build>\tools\, then launch again. With that file in place setup ends [ok] the settings tuned for this PC earlier are used and the model starts.

Suggested fix: add "calibrate" to INSTALLER_TOOLS. Two smaller things would also help:

  • The launcher only shows a setup error when setup prints a line starting with [X]. A Python traceback is never shown, so the TUI says only "could not be installed". Showing the last traceback line would have made this a one-minute fix.
  • A static check of the bundle found other tools/ files that setup.py refers to but the bundle lacks: image/qimage.py (--images), strata_bench.py (the benchmark question at the end of interactive setup), strata_inspect.py (--inspect) and nvfp4_local_pack.py (NVFP4 models). hip/dll_closure.py is also missing but setup carries on without it. I did not run into these, so they are unconfirmed, but they would fail the same way.
Originally created by @richgoldberg on GitHub (Oct 21, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3613 `strata launch` worked, then after a tune had been saved for this PC every later launch stopped at **Model › "Saving the model's settings"** with: ``` The model could not be installed. Run it again: finished steps are skipped. ``` Pressing `r` repeats it. The TUI shows no reason. Running the same setup step by hand shows it: ``` === Step 7: writing the start script === [ok] KV streaming on: ... Traceback (most recent call last): File "...\Strata\terminal\0.1.46.3\setup.py", line 8919, in <module> sys.exit(main()) File "...\Strata\terminal\0.1.46.3\setup.py", line 8864, in main import calibrate as CAL ModuleNotFoundError: No module named 'calibrate' ``` **Cause:** the Terminal bundle does not ship `tools/calibrate.py`. `setup.py` imports it whenever `setup_calibration()` finds a saved calibration for this PC and model. Before the first tune nothing is saved and setup passes; once a tune has been saved, every launch fails. `packaging/package_terminal.py` leaves `calibrate` out of `INSTALLER_TOOLS`, and `main` still does today, so v0.2.2 most likely has the same problem. The Linux bundle uses the same list, so this may be what #3467 is seeing (same message, no reason shown). **Workaround:** copy `tools/calibrate.py` from the commit in the bundle's `COMMIT` file (here `9de04cd`) into `<Strata>\terminal\<build>\tools\`, then launch again. With that file in place setup ends `[ok] the settings tuned for this PC earlier are used` and the model starts. **Suggested fix:** add `"calibrate"` to `INSTALLER_TOOLS`. Two smaller things would also help: - The launcher only shows a setup error when setup prints a line starting with `[X]`. A Python traceback is never shown, so the TUI says only "could not be installed". Showing the last traceback line would have made this a one-minute fix. - A static check of the bundle found other `tools/` files that `setup.py` refers to but the bundle lacks: `image/qimage.py` (`--images`), `strata_bench.py` (the benchmark question at the end of interactive setup), `strata_inspect.py` (`--inspect`) and `nvfp4_local_pack.py` (NVFP4 models). `hip/dll_closure.py` is also missing but setup carries on without it. I did not run into these, so they are unconfirmed, but they would fail the same way.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 21, 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:6320317510 --> @github-actions[bot] commented on GitHub (Oct 21, 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 21, 2026):

Thanks, this follows the format now.

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

@dandandelion commented on GitHub (Oct 21, 2026):

I think you need to activate the venv first as the packages are contained within that virtual env (where requirements were installed)

<!-- gh-comment-id:6320461125 --> @dandandelion commented on GitHub (Oct 21, 2026): I think you need to activate the venv first as the packages are contained within that virtual env (where requirements were installed)
Author
Owner

@richgoldberg commented on GitHub (Oct 21, 2026):

I am running strata launch from the command line. If a venv needs to be activated, shouldn't that be doing it? (But downloading the calibrate.py file to the tools folder made it work.)

PS: Running the Terminal version on Windows 11 after installing with the PowerShell 1-liner command. Downloading the missing calibrate.py file seems to be all that was needed to make things work again.

<!-- gh-comment-id:6320605535 --> @richgoldberg commented on GitHub (Oct 21, 2026): I am running `strata launch` from the command line. If a venv needs to be activated, shouldn't that be doing it? (But downloading the calibrate.py file to the tools folder made it work.) PS: Running the Terminal version on Windows 11 after installing with the PowerShell 1-liner command. Downloading the missing calibrate.py file seems to be all that was needed to make things work again.
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#1490
No description provided.