Page 1 of 2
Suddenly 'make' command stopped working
Posted: Wed Jul 10, 2019 4:51 pm
by Chorus2020
I've been working on a project for a few days and successfully running make commands and compiling the project in Eclipse. Suddenly this afternoon commands such as 'make menuconfig' stopped work and reporting this:
$ make menuconfig
/usr/bin/env: ‘python’: No such file or directory
make: *** No rule to make target 'check_python_dependencies', needed by 'menuconfig'. Stop.
I'm tried updating the esp-idf but the problem remains.
When I run this:
Code: Select all
python2.7 -m pip install --user -r $IDF_PATH/requirements.txt
it reports back that all the requirements are satisfied.
But this
Code: Select all
$ python -m pip install --user -r $IDF_PATH/requirements.txt
reports
So I'm not sure if the python version are mixed up somehow or if the problem is completely different.
PS I've double checked the IDF_PATH is correct.
Re: Suddenly 'make' command stopped working
Posted: Thu Jul 11, 2019 6:52 am
by ESP_Roland
Hi Chorus2020.
If you get "python not found" error in regular terminal (not internal Eclipse) the problem is at the OS level.
You can temporarily avoid the issue by setting a global PYTHON variable to "python2.7" in Eclipse and/or
changing CONFIG_SDK_PYTHON="python" in the project sdkconfig file.
Re: Suddenly 'make' command stopped working
Posted: Thu Jul 11, 2019 8:10 am
by Chorus2020
Roland,
Thank you for the reply.
I've had a look in the project sdkconfg file and CONFIG_SDK_PYTHON variable does not exist. I did find CONFIG_PYTHON="python" which I tried changing to python2.7 but this did not work. I also tried adding PYTHON = python2.7 to the environment properties in Eclipse but this did not make a difference either.
Here is the error message I get when I try to build in Eclipse:
/usr/bin/env: 'python': No such file or directory
make: *** No rule to make target 'check_python_dependencies', needed by '/home/ppzas2/esp/NanoTeslaCCS-ESP32/build/include/config/auto.conf'. Stop.
Thanks
Andy
Re: Suddenly 'make' command stopped working
Posted: Sat Jul 13, 2019 10:14 am
by Ritesh
Chorus2020 wrote: ↑Thu Jul 11, 2019 8:10 am
Roland,
Thank you for the reply.
I've had a look in the project sdkconfg file and
CONFIG_SDK_PYTHON variable does not exist. I did find
CONFIG_PYTHON="python" which I tried changing to python2.7 but this did not work. I also tried adding PYTHON = python2.7 to the environment properties in Eclipse but this did not make a difference either.
Here is the error message I get when I try to build in Eclipse:
/usr/bin/env: 'python': No such file or directory
make: *** No rule to make target 'check_python_dependencies', needed by '/home/ppzas2/esp/NanoTeslaCCS-ESP32/build/include/config/auto.conf'. Stop.
Thanks
Andy
Hello,
Can you try directly without using eclipse like using MSYS? Is it working fine with ESP32 IDF with example as well?
Re: Suddenly 'make' command stopped working
Posted: Mon Jul 15, 2019 7:36 am
by Chorus2020
Hi,
I decided to do a fresh install of MSYS and the idf; everything is working now. Hopefully I won't run into the same problem again. Not sure what actually when wrong!
thanks
Re: Suddenly 'make' command stopped working
Posted: Mon Jul 15, 2019 8:27 am
by Ritesh
Chorus2020 wrote: ↑Mon Jul 15, 2019 7:36 am
Hi,
I decided to do a fresh install of MSYS and the idf; everything is working now. Hopefully I won't run into the same problem again. Not sure what actually when wrong!
thanks
Great. Let me know if you face same issue again as we are also using MSYS and Eclipse into our development phase and didn't face any issue like you have faced earlier.
Re: Suddenly 'make' command stopped working
Posted: Thu Apr 23, 2020 9:46 am
by Ahmad Farid
i'm stuck in this problem, can anyone help me? thx
farid_@DESKTOP-QRFLH6S MINGW32 /c/Users/farid_/Desktop/workspace/HelloWorld
$ make menuconfig
make: python: No such file or directory
make: *** No rule to make target 'check_python_dependencies', needed by 'menuconfig'. Stop.
Re: Suddenly 'make' command stopped working
Posted: Thu Apr 23, 2020 10:32 am
by ESP_Roland
Ahmad Farid wrote: ↑Thu Apr 23, 2020 9:46 am
i'm stuck in this problem, can anyone help me? thx
farid_@DESKTOP-QRFLH6S MINGW32 /c/Users/farid_/Desktop/workspace/HelloWorld
$ make menuconfig
make: python: No such file or directory
make: *** No rule to make target 'check_python_dependencies', needed by 'menuconfig'. Stop.
Hi Ahmad Farid,
are you able to run the following command?
BTW, here is a downloadable working environment
https://docs.espressif.com/projects/esp ... hain-setup
Re: Suddenly 'make' command stopped working
Posted: Thu Apr 23, 2020 11:16 am
by Ahmad Farid
Hi Sir
the results show like this :
Code: Select all
farid_@DESKTOP-QRFLH6S MINGW32 ~
$ python --version
-bash: python: command not found
i run the command at mingw32
and if i run the command at windows cmd the result is :
Code: Select all
C:\Users\farid_>python --version
Python 2.7
Re: Suddenly 'make' command stopped working
Posted: Fri Apr 24, 2020 5:17 am
by Ahmad Farid
can someone help me, I'm still facing this problem.
farid_@DESKTOP-QRFLH6S MINGW32 /c/Users/farid_/Desktop/workspace/HelloWorld
$ make menuconfig
make: python: No such file or directory
make: *** No rule to make target 'check_python_dependencies', needed by 'menuconfig'. Stop.
when I check my version of python in windows cmd it shows " python 2.7 " and if through mingw32 it shows " -bash: python: command not found ". thankyou