When I try to compile a simple program I get this:
atal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
LookupError: no codec search functions registered: can't find encoding
I ran the Python executable separately on the shell and got the same result and tried playing around with PYTHONHOME, PYTHONPATH, LANG etc. to see if I could even get the bundled Python to run by itself with no avail.
I believe that earlier versions relied on you having local Python installed, but this one comes with a bundled Python. It would seem like an easy thing to fix but I am not a Python expert so not getting very far. Perhaps this is a well known issue, not sure
Even though it is titled "on Windows", that change is in effect on all operating systems. But that fix is in the 3.0.2 release, so clearly it did not solve the problem for you.
The general (not specific to Arduino and ESP8266) issue is discussed here:
This is not a Python bug, this is a symptom of setting PYTHONHOME and/or PYTHONPATH when theyβre not needed. In nearly all cases you donβt need to set either of them; in the case of PYTHONHOME itβs almost always a mistake to set.
I recommend checking whether PYTHONHOME is set in /etc/launchd.conf. If so, remove it:
I'm sorry to hear that. I use the ESP32 platform on Windows and Linux all the time without any problems, but I don't have easy access to a macOS machine.
Maybe one of the other forum users who is on macOS can comment about their experiences using the ESP32 Arduino platform.