unable to build #west


Stefan Hristozov
 

When I try to build my project I get the following error:

$ west build -b native_posix
Traceback (most recent call last):
  File "/home/stefan/.local/bin/west", line 11, in <module>
    sys.exit(main())
  File "/home/stefan/.local/lib/python3.5/site-packages/west/main.py", line 583, in main
    args.handler(args, unknown)
  File "/home/stefan/.local/lib/python3.5/site-packages/west/main.py", line 324, in ext_command_handler
    command = spec.factory()
  File "/home/stefan/.local/lib/python3.5/site-packages/west/commands/__init__.py", line 365, in __call__
    mod = _commands_module_from_file(self.py_file)
  File "/home/stefan/.local/lib/python3.5/site-packages/west/commands/__init__.py", line 333, in _commands_module_from_file
    mod = _import_mod_from(mod_name, file)
  File "/home/stefan/.local/lib/python3.5/site-packages/west/commands/__init__.py", line 330, in _import_mod_from
    spec.loader.exec_module(mod)
  File "<frozen importlib._bootstrap_external>", line 673, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/home/stefan/workspaces/zephyrproject/zephyrproject/zephyr/scripts/west_commands/build.py", line 16, in <module>
    from zephyr_ext_common import Forceable
  File "/home/stefan/workspaces/zephyrproject/zephyrproject/zephyr/scripts/west_commands/zephyr_ext_common.py", line 17, in <module>
    from runners.core import RunnerConfig
  File "/home/stefan/workspaces/zephyrproject/zephyrproject/zephyr/scripts/west_commands/runners/__init__.py", line 24, in <module>
    from runners import nrfjprog
  File "/home/stefan/workspaces/zephyrproject/zephyrproject/zephyr/scripts/west_commands/runners/nrfjprog.py", line 86
    f'refusing to guess which of {len(snrs)} '


It appears to be something with nrfjprog.py. Any ideas what can be wrong?


Bolivar, Marti
 

You appear to be using Python 3.5. Zephyr requires Python 3.6.

I am surprised the build got this far along. You should have seen an
error about this earlier.

"Stefan Hristozov via Lists.Zephyrproject.Org"
<stefan.hristozov=aisec.fraunhofer.de@lists.zephyrproject.org> writes:

When I try to build my project I get the following error:

$ west build -b native_posix
Traceback (most recent call last):
File "/home/stefan/.local/bin/west", line 11, in <module>
sys.exit(main())
File "/home/stefan/.local/lib/python3.5/site-packages/west/main.py", line 583, in main
args.handler(args, unknown)
File "/home/stefan/.local/lib/python3.5/site-packages/west/main.py", line 324, in ext_command_handler
command = spec.factory()
File "/home/stefan/.local/lib/python3.5/site-packages/west/commands/__init__.py", line 365, in __call__
mod = _commands_module_from_file(self.py_file)
File "/home/stefan/.local/lib/python3.5/site-packages/west/commands/__init__.py", line 333, in _commands_module_from_file
mod = _import_mod_from(mod_name, file)
File "/home/stefan/.local/lib/python3.5/site-packages/west/commands/__init__.py", line 330, in _import_mod_from
spec.loader.exec_module(mod)
File "<frozen importlib._bootstrap_external>", line 673, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/home/stefan/workspaces/zephyrproject/zephyrproject/zephyr/scripts/west_commands/build.py", line 16, in <module>
from zephyr_ext_common import Forceable
File "/home/stefan/workspaces/zephyrproject/zephyrproject/zephyr/scripts/west_commands/zephyr_ext_common.py", line 17, in <module>
from runners.core import RunnerConfig
File "/home/stefan/workspaces/zephyrproject/zephyrproject/zephyr/scripts/west_commands/runners/__init__.py", line 24, in <module>
from runners import nrfjprog
File "/home/stefan/workspaces/zephyrproject/zephyrproject/zephyr/scripts/west_commands/runners/nrfjprog.py", line 86
f'refusing to guess which of {len(snrs)} '

It appears to be something with nrfjprog.py. Any ideas what can be wrong?