KW47 VSCode Integration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KW47 VSCode Integration

Jump to solution
223 Views
ciband
Contributor II

I am trying to get the KW47 bluetooth digital key anchor freeRTOS SDK sample imported and building.  When I attempt to import the example application I get this error:

Error: Failed to create freestanding example: Traceback (most recent call last):
  File "/home/johnsonchris/.local/lib/python3.10/site-packages/west/commands.py", line 565, in __call__
    mod = _commands_module_from_file(self.py_file)
  File "/home/johnsonchris/.local/lib/python3.10/site-packages/west/commands.py", line 718, in _commands_module_from_file
    spec.loader.exec_module(mod)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/grmn/prj/aoem/mcuxpresso-sdk/mcuxsdk/mcuxsdk/scripts/west_commands/export_app.py", line 12, in <module>
    from export_app.cmake_parser import cmparser
  File "/grmn/prj/aoem/mcuxpresso-sdk/mcuxsdk/mcuxsdk/scripts/west_commands/export_app/cmake_parser.py", line 11, in <module>
    from jinja2 import Template
ModuleNotFoundError: No module named 'jinja2'

 

The above exception was the direct cause of the following exception:

 

Traceback (most recent call last):
  File "/home/johnsonchris/.local/lib/python3.10/site-packages/west/app/main.py", line 584, in run_command
    self.run_extension(args.command, argv)
  File "/home/johnsonchris/.local/lib/python3.10/site-packages/west/app/main.py", line 708, in run_extension
    self.cmd = self.extensions[name].factory()
  File "/home/johnsonchris/.local/lib/python3.10/site-packages/west/commands.py", line 567, in __call__
    raise ExtensionCommandError(
west.commands.ExtensionCommandError

 

During handling of the above exception, another exception occurred:

 

Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/johnsonchris/.local/lib/python3.10/site-packages/west/__main__.py", line 3, in <module>
    main()
  File "/home/johnsonchris/.local/lib/python3.10/site-packages/west/app/main.py", line 1199, in main
    app.run(argv or sys.argv[1:])
  File "/home/johnsonchris/.local/lib/python3.10/site-packages/west/app/main.py", line 278, in run
    self.run_command(argv, early_args)
  File "/home/johnsonchris/.local/lib/python3.10/site-packages/west/app/main.py", line 628, in run_command
    self.handle_extension_command_error(ece)
  File "/home/johnsonchris/.local/lib/python3.10/site-packages/west/app/main.py", line 454, in handle_extension_command_error
    self.cmd.err(msg, fatal=True)
AttributeError: 'NoneType' object has no attribute 'err'


To my knowledge all of the dependencies are satisfied.  I attempted to install the SDK dependency manager application on Linux but this installation also fails.

0 Kudos
Reply
1 Solution
134 Views
ciband
Contributor II

Missing jinja2 package was the solution.  pip3 install jinja2

View solution in original post

0 Kudos
Reply
1 Reply
135 Views
ciband
Contributor II

Missing jinja2 package was the solution.  pip3 install jinja2

0 Kudos
Reply