How do I solve "ImportError:" when using rosbag2 in ros2 eloquent

asked 2021-04-28 03:31:59 -0500

Hey all, I installed rosbag2 in my docker image (ros:eloquent) as descripted with apt-get (without rosbridge...)

When I try to use it (ros2 bag record -a) I have the following error:

root@baKIraspberrypicoral01:/# ros2 bag record -a Traceback (most recent call last): File "/opt/ros/eloquent/bin/ros2", line 11, in <module> load_entry_point('ros2cli==0.8.8', 'console_scripts', 'ros2')() File "/opt/ros/eloquent/lib/python3.6/site-packages/ros2cli/", line 69, in main rc = extension.main(parser=parser, args=args) File "/opt/ros/eloquent/lib/python3.6/site-packages/ros2bag/command/", line 40, in main return extension.main(args=args) File "/opt/ros/eloquent/lib/python3.6/site-packages/ros2bag/verb/", line 83, in main from rosbag2_transport import rosbag2_transport_py File "/opt/ros/eloquent/lib/python3.6/site-packages/rosbag2_transport/", line 32, in <module> rosbag2_transport_py = _import('._rosbag2_transport_py') File "/opt/ros/eloquent/lib/python3.6/site-packages/rosbag2_transport/", line 21, in _import return importlib.import_module(name, package='rosbag2_transport') File "/usr/lib/python3.6/importlib/", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ImportError: cannot open shared object file: No such file or directory The C extension '/opt/ros/eloquent/lib/python3.6/site-packages/rosbag2_transport/' failed to be imported while being present on the system. Please refer to '' for possible solutions</module></module>

Can someone help me please?

edit retag flag offensive close merge delete