o_O Why is it referencing Python 2.7 here. PlatformIO has deprecrated Python 2.7 long ago and switched to Python 3.
Some users have reported errors on Python 3.8 and recommended using Python 3.7.X.
You should try tto:
- remove the PlatformIO tools (remove VSCode extension, remove the
<user home>/.platformiofolder) - try installing known-good Python 3.7 if possible
- install PlatformIO for the CLI:
pip3 install platformioor use the installer script - check that
pio --versionis running properly in the shell - download Marlin
- make appropriate changes to the
platformio.iniregarding default environment, user config files, if necessary pio runin the Marlin folder and check if there are errors.