5.0新版本ESP-IDF UnicodeDecodeError錯誤
Posted: Fri Feb 03, 2023 7:22 am
-- Project sdkconfig file C:/Users/neill/OneDrive/桌面/test2/blink/sdkconfig
Traceback (most recent call last):
File "C:/Espressif/frameworks/esp-idf-v5.0/esp-idf/tools/kconfig_new/prepare_kconfig_files.py", line 102, in <module>
main()
File "C:/Espressif/frameworks/esp-idf-v5.0/esp-idf/tools/kconfig_new/prepare_kconfig_files.py", line 94, in main
env.update(json.load(args.env_file))
File "json\__init__.py", line 293, in load
UnicodeDecodeError: 'cp950' codec can't decode byte 0x8c in position 4121: illegal multibyte sequence
Traceback (most recent call last):
File "C:/Espressif/frameworks/esp-idf-v5.0/esp-idf/tools/kconfig_new/confgen.py", line 607, in <module>
main()
File "C:/Espressif/frameworks/esp-idf-v5.0/esp-idf/tools/kconfig_new/confgen.py", line 255, in main
env = json.load(args.env_file)
File "json\__init__.py", line 293, in load
UnicodeDecodeError: 'cp950' codec can't decode byte 0x8c in position 4121: illegal multibyte sequence
CMake Error at C:/Espressif/frameworks/esp-idf-v5.0/esp-idf/tools/cmake/kconfig.cmake:176 (message):
Failed to run confgen.py
(c:/Espressif/python_env/idf5.0_py3.8_env/Scripts/python.exe;C:/Espressif/frameworks/esp-idf-v5.0/esp-idf/tools/kconfig_new/confgen.py;--list-separator=semicolon;--kconfig;C:/Espressif/frameworks/esp-idf-v5.0/esp-idf/Kconfig;--sdkconfig-rename;C:/Espressif/frameworks/esp-idf-v5.0/esp-idf/sdkconfig.rename;--config;C:/Users/neill/OneDrive/桌面/test2/blink/sdkconfig;--env-file;C:/Users/neill/OneDrive/桌面/test2/blink/build/config.env).
Error 1
Call Stack (most recent call first):
C:/Espressif/frameworks/esp-idf-v5.0/esp-idf/tools/cmake/build.cmake:590 (__kconfig_generate_config)
C:/Espressif/frameworks/esp-idf-v5.0/esp-idf/tools/cmake/project.cmake:440 (idf_build_process)
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/neill/OneDrive/桌面/test2/blink/build/CMakeFiles/CMakeOutput.log".
5.0新版本ESP_IDF 全部都顯示正確安裝後,編譯例程後,會顯示 UnicodeDecodeError: 'cp950' codec can't decode byte 0x8c in position 4121: illegal multibyte sequence
在其他電腦的4.4.3版本下沒有這個問題
有人知道解答嗎?
Traceback (most recent call last):
File "C:/Espressif/frameworks/esp-idf-v5.0/esp-idf/tools/kconfig_new/prepare_kconfig_files.py", line 102, in <module>
main()
File "C:/Espressif/frameworks/esp-idf-v5.0/esp-idf/tools/kconfig_new/prepare_kconfig_files.py", line 94, in main
env.update(json.load(args.env_file))
File "json\__init__.py", line 293, in load
UnicodeDecodeError: 'cp950' codec can't decode byte 0x8c in position 4121: illegal multibyte sequence
Traceback (most recent call last):
File "C:/Espressif/frameworks/esp-idf-v5.0/esp-idf/tools/kconfig_new/confgen.py", line 607, in <module>
main()
File "C:/Espressif/frameworks/esp-idf-v5.0/esp-idf/tools/kconfig_new/confgen.py", line 255, in main
env = json.load(args.env_file)
File "json\__init__.py", line 293, in load
UnicodeDecodeError: 'cp950' codec can't decode byte 0x8c in position 4121: illegal multibyte sequence
CMake Error at C:/Espressif/frameworks/esp-idf-v5.0/esp-idf/tools/cmake/kconfig.cmake:176 (message):
Failed to run confgen.py
(c:/Espressif/python_env/idf5.0_py3.8_env/Scripts/python.exe;C:/Espressif/frameworks/esp-idf-v5.0/esp-idf/tools/kconfig_new/confgen.py;--list-separator=semicolon;--kconfig;C:/Espressif/frameworks/esp-idf-v5.0/esp-idf/Kconfig;--sdkconfig-rename;C:/Espressif/frameworks/esp-idf-v5.0/esp-idf/sdkconfig.rename;--config;C:/Users/neill/OneDrive/桌面/test2/blink/sdkconfig;--env-file;C:/Users/neill/OneDrive/桌面/test2/blink/build/config.env).
Error 1
Call Stack (most recent call first):
C:/Espressif/frameworks/esp-idf-v5.0/esp-idf/tools/cmake/build.cmake:590 (__kconfig_generate_config)
C:/Espressif/frameworks/esp-idf-v5.0/esp-idf/tools/cmake/project.cmake:440 (idf_build_process)
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/neill/OneDrive/桌面/test2/blink/build/CMakeFiles/CMakeOutput.log".
5.0新版本ESP_IDF 全部都顯示正確安裝後,編譯例程後,會顯示 UnicodeDecodeError: 'cp950' codec can't decode byte 0x8c in position 4121: illegal multibyte sequence
在其他電腦的4.4.3版本下沒有這個問題
有人知道解答嗎?