I confirm, my ESP32Cam uses this library : gen_esp32part.py
I think entire ESP IDF is based on python
Yes, another question maybe gen_esp32.py needs absolutely python 2 , reason why compiler asks for additional command line features ? Is it possible to re-install python2 on monterey 12.3 with homebrew ?
I have the same problem in Windows 10 Arduino IDE 2.0 RC-5
MacBook Air (Intel), Monterey 12.3
1. instal Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
2. instal Python2:
brew install python@2
3. don't start Arduino from GUI!!!
open terminal
type:
open /Applications/Arduino.app
no more error with compilation:
exec: "python": executable file not found in $PATH
Error compiling for board ESP32 Dev Module.
It works for me.
TNX
I have installed Python 2.7.18 with your tip , and it works when I launch Arduino.app with Terminal.
Thanks
Couldn't install python@2 with my Macbook Air M1. however it worked after johnwasser's advice (here above), Python 2.7.18 and Arduino.app launch thru Terminal.
Thanks zyghom, nadym and johnwasser for all these posts.
I had to do exactly what described by bernard_ulrich (and also thanks to johnwasser).
Got python 2.7.18 as a package from official installation site and launched Arduino app ( 1.8.20 ) from command line. Downloaded a simple sketch to a LOLIN32 module without a glitch.
However, Arduino 2.0.0.rc5 can be launched normally without resorting to the command line and you can download sketches to ESP32 based modules without problems.
It's weird, isn't it?
Many thanks to all the contributors to this thread
My configuration is iMac 5K 27" late 2015, Intel based, OS X Monterey 12.3, installed yesterday.
Has anybody verified if PlatformIo shows the same problem?
Thanks Fabri54. Arduino 2.0.0.rc5 working fine
I had the same problem after having installed Monterey 12.3 : no more python anywhere.
So I tried which python 3 which give:
/Library/Frameworks/Python.framework/Versions/3.10/bin
and then make a symbolic link
ln -s /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 python
mv python /Library/Frameworks/Python.framework/Versions/3.10/bin
And I can now recompile my old sketch for ESP32 !
here is a solution:
https://forum.arduino.cc/t/mac-os-update-killed-esp32-sketch/969580/8?u=nadym
I don't know what happened, but I was having the same problem and trying everything under the sun, but the last thing I tried before trying another check was this line and it worked!! thank you.
I applied the solution from #32 and it works for me (change "python" to the full path in the files mentioned in the #32) so I don't need to open Arduino from terminal anymore
New to all this, with a new MBPro with 12.2.1.
I came in search of USB Port drivers, but haven't gotten so far as to have Python issues with my attempts at sending a sketch to a ttgo t-display esp32 board. No port to send it on.
How did you folks with 12.3 get USB ports into your Mac?
Ohhh Snap! ths worked for me also, thanks a million!
Just to be clear and add to my comment. I'm running a macbook Pro 14 M1 Pro. This system did not come with python 2.7, since in Monterey now they don't include it anymore. And running from terminal still works,
Thanks again.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.