ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Issues sourcing ROS after building

asked 2020-11-30 09:14:01 -0600

anthares gravatar image

updated 2020-11-30 12:16:06 -0600

Hi there, I have built Rolling for ARM using Docker. Everything seems to work find inside the container.

Further steps that I took:

* SCPed the content of the install folder to /opt/ros2_rolling/install of a beaglebone;
* export COLCON_CURRENT_PREFIX=/opt/ros2_rolling/install
* cd /opt/ros2_rolling/install
* . /opt/ro2_rolling/install/setup.bash

Every thing apparently is fine... but when trying to run "ros2", I get:

Traceback (most recent call last):
  File "/opt/ros2_rolling/install/ros2cli/bin/ros2", line 33, in <module>
    sys.exit(load_entry_point('ros2cli', 'console_scripts', 'ros2')())
  File "/opt/ros2_rolling/install/ros2cli/bin/ros2", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
  File "/home/debian/.local/lib/python3.7/site-packages/importlib_metadata/__init__.py", line 558, in distribution
    return Distribution.from_name(distribution_name)
  File "/home/debian/.local/lib/python3.7/site-packages/importlib_metadata/__init__.py", line 215, in from_name
    raise PackageNotFoundError(name)
importlib_metadata.PackageNotFoundError: No package metadata was found for ros2cli

Anyone got a clue of what's going on here? Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-12-18 13:29:32 -0600

nuclearsandwich gravatar image

Based on the paths above it looks like you may have a python installation shadowing the system python installation used by ROS 2.

The /home/debian/.local paths in your error output are what suggest this to me. I've had issues in the past with pip packages I've installed in .local interfering with system-wide packages. I tested by moving ~/.local to ~/.local.disabled and trying again in a new shell to find my command successful. I never resolved the issue with overlapping packages in .local and ended up just uninstalling packages that were there.

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2020-11-30 09:14:01 -0600

Seen: 2,991 times

Last updated: Dec 18 '20