Ubuntu: exec: "python": executable file not found in $PATH

jcsbanks
Posts: 160
Joined: Tue Mar 28, 2017 8:03 pm

Ubuntu: exec: "python": executable file not found in $PATH

Postby jcsbanks » Wed Oct 10, 2018 5:03 pm

I normally use ESP-IDF on Windows, but also installed ESP-IDF on Ubuntu and was able to compile and flash the board.

Then I installed Arduino from "Ubuntu Software", then used the boards manager with additional boards manager URL and obtained the ESP32 boards.

When compiling an example, I see "exec: "python": executable file not found in $PATH"

I can type python from a terminal and it runs. Adding /usr/bin/python to $PATH in profile.d (similar to adding paths for installing ESP-IDF) makes no difference.

jcsbanks
Posts: 160
Joined: Tue Mar 28, 2017 8:03 pm

Re: Ubuntu: exec: "python": executable file not found in $PATH

Postby jcsbanks » Wed Oct 10, 2018 8:04 pm

Installing from running install.sh from the downloaded tar works for anyone else with the same problem.

Greenninja4
Posts: 2
Joined: Sat Nov 03, 2018 8:43 pm

Re: Ubuntu: exec: "python": executable file not found in $PATH

Postby Greenninja4 » Sat Nov 03, 2018 9:03 pm

Hi, I've been having the same issue. What "install.sh" file are you running? And which tar file are you pulling it from?

Greenninja4
Posts: 2
Joined: Sat Nov 03, 2018 8:43 pm

Re: Ubuntu: exec: "python": executable file not found in $PATH

Postby Greenninja4 » Sun Nov 04, 2018 4:05 am

I just figured out where the "install.h" file is. For those who come across this in the future:

The "install.h" referenced in this post is from the Arduino IDE folder. If you're on Ubuntu re-download the Arduino IDE from their website (https://www.arduino.cc/en/Main/Software) and then once you have extracted the folder to where you would like the IDE, run the "install.sh". All this command does is create an application for Ubuntu.

I found out that I was having issues with python not being included in the $PATH when I was using the Arduino IDE from the Ubuntu Software Store.

joglz8
Posts: 2
Joined: Wed Jan 09, 2019 9:46 am

Re: Ubuntu: exec: "python": executable file not found in $PATH

Postby joglz8 » Sun Feb 03, 2019 10:27 pm

I am having this same problem. I have tried the remedies above with no luck.

Cannot get away from:

Code: Select all

exec: "python": executable file not found in $PATH
Error compiling for board TTGO LoRa32-OLED V1.
What else could I try?

Thanks.

P.S.: It was the pySerial thing again. Thought that I had installed it on this laptop.
Old controls guy, SW Ontario, Canada .

Return to “ESP32 Arduino”

Who is online

Users browsing this forum: Google [Bot] and 9 guests