Error: Compatible PlatformIO Core not found
Solution
Please uninstall global PlatformIO Cores https://docs.platformio.org/en/latest/core/installation/troubleshooting.html#multiple-platformio-cores-in-a-system and ensure that "Use built-in PlatformIO Core" is enabled in the VSCode Settings. Restart VSCode.
I decided to update PIO extension to v3.3.2 today, but I cannot get past this error:
Error: Error: Compatible PlatformIO Core not found.
Reason: Could not run `C:\Users\mick\.platformio\penv\Scripts\platformio.exe --help`.
Error: ImportError: Traceback (most recent call last):
File "C:\Users\mick\.platformio\penv\Lib\site-packages\platformio\__main__.py", line 103, in main cli() # pylint: disable=no-value-for-parameter ^^^^^
File "C:\Users\mick\.platformio\penv\Lib\site-packages\click\core.py", line 1157, in __call__ return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mick\.platformio\penv\Lib\site-packages\click\core.py", line 1077, in main with self.make_context(prog_name, args, **extra) as ctx: ...
I have followed the links and this solution including deleting .platformio directory completely. W10 AV disabled Very odd! After a clean install of the extension when I run pip uninstall platformio I get the message
Found existing installation: platformio **6.1.13**
Uninstalling platformio-6.1.13:
Would remove:
c:\users\mick\.platformio\penv\lib\site-packages\platformio-6.1.13.dist-info\*
c:\users\mick\.platformio\penv\lib\site-packages\platformio\*
c:\users\mick\.platformio\penv\scripts\pio.exe
c:\users\mick\.platformio\penv\scripts\piodebuggdb.exe
c:\users\mick\.platformio\penv\scripts\platformio.exe
Proceed (Y/n)? Y
How can it be installing an old version?
I found my problem was an older version of Python was being used even though I had updated - multiple copies. I removed Python310 leaving Python 311
As always, thanks Max and Ivan!