From 341390f928a79db8200d459cb96ad36c814e9a92 Mon Sep 17 00:00:00 2001 From: Peter Dragun Date: Fri, 30 Jun 2023 14:12:55 +0200 Subject: [PATCH] fix(tools/hints): add guide to fix error with unsupported asyncio Closes https://github.com/espressif/esp-idf/issues/11732 --- tools/idf_py_actions/tools.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/idf_py_actions/tools.py b/tools/idf_py_actions/tools.py index 14527ba642..183cf0c39b 100644 --- a/tools/idf_py_actions/tools.py +++ b/tools/idf_py_actions/tools.py @@ -270,7 +270,11 @@ class RunTool: p = await asyncio.create_subprocess_exec(*cmd, env=env_copy, limit=1024 * 256, cwd=self.cwd, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE) except NotImplementedError: - sys.exit(f'ERROR: {sys.executable} doesn\'t support asyncio. The issue can be worked around by re-running idf.py with the "--no-hints" argument.') + message = f'ERROR: {sys.executable} doesn\'t support asyncio. The issue can be worked around by re-running idf.py with the "--no-hints" argument.' + if sys.platform == 'win32': + message += ' To fix the issue use the Windows Installer for setting up your python environment, ' \ + 'available from: https://dl.espressif.com/dl/esp-idf/' + sys.exit(message) stderr_output_file = os.path.join(self.build_dir, log_dir_name, f'idf_py_stderr_output_{p.pid}') stdout_output_file = os.path.join(self.build_dir, log_dir_name, f'idf_py_stdout_output_{p.pid}')