esp-at编译问题
Posted: Sat Aug 03, 2024 9:35 am
本地环境IDF v5.2.0一直在使用正常(VSCODE/WIN64)今天刚从https://gitee.com/EspressifSystems/esp-at下载的包,python build.py menuconfig和python build.py build一直报错,如下(kconfiglib从14.1.0降级到13.7.1、12.1.0均没用):
File "D:\esp-at\esp-idf\tools\kconfig_new\confgen.py", line 163, in _opt_defined
if opt.orig_type in (kconfiglib.BOOL, kconfiglib.TRISTATE) and opt.str_value != 'n':
^^^^^^^^^^^^^^^
AttributeError: module 'kconfiglib' has no attribute 'BOOL'
CMake Error at esp-idf/tools/cmake/kconfig.cmake:176 (message):
Failed to run confgen.py
(D:/Espressif/python_env/idf5.3_py3.11_env/Scripts/python.exe;D:/e-bike/esp-at/esp-idf/tools/kconfig_new/confgen.py;--list-separator=semicolon;--kconfig;D:/e-bike/esp-at/esp-idf/Kconfig;--sdkconfig-rename;D:/e-bike/esp-at/esp-idf/sdkconfig.rename;--config;D:/e-bike/esp-at/sdkconfig;--defaults;D:/e-bike/esp-at/module_config/module_esp32c2-2mb/sdkconfig_silence.defaults;--env-file;D:/e-bike/esp-at/build/config.env).
Error 1
Call Stack (most recent call first):
esp-idf/tools/cmake/build.cmake:590 (__kconfig_generate_config)
esp-idf/tools/cmake/project.cmake:530 (idf_build_process)
CMakeLists.txt:123 (project)
-- Configuring incomplete, errors occurred!
See also "D:/e-bike/esp-at/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
A fatal error occurred: idf.py build failed
File "D:\esp-at\esp-idf\tools\kconfig_new\confgen.py", line 163, in _opt_defined
if opt.orig_type in (kconfiglib.BOOL, kconfiglib.TRISTATE) and opt.str_value != 'n':
^^^^^^^^^^^^^^^
AttributeError: module 'kconfiglib' has no attribute 'BOOL'
CMake Error at esp-idf/tools/cmake/kconfig.cmake:176 (message):
Failed to run confgen.py
(D:/Espressif/python_env/idf5.3_py3.11_env/Scripts/python.exe;D:/e-bike/esp-at/esp-idf/tools/kconfig_new/confgen.py;--list-separator=semicolon;--kconfig;D:/e-bike/esp-at/esp-idf/Kconfig;--sdkconfig-rename;D:/e-bike/esp-at/esp-idf/sdkconfig.rename;--config;D:/e-bike/esp-at/sdkconfig;--defaults;D:/e-bike/esp-at/module_config/module_esp32c2-2mb/sdkconfig_silence.defaults;--env-file;D:/e-bike/esp-at/build/config.env).
Error 1
Call Stack (most recent call first):
esp-idf/tools/cmake/build.cmake:590 (__kconfig_generate_config)
esp-idf/tools/cmake/project.cmake:530 (idf_build_process)
CMakeLists.txt:123 (project)
-- Configuring incomplete, errors occurred!
See also "D:/e-bike/esp-at/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
A fatal error occurred: idf.py build failed