Marlin 2.0x no longer builds in OS X

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>/.platformio folder)
  • try installing known-good Python 3.7 if possible
  • install PlatformIO for the CLI: pip3 install platformio or use the installer script
  • check that pio --version is running properly in the shell
  • download Marlin
  • make appropriate changes to the platformio.ini regarding default environment, user config files, if necessary
  • pio run in the Marlin folder and check if there are errors.