I’m try to resolve the error:
Python 2 and Python 3.5 are not compatible with PlatformIO Core 5.0.
Please check the migration guide on how to fix this warning message:
https://docs.platformio.org/en/latest/core/migration.html#drop-support-for-python-2-and-3-5
I’m on macOS Big Sur, with PlatformIO Core installed via Homebrew. Trying to follow the instructions at the link above isn’t working.
python3 --version
returns Python 3.9.1
which python3
returns /usr/local/bin/python3
pio system info
gives me:
-------------------------- -------------------------------------
PlatformIO Core Executable /usr/local/bin/platformio
File System Encoding utf-8
Locale Encoding UTF-8
PlatformIO Core 5.0.4
System Type darwin_x86_64
PlatformIO Core Directory /Users/dean/.platformio
Python Executable /usr/local/opt/python@2/bin/python2.7
Platform Darwin-20.2.0
Tools & Toolchains 0
Global Libraries 0
Development Platforms 0
Python 2.7.17-final.0
-------------------------- -------------------------------------
I’ve also tried deleting the penv directory, nuking my .platformio directory and reinstalling directly from the plaformio site.
What am I doing wrong?