Page 1 of 1

如何解决python报不支持asyncio错误

Posted: Wed Mar 08, 2023 3:37 am
by SY-TEC
E:\APP_software_Install\Espressif\frameworks\esp\esp-adf\esp-idf\examples\get-started\hello_world>E:\APP_software_Install\Espressif\frameworks\esp\esp-adf\esp-idf\export.bat
Checking Python compatibility
Setting IDF_PATH: E:\APP_software_Install\Espressif\frameworks\esp\esp-adf\esp-idf

Adding ESP-IDF tools to PATH...
C:\Users\Administrator\.espressif\tools\xtensa-esp-elf-gdb\12.1_20221002\xtensa-esp-elf-gdb\bin
C:\Users\Administrator\.espressif\tools\riscv32-esp-elf-gdb\12.1_20221002\riscv32-esp-elf-gdb\bin
C:\Users\Administrator\.espressif\tools\xtensa-esp32-elf\esp-12.2.0_20230208\xtensa-esp32-elf\bin
C:\Users\Administrator\.espressif\tools\xtensa-esp32s2-elf\esp-12.2.0_20230208\xtensa-esp32s2-elf\bin
C:\Users\Administrator\.espressif\tools\xtensa-esp32s3-elf\esp-12.2.0_20230208\xtensa-esp32s3-elf\bin
C:\Users\Administrator\.espressif\tools\riscv32-esp-elf\esp-12.2.0_20230208\riscv32-esp-elf\bin
C:\Users\Administrator\.espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin
C:\Users\Administrator\.espressif\tools\cmake\3.24.0\bin
C:\Users\Administrator\.espressif\tools\openocd-esp32\v0.11.0-esp32-20221026\openocd-esp32\bin
C:\Users\Administrator\.espressif\tools\ninja\1.10.2\
C:\Users\Administrator\.espressif\tools\idf-exe\1.0.3\
C:\Users\Administrator\.espressif\tools\ccache\4.6.2\ccache-4.6.2-windows-x86_64
C:\Users\Administrator\.espressif\tools\dfu-util\0.11\dfu-util-0.11-win64
C:\Users\Administrator\.espressif\python_env\idf5.1_py3.7_env\Scripts









这是使用命令行安装ADF内部自带的ESP-IDF,在编译工程时遇到不支持asyncio错误问题。
Checking if Python packages are up to date...
Constraint file: C:\Users\Administrator\.espressif\espidf.constraints.v5.1.txt
Requirement files:
- E:\APP_software_Install\Espressif\frameworks\esp\esp-adf\esp-idf\tools\requirements\requirements.core.txt
Python being checked: C:\Users\Administrator\.espressif\python_env\idf5.1_py3.7_env\Scripts\python.exe
Python requirements are satisfied.

Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

idf.py build


E:\APP_software_Install\Espressif\frameworks\esp\esp-adf\esp-idf\examples\get-started\hello_world>idf.py build
Executing action: all (aliases: build)
Running cmake in directory E:\APP_software_Install\Espressif\frameworks\esp\esp-adf\esp-idf\examples\get-started\hello_world\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=C:\Users\Administrator\.espressif\python_env\idf5.1_py3.7_env\Scripts\python.exe -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 E:\APP_software_Install\Espressif\frameworks\esp\esp-adf\esp-idf\examples\get-started\hello_world"...
ERROR: C:\Users\Administrator\.espressif\python_env\idf5.1_py3.7_env\Scripts\python.exe doesn't support asyncio. The issue can be worked around by re-running idf.py with the "--no-hints" argument.

E:\APP_software_Install\Espressif\frameworks\esp\esp-adf\esp-idf\examples\get-started\hello_world>

Re: 如何解决python报不支持asyncio错误

Posted: Tue Mar 21, 2023 9:35 am
by ESP_William
可以在 ADF/IDF 目录下 git branch/ git log 看下您的 IDF 版本信息么?