esp32_nat_router icon indicating copy to clipboard operation
esp32_nat_router copied to clipboard

No module named kconfgen

Open as-iotex opened this issue 1 year ago • 0 comments

I have modified my platformio.ini to match https://github.com/espressif/esp-idf/issues/10823

I am now seeing the following error. Hope you can help:

Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (5.1.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: 
 - framework-espidf @ 3.50102.0 (5.1.2) 
 - tool-cmake @ 3.16.4 
 - tool-esptoolpy @ 1.30300.0 (3.3.0) 
 - tool-ninja @ 1.7.1 
 - toolchain-esp32ulp @ 1.22851.191205 (2.28.51) 
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
Reading CMake configuration...
-- Found Git: /usr/bin/git (found version "2.34.1") 
-- git rev-parse returned 'fatal: not a git repository (or any of the parent directories): .git'
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /../.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /../.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /../.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /../.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-g++
-- Check for working CXX compiler: /../.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file /../projects/iotex/esp32_nat_router/sdkconfig.esp32dev
-- Configuring incomplete, errors occurred!
See also "/../projects/iotex/esp32_nat_router/.pio/build/esp32dev/CMakeFiles/CMakeOutput.log".

fatal: not a git repository (or any of the parent directories): .git
/../.platformio/penv/bin/python: No module named kconfgen
CMake Error at /../.platformio/packages/framework-espidf/tools/cmake/kconfig.cmake:176 (message):
  Failed to run kconfgen
  (/../.platformio/penv/bin/python;-m;kconfgen;--list-separator=semicolon;--kconfig;/../.platformio/packages/framework-espidf/Kconfig;--sdkconfig-rename;/../.platformio/packages/framework-espidf/sdkconfig.rename;--config;/../projects/iotex/esp32_nat_router/sdkconfig.esp32dev;--defaults;/../projects/iotex/esp32_nat_router/sdkconfig.defaults;--env-file;/../projects/iotex/esp32_nat_router/.pio/build/esp32dev/config.env).
  Error 1
Call Stack (most recent call first):
  /../.platformio/packages/framework-espidf/tools/cmake/build.cmake:611 (__kconfig_generate_config)
  /../.platformio/packages/framework-espidf/tools/cmake/project.cmake:547 (idf_build_process)
  CMakeLists.txt:6 (project)

as-iotex avatar Feb 19 '24 17:02 as-iotex