Запуск west flash выдает ошибку:
$ west flash
-- west flash: rebuilding
ninja: no work to do.
-- west flash: using runner nrfjprog
FATAL ERROR: one or more Python dependencies were missing; see the getting
started guide for details on how to fix
Запустите west flash в режиме подробного вывода (с опцией -v), что поможет разобраться в причине проблемы.
$ west -v flash
ZEPHYR_BASE=~/myproject/zephyr (origin: configfile)
-- west flash: rebuilding
cmake version 3.25.1 is OK; minimum version is 3.13.1
Running CMake: /usr/bin/cmake --build /home/myproject/build
ninja: no work to do.
-- west flash: using runner nrfjprog
FATAL ERROR: verbose mode enabled, dumping stack:
Traceback (most recent call last):
File "~/.local/bin/west", line 8, in
sys.exit(main())
File "~/.local/lib/python3.8/site-packages/west/app/main.py", line 793, in main
app.run(argv or sys.argv[1:])
File "~/.local/lib/python3.8/site-packages/west/app/main.py", line 109, in run
self.run_command(argv)
File "~/.local/lib/python3.8/site-packages/west/app/main.py", line 345, in run_command
self.run_extension(args.command, argv)
File "~/.local/lib/python3.8/site-packages/west/app/main.py", line 417, in run_extension
command.run(args, unknown, self.topdir, manifest=self.manifest,
File "~/.local/lib/python3.8/site-packages/west/commands.py", line 135, in run
self.do_run(args, unknown)
File "~/myproject/zephyr/scripts/west_commands/flash.py", line 32, in do_run
do_run_common(self, my_args, runner_args, domains=domains)
File "~/myproject/zephyr/scripts/west_commands/run_common.py", line 178, in do_run_common
do_run_common_image(command, user_args, user_runner_args, d.build_dir)
File "~/myproject/zephyr/scripts/west_commands/run_common.py", line 254, in do_run_common_image
runner.run(command_name)
File "~/myproject/zephyr/scripts/west_commands/runners/core.py", line 551, in run
self.do_run(command, **kwargs)
File "~/myproject/zephyr/scripts/west_commands/runners/nrfjprog.py", line 379, in do_run
raise RuntimeError('one or more Python dependencies were missing; '
RuntimeError: one or more Python dependencies were missing; see the getting started guide
for details on how to fix
Анализ кода nrfjprog.py показал, что не установлен Python-модуль intelhex. Как исправить: