[Other] setup.py writes run-*.bat as UTF-8 without BOM, so a Cyrillic install path is unreadable by cmd
I maintainer di solito rispondono entro 5 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 74/100
Direzione di ricerca
Leggi setup.py e individua il passaggio che scrive run-*.bat; esamina come costruisce i percorsi e codifica lo script generato. Riproduci il problema con un percorso di installazione in cirillico usando il comando nell’issue. Il lavoro è completato quando il file batch generato si avvia correttamente da un percorso di questo tipo; l’esempio relativo %~dp0 di chi ha segnalato il problema indica concretamente il comportamento atteso.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Area
[Other] — setup and installation (the start script setup.py generates)
Desktop app, Terminal or source?
Source (START-HERE.bat, setup.sh or a build)
What happened
The install folder contains a non-ASCII segment — C:\Qwen3.8-Flash-Next\Инсталяторы\Strata-0.2.22-Qwen3.8-Hy4-Inkling2\Strata-portable\terminal. Step 7 ("writing the start script") writes run-iq3_s.bat as UTF-8 without a BOM, but cmd.exe reads batch files in the OEM code page (cp866 on this PC), so every absolute path inside the file turns into mojibake and the script cannot run:
@echo off
title Strata IQ3_S
cd /d "C:\Qwen3.8-Flash-Next\╨Ш╨╜╤Б╤В╨░╨╗╤П╤В╨╛╤А╤Л\Strata-0.2.22-…\Strata-portable\terminal"
"C:\Qwen3.8-Flash-Next\╨Ш╨╜╤Б╤В╨░╨╗╤П╤В╨╛╤А╤Л\…\python\python.exe" "…\serve\server.py" "--engine" "strata" …
cd /d fails with "The system cannot find the path specified", so double-clicking the generated script never starts the model even though setup reported success. The JSON run config is unaffected: strata-iq3_s.json stores the same path as C:\\…\\\u0418\u043d\u0441\u0442\u0430\u043b\u044f\u0442\u043e\u0440\u044b\\…, so the engine and the model files are fine.
Expected: the generated run-*.bat starts the model whatever the install path contains.
Smallest steps or command that reproduce it
- Put the unpacked control package (or the portable tree) under a folder whose name has Cyrillic letters, e.g.
…\Инсталяторы\Strata-portable\terminal. python\python.exe setup.py --family qwen --model IQ3_S --context 131072 --kv int8 --vision yes --yes --no-start.- Open the generated
terminal\run-iq3_s.batin Notepad, or run it: the paths are mojibake andcdfails.
Reproduction status
Reproduced locally
Strata version
Strata 0.2.22 · control 0.1.69 · bundled Python 3.12.15
Graphics card, memory and system
RTX 3090 24 GB · 126 GB RAM · Windows 10 Pro x64
Model, size and settings
Qwen3.8-Flash-Next IQ3_S · 131072 context · KV int8 · pictures on
Logs
Setup itself finishes and prints [ok] start script: run-iq3_s.bat; the failure is only visible when the script is read or executed by cmd.
Workaround: rewrote the script as pure ASCII with paths relative to the script, which also makes it independent of where the folder lives:
@echo off
title Strata IQ3_S
cd /d "%~dp0"
"%~dp0python\python.exe" "%~dp0serve\server.py" --engine strata --config "%~dp0strata-iq3_s.json" --port 8080 --open
if errorlevel 1 pause
With that the engine starts normally: ready: http://127.0.0.1:8080/v1 — context 131072 tokens, images on, 22 267 MiB of VRAM in use, /health returns {"status":"ok","max_context":131072,"model":"qwen3.8-flash-next-iq3_s","images":true,"loaded":true}.
Possible fixes, best first: write the script with %~dp0-relative paths and ASCII text only (survives moving the folder too); or encode it in the console code page (locale.getpreferredencoding(False)); or keep UTF-8 but put chcp 65001 >nul as the first line after @echo off. The relative-path variant is the only one that also removes the dependency on the install location.
- Lingua principale
- C++
- Stelle
- 11.6k
- Fork
- 1k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Niko1221/Strata
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 5 giorni
-
[GUI] Engine chip: move the breathing status dot to the right end of the quant line, inside the chipAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 5 giorni
-
[GUI] The top horizontal stroke of 更 in the sidebar footer is never drawn (Windows, 125% scaling)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Niko1221/Strata#7276 · 1 commento ·
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Niko1221/Strata#7214 · 2 commenti ·
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
Niko1221/Strata#7211 · 3 commenti ·
I maintainer di solito rispondono entro 5 giorni
Tutte le issue di Niko1221/Strata
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
microsoft/DirectXShaderCompiler#9173 ·
I maintainer di solito rispondono entro 2 giorni
-
feature:config kind:docs os:windows toolchain:cmake triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
arch-based bug niri
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
noctalia-dev/noctalia#5552 ·
I maintainer di solito rispondono entro 1 giorno