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

ImportError while installing ROS2 from source

asked 2017-11-28 22:39:07 -0600

kunaltyagi gravatar image

updated 2017-11-28 23:20:41 -0600

I followed the instructions for installing ROS2 from source (from github wiki).

Isolated and non-isolated build:

src/ament/ament_tools/scripts/ament.py build --build-tests --symlink-install <--isolated>: I'm getting a Import Error: No module named 'catkin_pkg' and a NameError: name 'catkin_pkg' is not defined. The errors occur at line number 34 and 48 in ros1_bridge/__init__.py.

$ <path-to-python> -c 'import catkin_pkg' reproduces this error.

Any ideas why? Is there a step that I've missed? Should there be a sudo -H pip install catkin_pkg rospkg somewhere in the docs?

edit retag flag offensive close merge delete

Comments

I would really suggest you report this at the ROS2 github issue tracker.

gvdhoorn gravatar image gvdhoorn  ( 2017-11-29 00:21:27 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-02-01 13:38:48 -0600

dhood gravatar image

Yes, the ros1_bridge package depends on a number of ROS 1 packages. These are not listed in the main ROS 2 installation instructions that you linked to, but in the ros1_bridge-specific instructions at: https://github.com/ros2/ros1_bridge/b...

Note that there is a particular order in which ROS 1 and ROS 2 workspaces need to be sourced, so you'll need to pay close attention to the steps in the instructions when building from source.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-11-28 22:39:07 -0600

Seen: 399 times

Last updated: Feb 01 '18