'c:\users\xxxxx' is not recognized as an internal or external command, operable program or batch file

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

  1. Open the file explorer and find the file C:\Users\<user>\.platformio\platforms\nordicnrf52\builder\main.py
  2. Find the above referenced line 133 and replace "$PYTHONEXE" with '"$PYTHONEXE"'.
  3. Rebuild.
  4. Open an issue at Issues · platformio/platform-nordicnrf52 · GitHub to get this resolved on the developer side.
1 Like