Error: Compatible PlatformIO Core not found

I am running VScode on Fedora and after an update to Fedora41, I get this error when opening VScode. It works fine on Fedora40.
Thanks,

Error: Error: Compatible PlatformIO Core not found.
Reason: Could not run `/home/graeme/.platformio/penv/bin/platformio --help`.
Error: ModuleNotFoundError: Traceback (most recent call last):
  File "/home/graeme/.platformio/penv/lib64/python3.13/site-packages/platformio/__main__.py", line 103, in main
    cli()  # pylint: disable=no-value-for-parameter
    ~~~^^
 
 File "/home/graeme/.platformio/penv/lib64/python3.13/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/home/graeme/.platformio/penv/lib64/python3.13/site-packages/click/core.py", line 1077, in main
    with self.make_context(prog_name, args, **...

Please

rm -rf ~/.platformio
curl -fsSL -o get-platformio.py https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py
python3 get-platformio.py

and restart VSCode.

Thanks for the fast reply, I have tried out your suggestions but no luck.
What I have done is to install python3.12 and symlink python to that version and all works as normal, PlatformIO Core gets created.
I have raised a bug report to redhat bugzilla, they have have asked for move info.
There was a security update to 3.13 a few days ago and that might be it?

Thanks for your help.

Do you have a full backtrace of the error? The one above seems to be cut off.

It could also be that the PlatformIO core really doesn’t support Python 3.13, the last stated version is “3.12”: https://github.com/platformio/platformio-core/releases

CC @ivankravets for possible confirmation

1 Like

Fixed in

Thanks Ivan, great. I have tried out the RC as well and works for me with 3.13 as the python version.

1 Like