theMusicMan
Posts: 114
Joined: Tue May 23, 2017 8:41 pm

bash: esptool.py: command not found

Tue Feb 12, 2019 7:52 pm

Ok, so whilst trying to get my ESP8266 flashed with MicroPython) using by Pi3B+ (in a separate thread), I thought I would try to do the same thing with my Pi3B, however, despite running the esptool install in the terminal, then rebooting just in case, when attempting to run the esptool command I seem to be getting this error at the terminal;

bash: esptool.py: command not found

No idea why this isn't finding the command. Any pointers greatly appreciated.

Thanks

pcmanbob
Posts: 9467
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: bash: esptool.py: command not found

Tue Feb 12, 2019 8:31 pm

It looks like you are attempting to run a python file. ( .py )

If you want to run the file you need to enter the command like this

Python esptool.py or python3 esptool.py

Assuming you are in the directory were the file is located.

If you want to run the file without using the python command then you need to make sure the file in question has the python shebang as the first line and you need to make the file executable.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

theMusicMan
Posts: 114
Joined: Tue May 23, 2017 8:41 pm

Re: bash: esptool.py: command not found

Tue Feb 12, 2019 9:03 pm

pcmanbob wrote:
Tue Feb 12, 2019 8:31 pm
It looks like you are attempting to run a python file. ( .py )

If you want to run the file you need to enter the command like this

Python esptool.py or python3 esptool.py

Assuming you are in the directory were the file is located.

If you want to run the file without using the python command then you need to make sure the file in question has the python shebang as the first line and you need to make the file executable.
This is really strange, as I did exactly the same on my RPi3B+, and it all worked perfectly.

pcmanbob
Posts: 9467
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: bash: esptool.py: command not found

Tue Feb 12, 2019 9:35 pm

If they are both running raspbian then there should be no difference between your 2 pi's.

You must have done things differently or executed a different file.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

theMusicMan
Posts: 114
Joined: Tue May 23, 2017 8:41 pm

Re: bash: esptool.py: command not found

Tue Feb 12, 2019 10:16 pm

pcmanbob wrote:
Tue Feb 12, 2019 9:35 pm
If they are both running raspbian then there should be no difference between your 2 pi's.

You must have done things differently or executed a different file.
I agree, but d'ya think I can for the life of me ascertain what that is, haha :D

I am now attempting a fresh raspbian distro... let's see how this goes.

Return to “Beginners”