- idf.py -p /dev/ttyACM0 flash
- Executing action: flash
- Traceback (most recent call last):
- File "/home/user/esp/esp-idf/tools/idf.py", line 775, in <module>
- main()
- File "/home/user/esp/esp-idf/tools/idf.py", line 710, in main
- cli(sys.argv[1:], prog_name=PROG, complete_var=SHELL_COMPLETE_VAR)
- File "/home/user/.espressif/python_env/idf5.2_py3.11_env/lib/python3.11/site-packages/click/core.py", line 1130, in __call__
- return self.main(*args, **kwargs)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/home/user/.espressif/python_env/idf5.2_py3.11_env/lib/python3.11/site-packages/click/core.py", line 1055, in main
- rv = self.invoke(ctx)
- ^^^^^^^^^^^^^^^^
- File "/home/user/.espressif/python_env/idf5.2_py3.11_env/lib/python3.11/site-packages/click/core.py", line 1689, in invoke
- return _process_result(rv)
- ^^^^^^^^^^^^^^^^^^^
- File "/home/user/.espressif/python_env/idf5.2_py3.11_env/lib/python3.11/site-packages/click/core.py", line 1626, in _process_result
- value = ctx.invoke(self._result_callback, value, **ctx.params)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/home/user/.espressif/python_env/idf5.2_py3.11_env/lib/python3.11/site-packages/click/core.py", line 760, in invoke
- return __callback(*args, **kwargs)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/home/user/esp/esp-idf/tools/idf.py", line 613, in execute_tasks
- task(ctx, global_args, task.action_args)
- File "/home/user/esp/esp-idf/tools/idf.py", line 185, in __call__
- self.callback(self.name, context, global_args, **action_args)
- File "/home/user/esp/esp-idf/tools/idf_py_actions/serial_ext.py", line 175, in flash
- project_desc = _get_project_desc(ctx, args)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/home/user/esp/esp-idf/tools/idf_py_actions/serial_ext.py", line 47, in _get_project_desc
- with open(desc_path, 'r') as f:
- ^^^^^^^^^^^^^^^^^^^^
- FileNotFoundError: [Errno 2] No such file or directory: '/home/user/my-project/build/project_description.json'
The sample code from https://docs.espressif.com/projects/esp ... requisites works just fine. Any ideas on what I could be doing wrong?
Kind regards