ESP32\hello_world>idf.py build
Executing action: all (aliases: build)
Running cmake in directory d:\360yunpan\codespaces\esp32\hello_world\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 d:\360yunpan\codespaces\esp32\hello_world"...
ERROR: D:\ESP-IDF\python_env\idf5.0_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.
这是什么意思?
在linux下没有遇到过,网上搜索无解
Windows10安装IDF5.0后无法正常使用,求助
-
- Posts: 786
- Joined: Wed Nov 14, 2018 8:45 am
Re: Windows10安装IDF5.0后无法正常使用,求助
你的环境是如何搭建的?是否是使用 https://dl.espressif.com/dl/esp-idf/ 这里的工具?用的哪个版本?用最新这个工具 python 应该是 3.8.7,但看你的 python_env 里是 python 3.7,不知是哪个环节不一致。
Re: Windows10安装IDF5.0后无法正常使用,求助
本来是想用IDE来着,但IDE只支持到了4.4,我想用最新的IDF。
而且IDE装完之后也用不了,Python从3.6~3.10都试了,不好使
而且IDE装完之后也用不了,Python从3.6~3.10都试了,不好使
Re: Windows10安装IDF5.0后无法正常使用,求助
使用3.8重新安装后,编译也是报错
Executing "ninja all"...
Traceback (most recent call last):
File "D:\esp-idf\tools\idf.py", line 800, in <module>
main()
File "D:\esp-idf\tools\idf.py", line 735, in main
cli(sys.argv[1:], prog_name=PROG, complete_var=SHELL_COMPLETE_VAR)
File "C:\Users\Mars.CN\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\click\core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "C:\Users\Mars.CN\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "C:\Users\Mars.CN\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\click\core.py", line 1691, in invoke
return _process_result(rv)
File "C:\Users\Mars.CN\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\click\core.py", line 1628, in _process_result
value = ctx.invoke(self._result_callback, value, **ctx.params)
File "C:\Users\Mars.CN\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "D:\esp-idf\tools\idf.py", line 629, in execute_tasks
task(ctx, global_args, task.action_args)
File "D:\esp-idf\tools\idf.py", line 216, in __call__
self.callback(self.name, context, global_args, **action_args)
File "d:\esp-idf\tools\idf_py_actions\core_ext.py", line 35, in build_target
run_target(target_name, args, force_progression=GENERATORS[args.generator].get('force_progression', False), hints=hints)
File "D:\esp-idf\tools\idf_py_actions\tools.py", line 248, in run_target
RunTool(generator_cmd[0], generator_cmd + [target_name], args.build_dir, env, custom_error_handler, hints=hints,
File "D:\esp-idf\tools\idf_py_actions\tools.py", line 148, in __call__
process, stderr_output_file, stdout_output_file = asyncio.run(self.run_command(self.args, env_copy))
File "d:\Program Files\Python38\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "d:\Program Files\Python38\lib\asyncio\base_events.py", line 616, in run_until_complete
return future.result()
File "D:\esp-idf\tools\idf_py_actions\tools.py", line 185, in run_command
await asyncio.gather(
File "D:\esp-idf\tools\idf_py_actions\tools.py", line 219, in read_and_write_stream
output_file.write(output)
UnicodeEncodeError: 'gbk' codec can't encode character '\u03f5' in position 37: illegal multibyte sequence
Exception ignored in: <function BaseSubprocessTransport.__del__ at 0x000002484C594A60>
Traceback (most recent call last):
File "d:\Program Files\Python38\lib\asyncio\base_subprocess.py", line 126, in __del__
File "d:\Program Files\Python38\lib\asyncio\base_subprocess.py", line 104, in close
File "d:\Program Files\Python38\lib\asyncio\proactor_events.py", line 108, in close
File "d:\Program Files\Python38\lib\asyncio\base_events.py", line 719, in call_soon
File "d:\Program Files\Python38\lib\asyncio\base_events.py", line 508, in _check_closed
RuntimeError: Event loop is closed
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x000002484C5C0160>
Traceback (most recent call last):
File "d:\Program Files\Python38\lib\asyncio\proactor_events.py", line 116, in __del__
File "d:\Program Files\Python38\lib\asyncio\proactor_events.py", line 108, in close
File "d:\Program Files\Python38\lib\asyncio\base_events.py", line 719, in call_soon
File "d:\Program Files\Python38\lib\asyncio\base_events.py", line 508, in _check_closed
RuntimeError: Event loop is closed
-
- Posts: 786
- Joined: Wed Nov 14, 2018 8:45 am
Re: Windows10安装IDF5.0后无法正常使用,求助
Repeat:你的环境是如何搭建的?
你用 https://dl.espressif.com/dl/esp-idf/ 的工具搭下环境试试。
VS Code 插件也可以支持 5.0,你可以把 idf clone 下来,选择用本地的 idf。
你用 https://dl.espressif.com/dl/esp-idf/ 的工具搭下环境试试。
VS Code 插件也可以支持 5.0,你可以把 idf clone 下来,选择用本地的 idf。
-
- Posts: 786
- Joined: Wed Nov 14, 2018 8:45 am
Re: Windows10安装IDF5.0后无法正常使用,求助
d:\Program Files\Python38
你这 python 路径不太对,python env 装好后,会用这个 virtual env,而不用系统的 python,不知你是怎么个安装流程。
你看下 windows 的 PATH。
也可以不用安装 python。
你这 python 路径不太对,python env 装好后,会用这个 virtual env,而不用系统的 python,不知你是怎么个安装流程。
你看下 windows 的 PATH。
也可以不用安装 python。
Who is online
Users browsing this forum: No registered users and 70 guests