KW47 VSCode 集成 我正在尝试导入并构建 KW47 蓝牙数字键盘锚点 freeRTOS SDK 样本。 当我尝试导入示例应用程序时,得到了这样的错误信息: 错误:创建独立示例失败:回溯(最近一次调用): File"/home/johnsonchris/.local/lib/python3.10/site-packages/west/commands.py" 、第 565 行,在__call__ mod = _commands_module_from_file(self.py_file) 文件"/home/johnsonchris/.local/lib/python3.10/site-packages/west/commands.py" 、第 718 行,在 _commands_module_from_file spec.loader.exec_module(mod) 文件" " 、第 883 行,在 exec_module 文件" " 、第 241 行,在 _call_with_frames_removed 文件"/grmn/prj/aoem/mcuxpresso-sdk/mcuxsdk/mcuxsdk/scripts/west_commands/export_app.py" 、第 12 行,在 中,来自 export_app.cmake_parserimport cmparser 文件"/grmn/prj/aoem/mcuxpresso-sdk/mcuxsdk/mcuxsdk/scripts/west_commands/export_app/cmake_parser.py" 、第 11 行,在 from jinja2 import Template ModuleNotFoundError:没有名为 "jinja2 "的模块 上述例外情况是导致以下例外情况的直接原因: 回溯(最近一次调用): File"/home/johnsonchris/.local/lib/python3.10/site-packages/west/app/main.py" 、第 584 行,在 run_command 中 self.run_extension(args.command, argv) 文件"/home/johnsonchris/.local/lib/python3.10/site-packages/west/app/main.py" 、第 708 行,在 run_extension self.cmd = self.extensions[name].factory() 文件"/home/johnsonchris/.local/lib/python3.10/site-packages/west/commands.py" 、第 567 行,在__call__ raise ExtensionCommandError( west.commands.ExtensionCommandError 在处理上述异常的过程中,又出现了另一个异常: 回溯(最近一次调用): 文件"/usr/lib/python3.10/runpy.py" 、第 196 行,在 _run_module_as_main return _run_code(code, main_globals, None, File"/usr/lib/python3.10/runpy.py" 、第 86 行,在 _run_code exec(code, run_globals) 文件"/home/johnsonchris/.local/lib/python3.10/site-packages/west/__main__.py" 、第 3 行,在 main() 文件"/home/johnsonchris/.local/lib/python3.10/site-packages/west/app/main.py" 、第 1199 行,在 main app.run(argv)或 sys.argv[1:]) 文件"/home/johnsonchris/.local/lib/python3.10/site-packages/west/app/main.py" 、第 278 行,在 run self.run_command(argv、early_args) 文件"/home/johnsonchris/.local/lib/python3.10/site-packages/west/app/main.py" 、第 628 行,在 run_command 中 self.handle_extension_command_error(ece) 文件"/home/johnsonchris/.local/lib/python3.10/site-packages/west/app/main.py" 、第 454 行,在 handle_extension_command_error self.cmd.err(msg、fatal=True) AttributeError:"NoneType "对象没有属性 "err"。 据我所知,所有依赖条件都已满足。 我尝试在 Linux 上安装 SDK 依赖关系管理器应用程序,但安装也失败了。 Re: KW47 VSCode Integration 缺少 jinja2 软件包是解决方案。pip3 install jinja2
查看全文