Error installing PlatformIO IDE in VS Code on a Mac Mini M1

Hello. I just recently bought a Mac Mini with the M1 CPU. I installed VS Code, and tried to install PlatformIO and I just keep getting an error. The first time it was installing PlatformIO, it wanted to install command line tools which I let it install, but now anytime I try to install PlatformIO I just get this error message.
Screen Shot 2021-06-30 at 7.09.38 PM

Does anyone have an idea on how to fix this so I can get PlatformIO installed? Thanks.

We need the complete stacktrace – click on “Report a problem” and copy-paste the entire stacktrace message.

Sorry about that. I have seemed to get it to install. After hitting the Report a problem button, I looked at the output and the python executable couldn’t run because of a wrong machine type. I just bought this Mac Mini today, so I didn’t have Rosetta 2 installed yet. I found an app that would get Rosetta 2 installed, and reran the PlatformIO installer and it has installed just fine.

Screen Shot 2021-06-30 at 7.57.56 PM