Skip to content

Commit 276e89d

Browse files
committed
added another issue troubleshooting to ROS2 workspace installation
1 parent 8f406fc commit 276e89d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/10-prerequisities/25-ros2/20-workspace-build.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,10 @@ Sourcing `mrs_uav_development` sources the `ROS_WORKSPACE` specified in `~/.bash
122122
* *Issue:* Calling colcon build fails with error: `ModuleNotFoundError: No module named 'ament_package'`
123123
* *Reason:* `ROS_WORKSPACE` is sourced before building the workspace.
124124
* *Solution:* Remove `ROS_WORKSPACE` from `~/.bashrc` (`~/.zshrc`), open new terminal, build the workspace, return `ROS_WORKSPACE` to `~/.bashrc` (`~/.zshrc`).
125+
126+
## Any ros2 command fails
127+
* *Issue:* Calling any ros2 commands fails with `importlib.metadata.PackageNotFoundError: No package metadata was found for ros2cli`
128+
* *Reason:* `/tmp/ros_presource_output.sh` exists and needs to be deleted.
129+
* *Solution:* Remove `rm /tmp/ros_presource_output.sh`
130+
125131

0 commit comments

Comments
 (0)