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

jcsbanks
Posts: 128
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: 128
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.

Who is online

Users browsing this forum: No registered users and 14 guests