Closed
[安装运行测试] webots_ros2:webots-ros2-importer 的 urdf2proto/xacro2proto 导入 PIL 失败(缺 python3-pillow 依赖)(openEuler 26.09-DevStation) #1
wuwei_kubudsAdd on  Oct 17Closed at  15 days ago
wuwei_kubuds
wuwei_kubudsCollaborators
Oct 17 Create

仓库:src-openeuler/webots_ros2 SIG:sig-ROS
验证基线:openEuler 26.09-DevStation(x86_64)
软件包:ros-humble-webots-ros2-importer-2023.0.3-1.x86_64(26.09 SIG localrepo 构建)
结论:安装成功,但 urdf2proto / xacro2proto 入口因导入 PIL 失败而无法运行

测试环境(可复现)

  • 基线镜像:openEuler 26.09-DevStation(dailybuild 快照;docker 原生运行,x86_64,无 QEMU 模拟)
    • 获取:https://dailybuild.openeuler.openatom.cn/dailybuild/EBS-openEuler-26.09-DevStation/openeuler-2026-09-19-05-43-45/docker_img/x86_64/openEuler-docker.x86_64.tar.xz(docker load 加载;同快照另有 aarch64 镜像与 ISO:.../ISO/x86_64/openEuler-26.09-DevStation-x86_64-dvd.iso)
  • ROS 软件源:26.09 暂无官方 ROS 仓——所测 ros-humble-* 由 src-openeuler 对应仓库(分支 Multi-Version_ros-humble_openEuler-26.09)构建(构建方式与 CI 对齐:dnf builddep → rpmbuild)。
  • 验证方式:容器内 dnf install + ros2 run;本单已在新净容器单装复现(无累计安装干扰)。

复现步骤

dnf install -y ros-humble-webots-ros2-importer
source /opt/ros/humble/setup.bash
ros2 run webots_ros2_importer urdf2proto

观察到的输出

Traceback (most recent call last):
  File "/opt/ros/humble/lib/webots_ros2_importer/urdf2proto", line 33, in <module>
    sys.exit(load_entry_point('webots-ros2-importer==2023.0.3', 'console_scripts', 'urdf2proto')())
  ...
  File "/opt/ros/humble/lib/python3.11/site-packages/webots_ros2_importer/urdf2webots/urdf2webots/parserURDF.py", line 6, in <module>
    from PIL import Image
ModuleNotFoundError: No module named 'PIL'
[ros2run]: Process exited with failure 1

诊断分析

  • 入口链:urdf2proto → urdf2webots.importer → parserURDF → from PIL import Image;包未声明 Pillow 运行依赖。
  • openEuler 26.09 仓库中已有 python3-pillow-0:12.3.0-1.oe2609.x86_64 提供者,属「依赖未声明」。

影响与建议

  • 建议为 ros-humble-webots-ros2-importer 补充 Requires: python3-pillow(urdf2proto 与 xacro2proto 同链)。

本 issue 由 openEuler ROS SIG 安装/运行验证流水线自动生成(天堂真矢 · maya)· 2026-10

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Oct 17 Assign wuwei_kubuds as responsible person
openeuler-ci-botopeneuler-ci-botCollaborators
Oct 17 Added label: sig/sig-ROS
openeuler-ci-bot
openeuler-ci-botCollaborators
Oct 17 Comments:

Welcome To openEuler Community

Hey @wuwei_kubuds , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands. You can self-configure the PR merge rules for this repository. For more details, please refer to Here.

Contact Guide

If you have any questions, please contact the SIG: sig-ROS ,
and any of the maintainers: @anchuanxu1, @davidhan008, @simonaxi, @wanminghu, @wuwei_kubuds, @xiao_yun_wang ,

likedislike
wuwei_kubuds
wuwei_kubudsCollaborators
Oct 17 Comments:

复验补充:openEuler 24.03-LTS-SP4 亦复现

在 24.03-LTS-SP4 净容器(docker 原生 x86_64,单包单装)复验:ros-humble-webots-ros2-importer-2023.0.3-1.oe2403.x86_64 的 urdf2proto / xacro2proto 入口同样在 PIL 导入链上失败:

ModuleNotFoundError: No module named 'PIL'
[ros2run]: Process exited with failure 1

24.03 侧仓库亦已有 python3-pillow 提供者(python3-pillow-3.x 可解析)——两基线同因,建议一并补 Requires: python3-pillow。


(净炉复验追加 · 天堂真矢 · maya · 2026-10)

likedislike
seteiroseteiro
29 days ago Associated pull request
openeuler-ci-botopeneuler-ci-botCollaborators
15 days ago Close issue
openeuler-ci-botopeneuler-ci-botCollaborators
15 days ago changed custom state from 待办的 to 已完成
seteiroseteiro
6 days ago Associated pull request