问题原因:
路径中不能包括中文。
问题情况:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| Traceback (most recent call last): File "C:/Users/***/esp/v4.4.7/esp-idf/tools/kconfig_new/prepare_kconfig_files.py", line 94, in <module> env.update(json.load(args.env_file)) File "json\__init__.py", line 293, in load UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 5872: illegal multibyte sequence Traceback (most recent call last): File "C:/Users/***/esp/v4.4.7/esp-idf/tools/kconfig_new/confgen.py", line 644, in <module> main() File "C:/Users/***/esp/v4.4.7/esp-idf/tools/kconfig_new/confgen.py", line 261, in main env = json.load(args.env_file) File "json\__init__.py", line 293, in load UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 5872: illegal multibyte sequence CMake Error at C:/Users/***/esp/v4.4.7/esp-idf/tools/cmake/kconfig.cmake:266 (message): Failed to run confgen.py (C:/Users/***/.espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe;C:/Users/***/esp/v4.4.7/esp-idf/tools/kconfig_new/confgen.py;--kconfig;C:/Users/***/esp/v4.4.7/esp-idf/Kconfig;--sdkconfig-rename;C:/Users/***/esp/v4.4.7/esp-idf/sdkconfig.rename;--config;R:/大学生活和学习/工作区/超声眼动/VE-KWS/firmware/sdkconfig;--env-file;R:/大学生活和学习/工作区/超声眼动/VE-KWS/firmware/build/config.env). Error 1 Call Stack (most recent call first): C:/Users/***/esp/v4.4.7/esp-idf/tools/cmake/build.cmake:534 (__kconfig_generate_config) C:/Users/***/esp/v4.4.7/esp-idf/tools/cmake/project.cmake:476 (idf_build_process) CMakeLists.txt:6 (project)
|
记:
之前也曾遇到过这个问题,没想到还会再次被这个问题耽误这么长时间。特此记录,以免再次遇到这个问题时,浪费时间。