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

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

pushpa66
Posts: 1
Joined: Tue Mar 19, 2019 9:02 am

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

Postby pushpa66 » Tue Mar 19, 2019 9:04 am

This was the solution for me. You have to install python if have not install it.

sudo apt install python

papa.emeritux
Posts: 1
Joined: Thu May 28, 2020 12:37 pm

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

Postby papa.emeritux » Thu May 28, 2020 12:49 pm

Hi all,

I know the post is a bit old, but I just ran into the issue. Since *ubuntu 20.04, you just need to install the package python-is-python3 in order to have the python command to execute python3 by default.

I also had to install python3-serial to have arduino working.

PE.


zfields
Posts: 3
Joined: Thu Aug 27, 2020 12:20 am

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

Postby zfields » Thu Aug 27, 2020 12:30 am

CONFIRMED: 26 Aug 2020

In order to support the ESP32, you will need to install the following packages:

Code: Select all

  sudo apt update && sudo apt upgrade -y \
    python-is-python3 \
    python3-serial
The Arduino IDE MUST NOT be installed as a .deb or .flatpak. Instead, it must be installed from the .zip file downloaded from the Arduino downloads page (https://www.arduino.cc/en/Main/Software).

Who is online

Users browsing this forum: No registered users and 68 guests