Dependency Conflict in micro-ROS Zephyr Setup Due to docutils Version Incompatibility
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 领域
- build-system, tooling
调研方向
从 src/micro_ros_setup/config/zephyr/generic/create.sh 的第 70 行附近开始,检查 create_firmware_ws.sh zephyr 使用的依赖安装过程。在 Humble Docker 容器或 Ubuntu 22.04 中使用 ros2 run micro_ros_setup create_firmware_ws.sh zephyr 进行复现。完成标准是能够创建固件工作区,且不再出现 docutils 和 sphinx-rtd-theme 之间的冲突。
由索引模型根据 Issue 内容生成。
描述
Dependency Conflict in micro-ROS Zephyr Setup Due to docutils Version Incompatibility
-
Hardware description: N/A (not hardware specific)
-
RTOS: Zephyr
-
Installation type:
micro_ros_setup -
Version or commit hash: a146e83
-
Python version: Python 3.10.12
-
OS: Ubuntu 22.04.5 LTS
Steps to reproduce the issue
- Follow the micro-ROS Zephyr setup instructions.
- Run the following command to create a firmware workspace:
ros2 run micro_ros_setup create_firmware_ws.sh zephyr - The script fails with a
docutilsversion conflict.
Expected behavior
The firmware workspace should be created without any dependency conflicts.
Actual behavior
The script fails with the following error due to an incompatibility between sphinx-rtd-theme and the installed version of docutils:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
sphinx-rtd-theme 0.5.2 requires docutils<0.17, but you have docutils 0.17.1 which is incompatible.
Additional information
I was able to resolve the issue by modifying the create.sh file in src/micro_ros_setup/config/zephyr/generic/ at line 70:
pip install --force-reinstall docutils==0.16 Sphinx==4.2.0
This forces the installation of a compatible version of docutils and prevents pip from installing docutils 0.17.1. To fix the issue permanently, I suggest adding this change to the official create.sh script to ensure compatibility with sphinx-rtd-theme 0.5.2.
I tested this issue both in my local environment (Ubuntu 22.04.5 LTS) and in the official Humble Docker container. The issue was reproducible in both setups.
The full logs are available if needed, but they are quite lengthy.
- 主要语言
- Shell
- 星标
- 509
- 派生
- 183
- 平均合并
- 22 小时 26 分钟
- 30 天内合并 PR
- 7
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
micro-ROS/micro_ros_setup 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
micro-ROS/micro_ros_setup#837 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
micro-ROS/micro_ros_setup#814 ·
-
难度 4/5 3-5 天 新手友好度 42/100
micro-ROS/micro_ros_setup#809 ·
-
难度 4/5 3-5 天 新手友好度 38/100
micro-ROS/micro_ros_setup#808 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 20/100
micro-ROS/micro_ros_setup#806 ·
查看 micro-ROS/micro_ros_setup 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
astral-sh/python-build-standalone#1293 ·
-
package-update
难度 1/5 1 小时以内 新手友好度 90/100
oSoWoSo/vOid_Community_repOsitory#185 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
carbon-language/carbon-lang#7821 ·