[GH-ISSUE #4633] UTF-8 error and _win_display_adapters (errors and solutions). #2101

Closed
opened 2026-11-04 01:56:42 +07:00 by bsakaguchi · 2 comments
Owner

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

self.run()

File "C:\Users\might\AppData\Local\Programs\Strata\control\python\Lib\threading.py", line 1012, in run

self._target(*self._args, **self._kwargs)

File "C:\Users\might\AppData\Local\Programs\Strata\control\python\Lib\subprocess.py", line 1599, in _readerthread

buffer.append(fh.read())

              ^^^^^^^^^

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

sys.exit(main())

         ^^^^^^

File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 9003, in main

amd = amd_gpus()

      ^^^^^^^^^^

File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4023, in amd_gpus

return amd_gpus_win()

       ^^^^^^^^^^^^^^

File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4081, in amd_gpus_win

return amd_gpus_windows()

       ^^^^^^^^^^^^^^^^^^

File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4223, in amd_gpus_windows

adapters = _win_display_adapters() if adapters is None else adapters

           ^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4165, in _win_display_adapters

for line in text.splitlines():

            ^^^^^^^^^^^^^^^

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

self.run()

File "C:\Users\might\AppData\Local\Programs\Strata\control\python\Lib\threading.py", line 1012, in run

self._target(*self._args, **self._kwargs)

File "C:\Users\might\AppData\Local\Programs\Strata\control\python\Lib\subprocess.py", line 1599, in _readerthread

buffer.append(fh.read())

              ^^^^^^^^^

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

sys.exit(main())

         ^^^^^^

File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 9003, in main

amd = amd_gpus()

      ^^^^^^^^^^

File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4023, in amd_gpus

return amd_gpus_win()

       ^^^^^^^^^^^^^^

File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4081, in amd_gpus_win

return amd_gpus_windows()

       ^^^^^^^^^^^^^^^^^^

File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4223, in amd_gpus_windows

adapters = _win_display_adapters() if adapters is None else adapters

           ^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4165, in _win_display_adapters

for line in text.splitlines():

            ^^^^^^^^^^^^^^^

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 = ""

found = []
for line in text.splitlines():
    parts = line.strip().split("|")
    if len(parts) >= 2 and parts[1]:
        ram = parts[2] if len(parts) > 2 else ""
        found.append({"name": parts[0].strip(), "pnp": parts[1].strip(),
                      "ram": int(ram) if ram.strip().isdigit() else 0})
return found

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 ./cache folder 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.

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 self.run() File "C:\Users\might\AppData\Local\Programs\Strata\control\python\Lib\threading.py", line 1012, in run self._target(*self._args, **self._kwargs) File "C:\Users\might\AppData\Local\Programs\Strata\control\python\Lib\subprocess.py", line 1599, in _readerthread buffer.append(fh.read()) ^^^^^^^^^ File "<frozen codecs>", 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 <module> sys.exit(main()) ^^^^^^ File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 9003, in main amd = amd_gpus() ^^^^^^^^^^ File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4023, in amd_gpus return amd_gpus_win() ^^^^^^^^^^^^^^ File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4081, in amd_gpus_win return amd_gpus_windows() ^^^^^^^^^^^^^^^^^^ File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4223, in amd_gpus_windows adapters = _win_display_adapters() if adapters is None else adapters ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4165, in _win_display_adapters for line in text.splitlines(): ^^^^^^^^^^^^^^^ 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 self.run() File "C:\Users\might\AppData\Local\Programs\Strata\control\python\Lib\threading.py", line 1012, in run self._target(*self._args, **self._kwargs) File "C:\Users\might\AppData\Local\Programs\Strata\control\python\Lib\subprocess.py", line 1599, in _readerthread buffer.append(fh.read()) ^^^^^^^^^ File "<frozen codecs>", 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 <module> sys.exit(main()) ^^^^^^ File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 9003, in main amd = amd_gpus() ^^^^^^^^^^ File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4023, in amd_gpus return amd_gpus_win() ^^^^^^^^^^^^^^ File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4081, in amd_gpus_win return amd_gpus_windows() ^^^^^^^^^^^^^^^^^^ File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4223, in amd_gpus_windows adapters = _win_display_adapters() if adapters is None else adapters ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\might\AppData\Local\Programs\Strata\control\setup.py", line 4165, in _win_display_adapters for line in text.splitlines(): ^^^^^^^^^^^^^^^ 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 = "" found = [] for line in text.splitlines(): parts = line.strip().split("|") if len(parts) >= 2 and parts[1]: ram = parts[2] if len(parts) > 2 else "" found.append({"name": parts[0].strip(), "pnp": parts[1].strip(), "ram": int(ram) if ram.strip().isdigit() else 0}) return found 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 `./cache` folder 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.
Author
Owner

@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:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".
  • Add the Strata version (Settings > About, or 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

<!-- gh-comment-id:6504320505 --> @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: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". - [ ] Add the Strata version (Settings > About, or `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](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@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.

<!-- gh-comment-id:6622495325 --> @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](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
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#2101
No description provided.