Error running Platformio / ESPIDF on Apple M1 Mac

Find another chardet package and copy the entire folder here:

.platformio/penv/.espidf-5.0.0/lib/python3.9/site-packages/

You may find one here:

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages

It is not a standard python library, so you will have to obtain it from pypi.