A PlatformIO builder script or sub-tool is not properly escaping the path – first c:\users\ricky gai.platformio\penv\scripts\python.exe should have been "c:\users\ricky gai.platformio\penv\scripts\python.exe". The problem lies in
- Open the file explorer and find the file
C:\Users\<user>\.platformio\platforms\nordicnrf52\builder\main.py - Find the above referenced line 133 and replace
"$PYTHONEXE"with'"$PYTHONEXE"'. - Rebuild.
- Open an issue at Issues · platformio/platform-nordicnrf52 · GitHub to get this resolved on the developer side.