I had the same issue with ESP8266 and ESP32. The reinstall described here solved it for 8266 (thank you!) but it persists with ESP32. I'm hoping for a similar easy solution as I'm not very technical. I'm running Arduino 1.8.19 on Macbook 10.13.6 (highest version my mac supports). I have python 3 installed.
Any suggestion of how to compile properly with python 3 error for ESP32?
Thank you.
My apologies for the previous lack of details. I'm using arduino 1.8.19, on a Macbook running 10.13.6 (not possible to update further) and the latest version of FastLED 3.5.0. I have Python 2.7 and Python 3.10 installed. I have tried compiling multiple programs that currently run happily on arduinos as well as ones that now also compile and run on ESP8266.
The successful 8266 compilation message contains this:
/Users/ddc/Library/Arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3 -I /Users/ddc/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/cp.py /Users/ddc/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/sdk/ld/eagle.flash.1m64.ld /var/folders/72/ds_n6_ns5md1khqwt5qh33y40000gn/T/arduino_build_757501/ld_h/local.eagle.flash.ld.h
Whereas the ESP32 message attempting to compile the same sketch is this (which I don't know how to interpret):
[24464] Error loading Python lib '/var/folders/72/ds_n6_ns5md1khqwt5qh33y40000gn/T/_MEIQyy9m3/libpython3.8.dylib': dlopen: dlopen(/var/folders/72/ds_n6_ns5md1khqwt5qh33y40000gn/T/_MEIQyy9m3/libpython3.8.dylib, 10): Symbol not found: ____chkstk_darwin
Referenced from: /var/folders/72/ds_n6_ns5md1khqwt5qh33y40000gn/T/_MEIQyy9m3/libintl.8.dylib (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
in /var/folders/72/ds_n6_ns5md1khqwt5qh33y40000gn/T/_MEIQyy9m3/libintl.8.dylib
Multiple libraries were found for "FastLED.h"
Used: /Users/ddc/Documents/Arduino/libraries/FastLED
Not used: /Users/ddc/Documents/Arduino/libraries/FastLED-3.4.0
Using library FastLED at version 3.5.0 in folder: /Users/ddc/Documents/Arduino/libraries/FastLED
exit status 255
/private/var/folders/72/ds_n6_ns5md1khqwt5qh33y40000gn/T/AppTranslocation/BB3D5EBB-815A-48BE-8149-927B3AE0601C/d/Arduino.app/Contents/Java/arduino-builder returned 255
Error compiling for board ESP32S2 Dev Module.
I tried using solutions from the links you provided (thank you for that), the "open /Applications/Arduino1.8.19.app" command in terminal resulted in: "The file /applications/arduino1.8.19.app does not exist."
This did not fix things either.
"sed -i -e 's/=python /=python3 /g' ~/Library/Arduino15/packages/esp32/hardware/esp32/*/platform.txt"
I'm not a computer person. I'm working on LED art projects and hope to take advantage of the greater capabilities of ESP32. Any help will be appreciated.
Unfortunately it seems that there is not a real solution to that problem, apart from upgrading to at least Mac OSX 10.15: https://github.com/espressif/arduino-esp32/issues/5639
In the above thread, someone posted a successful workaround that involves creating a Linux virtual machine. This can be very technical and perhaps not free...
I did use the terminal commands in the link you offered but didn't get the problem solved. I think it's time to buy a new computer and get the latest OS so I'm not having to deal with these kinds of issues. Thank you for taking the time and effort to research this problem and point me to things that have worked for others. I very much appreciate your kindness.