SOLVED ESP32 arduino program problems

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
decrepit
Level 5
Level 5
Posts: 766
Joined: Mon Dec 03, 2018 4:07 am
Location: Mandurah Western Australia

SOLVED ESP32 arduino program problems

Post by decrepit »

I'm trying to program and ESP32 board with Arduino.
I've got to the compile stage but get this error message.
exec: "python": executable file not found in $PATH
Compilation error: exec: "python": executable file not found in $PATH
OS mint mate 21.0. Arduino 2.0 appimage.

Google comes up quite a few different fixes, like.

Code: Select all

Run:

$ echo "alias python='python3'" >> .bashrc
$ source .bashrc
Seems they think the problem is the arduino is looking for a different version of python,
But I'm not game to run random code from the web, without knowing what I'm doing

Could be correct because.

Code: Select all

decrepit@Percy:~$ python --version
Command 'python' not found, did you mean:
  command 'python3' from deb python3
  command 'python' from deb python-is-python3
decrepit@Percy:~$ python3 --version
Python 3.10.6
decrepit@Percy:~$ 
So if arduino is looking for "python" it's not there. How do I safely redirect it ti python3?
The above code looks like it will do it, but is it OK?
Last edited by decrepit on Thu Sep 29, 2022 6:11 am, edited 2 times in total.
Reddog1
Level 6
Level 6
Posts: 1075
Joined: Wed Jun 01, 2011 2:12 pm

Re: Python executable not in PATH

Post by Reddog1 »

try:

$sudo ln -s /usr/bin/python3 /usr/bin/python
decrepit
Level 5
Level 5
Posts: 766
Joined: Mon Dec 03, 2018 4:07 am
Location: Mandurah Western Australia

Re: Python executable not in PATH

Post by decrepit »

Thanks, that got rid of the python problem, now arduino doesn't connect to the serial port
Sketch uses 833750 bytes (63%) of program storage space. Maximum is 1310720 bytes.
Global variables use 41276 bytes (12%) of dynamic memory, leaving 286404 bytes for local variables. Maximum is 327680 bytes.
esptool.py v3.0-dev
Serial port /dev/ttyACM0
Connecting........_____....._____....._____....._____....._____....._____....._____

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
Failed uploading: uploading error: exit status 2
decrepit
Level 5
Level 5
Posts: 766
Joined: Mon Dec 03, 2018 4:07 am
Location: Mandurah Western Australia

Re: ESP32 arduino program problems

Post by decrepit »

Fixed that, plugged it and turned it on
Post Reply

Return to “Software & Applications”