5.0新版本ESP-IDF UnicodeDecodeError錯誤

neil_00303
Posts: 1
Joined: Fri Feb 03, 2023 7:15 am

5.0新版本ESP-IDF UnicodeDecodeError錯誤

Postby neil_00303 » 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版本下沒有這個問題
有人知道解答嗎?

wayneji23
Posts: 1
Joined: Mon Mar 25, 2024 6:55 am

Re: 5.0新版本ESP-IDF UnicodeDecodeError錯誤

Postby wayneji23 » Mon Mar 25, 2024 6:58 am

不用有中文目錄,也就是說你的hello world 往上不能有,ex:C:\Users\jiwei\OneDrive\桌面\ESP-IDF 5.2 PowerShell.lnk" ,桌面就不行

Who is online

Users browsing this forum: No registered users and 46 guests