mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5412] [Other] strata update test start runs on the system interpreter: ModuleNotFoundError: No module named 'jinja2', and the log it tells us to attach was never written #3235
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#3235
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 @werewolfvit on GitHub (Nov 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5412
[Other](anything else, including setup and installation)9f7d977d220e9fdf2ec53cf2620cdadac1cfb24estrata-gyro-gyro-m.json), 131072 context, pictures onWhat happened
A Windows source checkout whose dependencies are installed in
E:\Strata\.venv, but not in the globalpythonon
PATH. I ran the update with the global interpreter:Three things are wrong here, and only the first is mine:
1.
updatedoes not check the interpreter's packages, and blames the engine. The engine binary is fine —the failure is in Strata's own Python code, before the engine is launched. The test start goes
updater.default_test_start→runtime.start→runtime._launch, which spawns[sys.executable, "-m", "serve.server", ...](strata_control/runtime.py:984);strata_cli/cli.py:785_launch_plandoesfrom serve.server import ...;serve/server.py:63importsserve.frontend;serve/frontend.py:28isimport jinja2. With the global interpreter:strata.py::_preflightguardsSERVER_PACKAGES = ("jinja2", "yaml", "regex", "psutil", "requests", "numpy", "PIL")only for
command in ("serve", "bench")(strata.py:14-31), soupdategets no typed error, and theexcept Exceptionindefault_test_startturns this intoTestStartFailed("0.1.57", "ModuleNotFoundError: No module named 'jinja2'").TestStartFailed.plainthen fallsinto its generic branch and says "The engine reported a problem while it started" — pointing at a broken engine
on this PC, and at
strata update --force, which fails identically. The state file keeps the real reason, butnothing shows it:
Six attempts in a row failed this way, each one saying the new engine was the problem.
2. The log the message tells me to attach does not exist. The engine log is written by the engine process,
which never started here, so
_keep_loghad nothing to save and_keep_recordskept only the run config. Whatis really in
.updates/logs:No
test-start-0.1.57.log, noengine.log, no runtime records; the sandbox(
E:\Strata\engine-feed\.s\20d4\t-lwo453eu\) is deleted right after (#3654). So "report it with the log" asksfor a file that was never written, and the file that does exist holds the run config but not the traceback — the
interpreter and the traceback are exactly the part worth reporting.
3. Nothing says which interpreter ran the update.
python .\strata.py updateand.venv\Scripts\python.exe .\strata.py updatebehave completely differently, and the summary line("Engine 0.1.55 NOT changed") names neither. With the venv interpreter the same update installs 0.1.57 on the
first try.
Smallest steps or command that reproduce it
Logs
Failed attempt —
.updates/logs/test-start-0.1.57-failed/run.json(abridged;_scrubalready removed the keys):Successful retry with the venv interpreter —
.updates/logs/test-start-0.1.57.log(7244 B), the same engine andcard starting and answering the one-token probe:
strata --version(venv):strata 0.2.11 (build 0.1.57; python 3.13.13 at E:\Strata\.venv\Scripts\python.exe)What I expected
updateto hit_preflightthe wayservedoes — "the interpreter is missing packages the API serverneeds" — or
default_test_startto put the interpreter into the reason, e.g.ModuleNotFoundError: No module named 'jinja2' from <sys.executable>, so the plain sentence cannot read as anengine defect.
from
state.json, the traceback, the interpreter) instead of a log file that was never created.@github-actions[bot] commented on GitHub (Nov 6, 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