Suddenly 'make' command stopped working

Chorus2020
Posts: 5
Joined: Fri May 03, 2019 10:23 am

Suddenly 'make' command stopped working

Postby Chorus2020 » Wed Jul 10, 2019 4:51 pm

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

Code: Select all

-bash: python: command not found
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.

User avatar
ESP_Roland
Posts: 265
Joined: Tue Oct 09, 2018 10:28 am

Re: Suddenly 'make' command stopped working

Postby ESP_Roland » Thu Jul 11, 2019 6:52 am

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.

Chorus2020
Posts: 5
Joined: Fri May 03, 2019 10:23 am

Re: Suddenly 'make' command stopped working

Postby Chorus2020 » 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

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Suddenly 'make' command stopped working

Postby Ritesh » Sat Jul 13, 2019 10:14 am

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?
Regards,
Ritesh Prajapati

Chorus2020
Posts: 5
Joined: Fri May 03, 2019 10:23 am

Re: Suddenly 'make' command stopped working

Postby Chorus2020 » 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

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Suddenly 'make' command stopped working

Postby Ritesh » Mon Jul 15, 2019 8:27 am

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.
Regards,
Ritesh Prajapati

Ahmad Farid
Posts: 4
Joined: Thu Apr 23, 2020 8:17 am

Re: Suddenly 'make' command stopped working

Postby Ahmad Farid » 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.

User avatar
ESP_Roland
Posts: 265
Joined: Tue Oct 09, 2018 10:28 am

Re: Suddenly 'make' command stopped working

Postby ESP_Roland » Thu Apr 23, 2020 10:32 am

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?

Code: Select all

python --version
BTW, here is a downloadable working environment https://docs.espressif.com/projects/esp ... hain-setup

Ahmad Farid
Posts: 4
Joined: Thu Apr 23, 2020 8:17 am

Re: Suddenly 'make' command stopped working

Postby Ahmad Farid » Thu Apr 23, 2020 11:16 am

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

Ahmad Farid
Posts: 4
Joined: Thu Apr 23, 2020 8:17 am

Re: Suddenly 'make' command stopped working

Postby Ahmad Farid » Fri Apr 24, 2020 5:17 am

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

Who is online

Users browsing this forum: ESP_adokitkat and 91 guests