ESP32编译问题

KK_Suki
Posts: 1
Joined: Sat Jul 13, 2024 6:22 am

ESP32编译问题

Postby KK_Suki » Sat Jul 13, 2024 6:29 am

编译时出现错误
File "c:\ESP_IDF\v5.2.2\Tools\python_env\idf5.2_py3.11_env\Lib\site-packages\kconfgen\core.py", line 316, in main
env = json.load(args.env_file)
^^^^^^^^^^^^^^^^^^^^^^^^
File "json\__init__.py", line 293, in load
UnicodeDecodeError: 'gbk' codec can't decode byte 0xb9 in position 3287: illegal multibyte sequence
CMake Error at C:/ESP_IDF/v5.2.2/esp-idf/tools/cmake/kconfig.cmake:209 (message):
Failed to run kconfgen
(c:/ESP_IDF/v5.2.2/Tools/python_env/idf5.2_py3.11_env/Scripts/python.exe;-m;kconfgen;--list-separator=semicolon;--kconfig;C:/ESP_IDF/v5.2.2/esp-idf/Kconfig;--sdkconfig-rename;C:/ESP_IDF/v5.2.2/esp-idf/sdkconfig.rename;--config;C:/Users/Administrator/Desktop/新建文件夹/blink/sdkconfig;--env-file;C:/Users/Administrator/Desktop/新建文件夹/blink/build/config.env).
Error 1
刚开始认为是Python解码方式可能为GBK导致的
但是$env:PYTHONIOENCODING="utf-8"编码设置为UTF-8仍然无法解决

Who is online

Users browsing this forum: No registered users and 75 guests