mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4633] UTF-8 error and _win_display_adapters (errors and solutions). #2101
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#2101
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 @indidesinglab-collab on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4633
hello, I got the following error when installing the downloaded hugginface model in Strata 0.2.7 · Motor 0.1.52, since it did not allow me to download it from the Windows app, I added them manually from the ISTA-DASlab repository, these were recognized but when I tried to add them they gave the following error:
===== strata-mcp: install Qwen3.8-Flash-Next IQ2_XS at 2026-10-29 02:50:18 =====
strata-mcp: running C:\Users\might\AppData\Local\Programs\Strata\control\python\python.exe C:\Users\might\AppData\Local\Programs\Strata\control\setup.py --yes --no-start --family qwen --model IQ2_XS --context 32768 --vision no --experimental-speed-projection off --kv int8 --data-dir C:\Users\might\Documents\Strata --gguf-dir C:\ISTA-Qwen3.8
Strata - Qwen3.8-Flash-Next on a normal PC (a GPU + system RAM + CPU)
=== Step 1: checking your PC ===
Exception in thread Thread-3 (_readerthread):
Traceback (most recent call last):
File "C:\Users\might\AppData\Local\Programs\Strata\control\python\Lib\threading.py", line 1075, in _bootstrap_inner
File "C:\Users\might\AppData\Local\Programs\Strata\control\python\Lib\threading.py", line 1012, in run
File "C:\Users\might\AppData\Local\Programs\Strata\control\python\Lib\subprocess.py", line 1599, in _readerthread
File "", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 23: invalid start byte
Traceback (most recent call last):
File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 10085, in
File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 9003, in main
File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4023, in amd_gpus
File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4081, in amd_gpus_win
File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4223, in amd_gpus_windows
File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4165, in _win_display_adapters
AttributeError: 'NoneType' object has no attribute 'splitlines'
strata-mcp: setup ended with exit code 1
===== strata-mcp: install Qwen3.8-Flash-Next IQ2_XS at 2026-10-29 02:53:12 =====
strata-mcp: running C:\Users\might\AppData\Local\Programs\Strata\control\python\python.exe C:\Users\might\AppData\Local\Programs\Strata\control\setup.py --yes --no-start --family qwen --model IQ2_XS --context 32768 --vision no --experimental-speed-projection off --kv int8 --data-dir C:\Users\might\Documents\Strata --gguf-dir C:\ISTA-Qwen3.8
Strata - Qwen3.8-Flash-Next on a normal PC (a GPU + system RAM + CPU)
=== Step 1: checking your PC ===
Exception in thread Thread-3 (_readerthread):
Traceback (most recent call last):
File "C:\Users\might\AppData\Local\Programs\Strata\control\python\Lib\threading.py", line 1075, in _bootstrap_inner
File "C:\Users\might\AppData\Local\Programs\Strata\control\python\Lib\threading.py", line 1012, in run
File "C:\Users\might\AppData\Local\Programs\Strata\control\python\Lib\subprocess.py", line 1599, in _readerthread
File "", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 23: invalid start byte
Traceback (most recent call last):
File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 10085, in
File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 9003, in main
File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4023, in amd_gpus
File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4081, in amd_gpus_win
File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4223, in amd_gpus_windows
File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4165, in _win_display_adapters
AttributeError: 'NoneType' object has no attribute 'splitlines'
strata-mcp: setup ended with exit code 1
which I solved by modifying the "setup.py" file and changing the following function:
def win_display_adapters() -> list[dict]:
"""The display adapters present ({"name", "pnp"}), from Win32_VideoController."""
ps = ("Get-CimInstance Win32_VideoController | ForEach-Object { $.Name + '|' + $.PNPDeviceID + '|' + "
"$.AdapterRAM }")
try:
# Se asegura de decodificar correctamente la salida estándar manejando errores de codificación
res = subprocess.run(
["powershell", "-NoProfile", "-NonInteractive", "-Command", ps],
capture_output=True,
timeout=10
)
# Decodifica usando latin-1 o utf-8 con reemplazo para evitar el UnicodeDecodeError (byte 0xa0)
text = res.stdout.decode('utf-8', errors='ignore') if res.stdout else ""
except (OSError, subprocess.SubprocessError):
text = ""
It is also worth noting that the UTF-8 error I encountered was caused by trying to read the models directly from the folder where Git Bash downloads them (when using the HF CLI command to download models from Hugging Face). It appears to be an issue related to the
./cachefolder name on Windows; I resolved it by moving the models to a folder with a standard path.After fixing those issues, the model worked correctly on hardware featuring an 11GB 2080 Ti, 32GB of DDR4 RAM, and a PCIe SSD, using the engine installed with CUDA 13.
@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:
strata --version).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 (Nov 4, 2026):
Closing this issue because it still did not follow the format after 5 days. That is housekeeping, not a rejection.
To bring it back: fix the title (area prefix) and the missing parts, then comment
/reopen. A check runs and reopens it, or tells you what is still missing. See CONTRIBUTING.md.