Page 1 of 1

Python requirements are not satisfied at "make menuconfig"

Posted: Tue Mar 31, 2020 7:49 pm
by Hasan Shadi
I am trying to execute this command "make menuconfig" for the esp-idf.

I have encountered this problem that is related to python:

Code: Select all

work@RC-900 MINGW32 /c/esp32/esp-idf-template
$ make menuconfig
The following Python requirements are not satisfied:
click>=5.0
future>=0.15.2
cryptography>=2.1.4
pyparsing>=2.0.3,<2.4.0
pyelftools>=0.22
file:C:/esp32/esp-idf/tools/kconfig_new/esp-windows-curses; sys_platform == 'win32'
The recommended way to install a packages is via "pacman". Please run "pacman -Ss <package_name>" for searching the package database and if found then "pacman -S mingw-w64-i686-python2-<package_name>" for installing it.
NOTE: You may need to run "pacman -Syu" if your package database is older and run twice if the previous run updated "pacman" itself.
Please read https://github.com/msys2/msys2/wiki/Using-packages for further information about using "pacman"
WARNING: The cryptography package have dependencies on system packages so please make sure you run "pacman -Syu" followed by "pacman -S mingw-w64-i686-python2-cryptography".
make: *** No rule to make target 'check_python_dependencies', needed by 'menuconfig'.  Stop.
After this message, it does not show me that weird screen with some options, which means I have to fix this error that is related to python. However, I am sure that I have python 3.7 installed with windows 8.1, I am trying to eclipse as an IDE to write the code.
And this is the whole result from the first time from the execution of "make menuconfig":

############################
work@RC-900 MINGW32 /c/esp32/esp-idf-template
$ make menuconfig
make[1]: Entering directory '/c/esp32/esp-idf/tools/kconfig'
/usr/bin/gcc -c -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WI DECHAR=1 -DLOCALE -MMD -MP -I "." -I "/c/esp32/esp-idf/tools/kconfig" /c/esp32/ esp-idf/tools/kconfig/mconf.c -o mconf.o
flex -L -Pzconf -ozconf.lex.c /c/esp32/esp-idf/tools/kconfig/zconf.l
bison -t -l -p zconf -o zconf.tab.c /c/esp32/esp-idf/tools/kconfig/zconf.y
sed -E "s/\\x0D$//" /c/esp32/esp-idf/tools/kconfig/zconf.gperf | gperf -t --outp ut-file zconf.hash.c -a -C -E -g -k '1,3,$' -p -t
/usr/bin/gcc -I /c/esp32/esp-idf/tools/kconfig -c -I/usr/include/ncursesw -DCUR SES_LOC="<curses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE -MMD -MP -I "." -I "/c/esp32 /esp-idf/tools/kconfig" zconf.tab.c -o zconf.tab.o
/c/esp32/esp-idf/tools/kconfig/lxdialog/check-lxdialog.sh -check /usr/bin/gcc - I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE -MMD -MP -I "." -I "/c/esp32/esp-idf/tools/kconfig" -lncursesw -lintl
/usr/bin/gcc -c -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WI DECHAR=1 -DLOCALE -MMD -MP -I "." -I "/c/esp32/esp-idf/tools/kconfig" /c/esp32/ esp-idf/tools/kconfig/lxdialog/checklist.c -o lxdialog/checklist.o
/usr/bin/gcc -c -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WI DECHAR=1 -DLOCALE -MMD -MP -I "." -I "/c/esp32/esp-idf/tools/kconfig" /c/esp32/ esp-idf/tools/kconfig/lxdialog/util.c -o lxdialog/util.o
/usr/bin/gcc -c -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WI DECHAR=1 -DLOCALE -MMD -MP -I "." -I "/c/esp32/esp-idf/tools/kconfig" /c/esp32/ esp-idf/tools/kconfig/lxdialog/inputbox.c -o lxdialog/inputbox.o
/usr/bin/gcc -c -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WI DECHAR=1 -DLOCALE -MMD -MP -I "." -I "/c/esp32/esp-idf/tools/kconfig" /c/esp32/ esp-idf/tools/kconfig/lxdialog/textbox.c -o lxdialog/textbox.o
/usr/bin/gcc -c -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WI DECHAR=1 -DLOCALE -MMD -MP -I "." -I "/c/esp32/esp-idf/tools/kconfig" /c/esp32/ esp-idf/tools/kconfig/lxdialog/yesno.c -o lxdialog/yesno.o
/usr/bin/gcc -c -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WI DECHAR=1 -DLOCALE -MMD -MP -I "." -I "/c/esp32/esp-idf/tools/kconfig" /c/esp32/ esp-idf/tools/kconfig/lxdialog/menubox.c -o lxdialog/menubox.o
/usr/bin/gcc -c -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WI DECHAR=1 -DLOCALE -MMD -MP -I "." -I "/c/esp32/esp-idf/tools/kconfig" /c/esp32/ esp-idf/tools/kconfig/expand_env.c -o expand_env.o
/usr/bin/gcc -o mconf-idf mconf.o zconf.tab.o lxdialog/checklist.o lxdialog/util .o lxdialog/inputbox.o lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o ex pand_env.o -lncursesw -lintl
/usr/bin/gcc -c -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WI DECHAR=1 -DLOCALE -MMD -MP -I "." -I "/c/esp32/esp-idf/tools/kconfig" /c/esp32/ esp-idf/tools/kconfig/conf.c -o conf.o
/usr/bin/gcc -o conf-idf conf.o zconf.tab.o expand_env.o -lncursesw -lintl
make[1]: Leaving directory '/c/esp32/esp-idf/tools/kconfig'
make[1]: Entering directory '/c/esp32/esp-idf/tools/kconfig'
/c/esp32/esp-idf/tools/kconfig/lxdialog/check-lxdialog.sh -check /usr/bin/gcc - I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE -MMD -MP -I "." -I "/c/esp32/esp-idf/tools/kconfig" -lncursesw -lintl
/usr/bin/gcc -c -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WI DECHAR=1 -DLOCALE -MMD -MP -I "." -I "/c/esp32/esp-idf/tools/kconfig" /c/esp32/ esp-idf/tools/kconfig/lxdialog/checklist.c -o lxdialog/checklist.o
/usr/bin/gcc -c -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WI DECHAR=1 -DLOCALE -MMD -MP -I "." -I "/c/esp32/esp-idf/tools/kconfig" /c/esp32/ esp-idf/tools/kconfig/lxdialog/util.c -o lxdialog/util.o
/usr/bin/gcc -c -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WI DECHAR=1 -DLOCALE -MMD -MP -I "." -I "/c/esp32/esp-idf/tools/kconfig" /c/esp32/ esp-idf/tools/kconfig/lxdialog/inputbox.c -o lxdialog/inputbox.o
/usr/bin/gcc -c -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WI DECHAR=1 -DLOCALE -MMD -MP -I "." -I "/c/esp32/esp-idf/tools/kconfig" /c/esp32/ esp-idf/tools/kconfig/lxdialog/textbox.c -o lxdialog/textbox.o
/usr/bin/gcc -c -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WI DECHAR=1 -DLOCALE -MMD -MP -I "." -I "/c/esp32/esp-idf/tools/kconfig" /c/esp32/ esp-idf/tools/kconfig/lxdialog/yesno.c -o lxdialog/yesno.o
/usr/bin/gcc -c -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WI DECHAR=1 -DLOCALE -MMD -MP -I "." -I "/c/esp32/esp-idf/tools/kconfig" /c/esp32/ esp-idf/tools/kconfig/lxdialog/menubox.c -o lxdialog/menubox.o
/usr/bin/gcc -o mconf-idf mconf.o zconf.tab.o lxdialog/checklist.o lxdialog/util .o lxdialog/inputbox.o lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o ex pand_env.o -lncursesw -lintl
make[1]: Leaving directory '/c/esp32/esp-idf/tools/kconfig'
The following Python requirements are not satisfied:
click>=5.0
future>=0.15.2
cryptography>=2.1.4
pyparsing>=2.0.3,<2.4.0
pyelftools>=0.22
esp-windows-curses; sys_platform == 'win32'
The recommended way to install a packages is via "pacman". Please run "pacman -S s <package_name>" for searching the package database and if found then "pacman - S mingw-w64-i686-python2-<package_name>" for installing it.
NOTE: You may need to run "pacman -Syu" if your package database is older and ru n twice if the previous run updated "pacman" itself.
Please read https://github.com/msys2/msys2/wiki/Using-packages for further infor mation about using "pacman"
WARNING: The cryptography package have dependencies on system packages so please make sure you run "pacman -Syu" followed by "pacman -S mingw-w64-i686-python2-c ryptography".
make: *** No rule to make target 'check_python_dependencies', needed by 'menucon fig'. Stop.
############################

I have no idea on how to solve this problem, I searched a little bit on the internet, but found nothing.

Re: Python requirements are not satisfied at "make menuconfig"

Posted: Wed Apr 01, 2020 10:20 am
by ESP_Roland
Hello Hasan Shadi,

You can download the MSYS environment from here https://docs.espressif.com/projects/esp ... hain-setup which has all Python packages already installed.

If you want to fix your existing environment then probably this should work:

Code: Select all

pacman --noconfirm -S --needed gettext-devel gcc git make ncurses-devel flex bison gperf vim mingw-w64-i686-python-pip mingw-w64-i686-python-cryptography unzip winpty
python -m pip install -r "$IDF_PATH/requirements.txt"

Re: Python requirements are not satisfied at "make menuconfig"

Posted: Tue Apr 07, 2020 10:44 am
by ilioss
Hello ESP_Roland,
I have the same problem when installing esp idf.
On both my computers one desktop and one laptop.
Is your problem solved?
Here on both computers arduino esp installed??? Gives this the problem?
For arduino python 2.7 is mandatory.
Like to hear what to do to be able to succesfully install. Esp32 idf
Regards ilioSS

Re: Python requirements are not satisfied at "make menuconfig"

Posted: Tue Apr 07, 2020 3:47 pm
by Hasan Shadi
ilioss wrote:
Tue Apr 07, 2020 10:44 am
Hello ESP_Roland,
I have the same problem when installing esp idf.
On both my computers one desktop and one laptop.
Is your problem solved?
Here on both computers arduino esp installed??? Gives this the problem?
For arduino python 2.7 is mandatory.
Like to hear what to do to be able to succesfully install. Esp32 idf
Regards ilioSS
I found an easier way that works perfectly for me, download this :
It will install everything you need, like: git, python, ninja and etc...
After the installation, you will have "ESP-IDF Command Prompt" installed and there will be a shortcut at the end of the installation on your desktop, you will need it to compile your code, upload and even monitor the ESP32 chips (literally everything) and it is much easier to work with, even more than the "msys32" tool and their other needed tools. I have tested the tool (ESP-IDF CMD) that was installed by the ".exe" setup file above. And everything has worked as intended, if you want to know more about it is commands, type "idf.py {COMMAND} --help", "idf.py" should be always written first.

If you have another question about it, email me at "hassan1551@outlook.com", make the title "ESP-IDF" so I recognize you.

Re: Python requirements are not satisfied at "make menuconfig"

Posted: Tue Apr 21, 2020 10:53 am
by ilioss
Hello Hasan Shadi and ESP_Roland,

First of al sorry for the mixed up you two guy,s.
But finaly I managed to have the ESP-IDF working due to Rolands link.
Many thanks.
Keep up the good work.
Regards, ilioSS

Re: Python requirements are not satisfied at "make menuconfig"

Posted: Mon Apr 27, 2020 3:44 pm
by Baldhead
Hi,

Can someone help me with this ?

viewtopic.php?f=40&t=15374

Thank's.