problem whith running "idf.py.exe menuconfig"

hamidkavianathar
Posts: 2
Joined: Wed Jul 21, 2021 9:00 am

problem whith running "idf.py.exe menuconfig"

Postby hamidkavianathar » Mon May 29, 2023 10:15 am

Hi forum,

I am completely new to esp32 and vscode. I have installed vscode and esp-idf extension successfully. I want to run example projects, when I enter "idf.py.exe menuconfig" command in terminal, it doesn't work. I receivebelow message:
Executing action: menuconfig
Running ninja in directory C:\Users\a\Downloads\ESP_projects\test1\build
Executing "ninja menuconfig"...
[0/1] Re-running CMake...
-- ccache will be used for faster recompilation
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file C:/Users/a/Downloads/ESP_projects/test1/sdkconfig
Compiler supported targets: xtensa-esp32-elf

-- App "test1" version: 1
-- Adding linker script C:/Users/a/Downloads/ESP_projects/test1/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script C:/Users/a/esp/esp-idf/components/esp_system/ld/esp32/sections.ld.in
-- Adding linker script C:/Users/a/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/a/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script C:/Users/a/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/a/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/Users/a/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/Users/a/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script C:/Users/a/esp/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
-- Components: app_trace app_update bootloader bootloader_support bt cmock console cxx driver efuse esp-tls esp_adc esp_app_format esp_coex esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_lcd esp_local_ctrl esp_mm esp_netif esp_netif_stack esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_system esp_timer esp_wifi espcoredump esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lwip main mbedtls mqtt newlib nvs_flash openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Users/a/esp/esp-idf/components/app_trace C:/Users/a/esp/esp-idf/components/app_update C:/Users/a/esp/esp-idf/components/bootloader C:/Users/a/esp/esp-idf/components/bootloader_support C:/Users/a/esp/esp-idf/components/bt C:/Users/a/esp/esp-idf/components/cmock C:/Users/a/esp/esp-idf/components/console C:/Users/a/esp/esp-idf/components/cxx C:/Users/a/esp/esp-idf/components/driver C:/Users/a/esp/esp-idf/components/efuse C:/Users/a/esp/esp-idf/components/esp-tls C:/Users/a/esp/esp-idf/components/esp_adc C:/Users/a/esp/esp-idf/components/esp_app_format C:/Users/a/esp/esp-idf/components/esp_coex C:/Users/a/esp/esp-idf/components/esp_common C:/Users/a/esp/esp-idf/components/esp_eth C:/Users/a/esp/esp-idf/components/esp_event C:/Users/a/esp/esp-idf/components/esp_gdbstub C:/Users/a/esp/esp-idf/components/esp_hid C:/Users/a/esp/esp-idf/components/esp_http_client C:/Users/a/esp/esp-idf/components/esp_http_server C:/Users/a/esp/esp-idf/components/esp_https_ota C:/Users/a/esp/esp-idf/components/esp_https_server C:/Users/a/esp/esp-idf/components/esp_hw_support C:/Users/a/esp/esp-idf/components/esp_lcd C:/Users/a/esp/esp-idf/components/esp_local_ctrl C:/Users/a/esp/esp-idf/components/esp_mm C:/Users/a/esp/esp-idf/components/esp_netif C:/Users/a/esp/esp-idf/components/esp_netif_stack
C:/Users/a/esp/esp-idf/components/esp_partition C:/Users/a/esp/esp-idf/components/esp_phy C:/Users/a/esp/esp-idf/components/esp_pm C:/Users/a/esp/esp-idf/components/esp_psram C:/Users/a/esp/esp-idf/components/esp_ringbuf C:/Users/a/esp/esp-idf/components/esp_rom C:/Users/a/esp/esp-idf/components/esp_system C:/Users/a/esp/esp-idf/components/esp_timer C:/Users/a/esp/esp-idf/components/esp_wifi C:/Users/a/esp/esp-idf/components/espcoredump C:/Users/a/esp/esp-idf/components/esptool_py C:/Users/a/esp/esp-idf/components/fatfs C:/Users/a/esp/esp-idf/components/freertos C:/Users/a/esp/esp-idf/components/hal C:/Users/a/esp/esp-idf/components/heap C:/Users/a/esp/esp-idf/components/http_parser C:/Users/a/esp/esp-idf/components/idf_test C:/Users/a/esp/esp-idf/components/ieee802154 C:/Users/a/esp/esp-idf/components/json C:/Users/a/esp/esp-idf/components/log C:/Users/a/esp/esp-idf/components/lwip C:/Users/a/Downloads/ESP_projects/test1/main C:/Users/a/esp/esp-idf/components/mbedtls C:/Users/a/esp/esp-idf/components/mqtt C:/Users/a/esp/esp-idf/components/newlib C:/Users/a/esp/esp-idf/components/nvs_flash C:/Users/a/esp/esp-idf/components/openthread C:/Users/a/esp/esp-idf/components/partition_table C:/Users/a/esp/esp-idf/components/perfmon C:/Users/a/esp/esp-idf/components/protobuf-c C:/Users/a/esp/esp-idf/components/protocomm C:/Users/a/esp/esp-idf/components/pthread C:/Users/a/esp/esp-idf/components/sdmmc C:/Users/a/esp/esp-idf/components/soc C:/Users/a/esp/esp-idf/components/spi_flash C:/Users/a/esp/esp-idf/components/spiffs C:/Users/a/esp/esp-idf/components/tcp_transport C:/Users/a/esp/esp-idf/components/ulp C:/Users/a/esp/esp-idf/components/unity C:/Users/a/esp/esp-idf/components/usb C:/Users/a/esp/esp-idf/components/vfs C:/Users/a/esp/esp-idf/components/wear_levelling C:/Users/a/esp/esp-idf/components/wifi_provisioning C:/Users/a/esp/esp-idf/components/wpa_supplicant C:/Users/a/esp/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/a/Downloads/ESP_projects/test1/build
[0/1] cmd.exe /C "cd /D C:\Users\a\Downloads\ESP_projects\test1\build && C:\Users\a\.espressif\python_env\id...-env IDF_TARGET=esp32 --env IDF_ENV_FPGA= --output config C:/Users/a/Downloads/ESP_projects/test1/sdkconfig"menuconfig failed to import the standard Python 'curses' library. Try
installing a package like windows-curses
(https://github.com/zephyrproject-rtos/windows-curses) by running this command
in cmd.exe:

pip install windows-curses

Starting with Kconfiglib 13.0.0, windows-curses is no longer automatically
installed when installing Kconfiglib via pip on Windows (because it breaks
installation on MSYS2).

Exception:
ModuleNotFoundError: No module named '_curses'
FAILED: CMakeFiles/menuconfig C:/Users/a/Downloads/ESP_projects/test1/build/CMakeFiles/menuconfig
cmd.exe /C "cd /D C:\Users\a\Downloads\ESP_projects\test1\build && C:\Users\a\.espressif\python_env\idf5.1_py3.8_env\Scripts\python.exe C:/Users/a/esp/esp-idf/tools/kconfig_new/prepare_kconfig_files.py --list-separator=semicolon --env-file C:/Users/a/Downloads/ESP_projects/test1/build/config.env && C:\Users\a\.espressif\python_env\idf5.1_py3.8_env\Scripts\python.exe -m kconfgen --list-separator=semicolon --kconfig C:/Users/a/esp/esp-idf/Kconfig --sdkconfig-rename C:/Users/a/esp/esp-idf/sdkconfig.rename --config C:/Users/a/Downloads/ESP_projects/test1/sdkconfig --env-file C:/Users/a/Downloads/ESP_projects/test1/build/config.env --env IDF_TARGET=esp32 --env IDF_ENV_FPGA= --dont-write-deprecated --output config C:/Users/a/Downloads/ESP_projects/test1/sdkconfig && C:\Users\a\.espressif\python_env\idf5.1_py3.8_env\Scripts\python.exe C:/Users/a/esp/esp-idf/tools/check_term.py && C:\Users\a\.espressif\tools\cmake\3.24.0\bin\cmake.exe -E env COMPONENT_KCONFIGS_SOURCE_FILE=C:/Users/a/Downloads/ESP_projects/test1/build/kconfigs.in COMPONENT_KCONFIGS_PROJBUILD_SOURCE_FILE=C:/Users/a/Downloads/ESP_projects/test1/build/kconfigs_projbuild.in KCONFIG_CONFIG=C:/Users/a/Downloads/ESP_projects/test1/sdkconfig IDF_TARGET=esp32 IDF_ENV_FPGA= C:/Users/a/.espressif/python_env/idf5.1_py3.8_env/Scripts/python.exe -m
menuconfig C:/Users/a/esp/esp-idf/Kconfig && C:\Users\a\.espressif\python_env\idf5.1_py3.8_env\Scripts\python.exe -m kconfgen --list-separator=semicolon --kconfig C:/Users/a/esp/esp-idf/Kconfig --sdkconfig-rename C:/Users/a/esp/esp-idf/sdkconfig.rename --config C:/Users/a/Downloads/ESP_projects/test1/sdkconfig --env-file C:/Users/a/Downloads/ESP_projects/test1/build/config.env --env IDF_TARGET=esp32 --env IDF_ENV_FPGA= --output config C:/Users/a/Downloads/ESP_projects/test1/sdkconfig"
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
I tried installing windows-curses but I still the same message.
Could you tell me what I should do?

thanks in advace

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

Re: problem whith running "idf.py.exe menuconfig"

Postby ESP_Roland » Mon May 29, 2023 11:04 am

Are you using the official Vscode plugin from https://github.com/espressif/vscode-esp-idf-extension? There is an "SDK Configuration editor" option which replaces "idf.py menuconfig". Probably that is why windows curses is not installed. Here is an installation guide to help you: https://github.com/espressif/vscode-esp ... install.md

Otherwise, I recommend to use https://dl.espressif.com/dl/esp-idf/ to set up a working Windows environment (Eclipse or Windows terminal options included).

hamidkavianathar
Posts: 2
Joined: Wed Jul 21, 2021 9:00 am

Re: problem whith running "idf.py.exe menuconfig"

Postby hamidkavianathar » Wed Jun 14, 2023 10:24 am

Thank you.

Who is online

Users browsing this forum: No registered users and 105 guests