First Test: Error: Detected a whitespace character in project paths

PIO fails and complains about “Error: Detected a whitespace character in project paths”
It points me to a known bug:

A temporary solution is to create .platformio folder in the root of your system disk and restart VSCode. You can also remove %USERPROFILE%/.platformio folder to save disk space. PlatformIO automatically will use C:\.platformio.

So I created the directory C:.platformio, and deleted the original c:/users/xxxx/platformio.

I tried the first test project again. This time it spent a long time doing what ever it does, but eventually failed the same way again. Below, is the last section of the log

Blockquoten Running setup.py install for future: finished with status ‘done’\r\n
Successfully installed cachecontrol-0.12.11 certifi-2022.12.7 cffi-1.15.1 charset-normalizer-3.1.0 click-8.1.3 colorama-0.4.6 contextlib2-21.6.0 cryptography-39.0.2 future-0.18.3 idf-component-manager-1.2.2 idna-3.4 kconfiglib-14.1.0 lockfile-0.12.2 msgpack-1.0.4 packaging-23.0 pycparser-2.21 pyparsing-3.0.9 pyyaml-6.0 requests-2.28.2 requests-file-1.5.1 requests-toolbelt-0.10.1 schema-0.7.5 six-1.16.0 tqdm-4.65.0 urllib3-1.26.14\r\n
WARNING: You are using pip version 21.2.4; however, version 23.0.1 is available.\r\nYou should consider upgrading via the ‘C:\.platformio\penv\.espidf-5.0.0\Scripts\python.exe -m pip install --upgrade pip’ command.\r\nInstalling windows-curses package\r\nCollecting windows-curses\r\n Using cached windows_curses-2.3.1-cp39-cp39-win_amd64.whl (89 kB)\r\nInstalling collected packages: windows-curses\r\nSuccessfully installed windows-curses-2.3.1\r\n
WARNING: You are using pip version 21.2.4; however, version 23.0.1 is available.\r\nYou should consider upgrading via the ‘C:\.platformio\penv\.espidf-5.0.0\Scripts\python.exe -m pip install --upgrade pip’ command.\r\n
Error: Detected a whitespace character in project paths.\r\n========================= [FAILED] Took 29.00 seconds ========================="

The issue was not in the C:.platformio\ path, but in the project path. I was putting in “My Documents” and it hated that space

It worked for me, Thanks :handshake:t5: