ROS2运行时报无法加载create_key等符号错误

在Windows上运行ROS2命令行时每次都会报以下错误:

复制代码
Failed to load entry point 'create_key': DLL load failed: 找不到指定的模块。
Failed to load entry point 'create_keystore': DLL load failed: 找不到指定的模块。
Failed to load entry point 'create_permission': DLL load failed: 找不到指定的模块。
Failed to load entry point 'distribute_key': DLL load failed: 找不到指定的模块。
Failed to load entry point 'generate_artifacts': DLL load failed: 找不到指定的模块。
Failed to load entry point 'generate_policy': DLL load failed: 找不到指定的模块。
Failed to load entry point 'list_keys': DLL load failed: 找不到指定的模块。

查找了一下generate_artifacts这个符号,在sros这个包中找到,检查包里的__init__.py,发现了导入了lxml,使用Dependencies检查lxml.etree的依赖,发现缺少libxml2.dll, libxslt.dll, libexslt.dll。

这个lxml是自己手动编译的,忘记带上依赖库了。使用vcpkg编译出libxml2,放到lxml所在的目录即可。

相关推荐
郝学胜_神的一滴6 小时前
CMake 034:生成器表达式:解耦构建时序、精简分支逻辑的终极利器
c++·cmake
荣码7 小时前
GraphRAG:普通RAG只能回答"点"的问题,我踩了4个坑才搞懂
java·python
金銀銅鐵17 小时前
[Python] 基于欧几里得算法,实现分数约分计算器
python·数学
Lyn_Li19 小时前
Kaggle Top 5 | 198只股票、200条数据的金融预测——BattleFin高分方案从零复现
python·kaggle·比赛复盘·金融预测
见过夏天1 天前
C++ 基础入门完全指南
c++
小九九的爸爸1 天前
前端想要入门Agent开发,要具备哪些Python基础?
python·agent·ai编程
阿耶同学1 天前
手把手教你用 LangGraph 搭建三层嵌套 Agent 架构
python·程序员
花酒锄作田2 天前
Pydantic校验配置文件
python
hboot2 天前
AI工程师第四课 - 深度学习入门
pytorch·python·神经网络
ZhengEnCi2 天前
P2M-Matplotlib折线图完全指南-从数据可视化到趋势分析的Python绘图利器
python·matlab·数据可视化