Mars.CN wrote: ↑Tue Jul 26, 2022 1:09 am
本来是想用IDE来着,但IDE只支持到了4.4,我想用最新的IDF。
而且IDE装完之后也用不了,Python从3.6~3.10都试了,不好使
使用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