Page 1 of 1
bash: esptool.py: command not found
Posted: Tue Feb 12, 2019 7:52 pm
by theMusicMan
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
Re: bash: esptool.py: command not found
Posted: Tue Feb 12, 2019 8:31 pm
by pcmanbob
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.
Re: bash: esptool.py: command not found
Posted: Tue Feb 12, 2019 9:03 pm
by theMusicMan
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.
Re: bash: esptool.py: command not found
Posted: Tue Feb 12, 2019 9:35 pm
by pcmanbob
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.
Re: bash: esptool.py: command not found
Posted: Tue Feb 12, 2019 10:16 pm
by theMusicMan
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
I am now attempting a fresh raspbian distro... let's see how this goes.