After trying uninstalling and reinstalling just about everything, deleting the c:\users\ (username) \ .platformio \ .cache folder seemed to fix the problem for me. Dunno what’s in there, but it must have really hated it.
Just so you know. I installed the Platformio extension in VS code, installed platformio in Python too.
I had Python installed on my system AND installed platformio also in there with ‘pip install platformio’.
After running a project ( ‘platformio.exe run’) , i got an error message that said “Python was not found”
Immediately after that : OSError: ‘python3 git_rev.py’ exited 9009:
THIS STUPID TRICK FIXED IT!
As I noticed several people encountering the same error in Windows / VSCode , it dawned on me that it tries to run ‘python3.exe’, but python3.exe usually is present on Linux, but not on Windows.
So i copied python.exe to python3.exe, like so:
copy C:\Program Files\Python310\python.exe C:\Program Files\Python310\python3.exe
(making sure the python3.exe is also present in %PATH%)