Device driver does not work on Windows systems #1

Open
opened 2026-06-01 21:13:47 +00:00 by Brosef · 1 comment
Owner

On Windows, for some fuck-ass reason, any calls to

select.select([serial], [], [], timeout)

which occurs once in utils.py and once in driver.py, will cause a io.UnsupportedOperation: fileno error on Windows machines specifically.

On Windows, for some fuck-ass reason, any calls to ```python select.select([serial], [], [], timeout) ``` which occurs once in [utils.py](https://gitea.imadumbass.dog/Brosef/WHSPAH/src/commit/933d056ca38ad54a3f836d71ad5a6634633ee4c9/src/pythonAPI/whspah/utils.py#L30) and once in [driver.py](https://gitea.imadumbass.dog/Brosef/WHSPAH/src/commit/933d056ca38ad54a3f836d71ad5a6634633ee4c9/src/pythonAPI/whspah/driver.py#L148), will cause a `io.UnsupportedOperation: fileno` error on Windows machines specifically.
Brosef added the
Kind/Bug
Priority
Critical
1
labels 2026-06-01 21:13:47 +00:00
Owner

Removing these lines on Windows fixes the issue currently. Tested functionality with WHSPAH-Web-Interface.
May work on adding a simple OS Check to not run the select commands if it detects Windows.

Removing these lines on Windows fixes the issue currently. Tested functionality with [WHSPAH-Web-Interface](https://gitea.imadumbass.dog/WHSPAH/WHSPAH-Web-Interface). May work on adding a simple OS Check to not run the `select` commands if it detects Windows.
Sign in to join this conversation.
No description provided.