There may be some confusion during installation that Linux instructions do not apply to WSL, or someone might be trying to sample everything at once.
Or the need to turn off WSL detect in the rare case you want to run linux/winelinux version of game using WSL.
Solution:
Probably easiest to unset environment variable if encounter error.
root@DESKTOP-4EN0ECU:~/python-sc2# export SC2PF=WineLinux
root@DESKTOP-4EN0ECU:~/python-sc2# env | grep SC2
SC2PF=WineLinux
SC2SERVERHOST=0.0.0.0
SC2CLIENTHOST=1XX.XX.0.1
root@DESKTOP-4EN0ECU:~/python-sc2# cd examples/
root@DESKTOP-4EN0ECU:~/python-sc2/examples# python3 worker_rush.py
2024-09-04 15:59:59.196 | CRITICAL | sc2.paths:__setup:146 - SC2 installation not found: File '/root/.wine/drive_c/Program Files (x86)/StarCraft II/Versions' does not exist.
root@DESKTOP-4EN0ECU:~/python-sc2/examples# unset SC2PF
root@DESKTOP-4EN0ECU:~/python-sc2/examples# python3 worker_rush.py
2024-09-04 16:00:47.012 | INFO | sc2.wsl:detect:110 - WSL version 2 detected
There may be some confusion during installation that Linux instructions do not apply to WSL, or someone might be trying to sample everything at once.
Or the need to turn off WSL detect in the rare case you want to run linux/winelinux version of game using WSL.
Solution: Probably easiest to
unset
environment variable if encounter error.