VSCode Extension: Platformio Cannot Initialize Project

Running Silicon M1 MAC OS 14.5. Using latest VSCode with Platformio extension. Installs with no problems and no errors. But when I try to create a New Project, I get the error “Could not initialize project” with lots of log messages.

Saw this in the messages:

OSError: [Errno 86] Bad CPU type in executable

along with references to different line number in .py files.

Examples:

File \"/Users/tjones/.platformio/penv/lib/python3.11/site-packages/platformio/builder/main.py\", line 173:

File \"/Users/tjones/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py\", line 612

I can’t imagine in 2024 this extension does not run on M1 Macs.

It is able to create all the folders and files though.

Anyone get this type of error or have any idea why I’m getting this error? Any help would be greatly appreciated.

You need to install Rosetta on your system. Have a look at this: