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

Rextab's profile - activity

2023-02-23 07:27:16 -0500 received badge  Necromancer (source)
2023-02-23 07:25:14 -0500 marked best answer [ubuntu18.04][ros2-dashing] failed to load entry point issue

I am trying to run ros2 commands but with any of them I get a similar failure (see below).

edit: from further debugging (BTW it was working perfectly yesterday 24/11/2020) I guess that the LD_LIBRARY_PATH is not loaded or used by python in order to find and load the plugins libraries...

my configuration is Ubunut18.04, re-preempt, ROS2-binary Dashing:

$  env | grep ROS
ROS_VERSION=2
ROS_PYTHON_VERSION=3
ROS_PACKAGE_PATH=/opt/openrobots/share:
ROS_DISTRO=dashing

$ env | grep dashig
LD_LIBRARY_PATH=/opt/ros/dashing/opt/yaml_cpp_vendor/lib:/opt/ros/dashing/opt/rviz_ogre_vendor/lib:/opt/ros/dashing/lib:/opt/openrobots/lib/dynamic-graph-plugins:/opt/openrobots/lib:
AMENT_PREFIX_PATH=/opt/ros/dashing
PYTHONPATH=/opt/ros/dashing/lib/python3.6/site-packages:/opt/openrobots/lib/python3.6/site-packages:
PATH=/opt/ros/dashing/bin:/opt/openrobots/bin:/home/mnaveau/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:bin:/usr/games:/usr/local/games:/snap/bin
ROS_DISTRO=dashing

moreover it happens from python with a simple:

$ ipython
Python 3.6.9 (default, Oct  8 2020, 12:12:24) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.16.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import rclpy

In [2]: rclpy.ok()
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-1fc2aba2165f> in <module>
----> 1 rclpy.ok()

/opt/ros/dashing/lib/python3.6/site-packages/rclpy/utilities.py in ok(context)
     46 def ok(*, context=None):
     47     if context is None:
---> 48         context = get_default_context()
     49     return context.ok()
     50 

/opt/ros/dashing/lib/python3.6/site-packages/rclpy/utilities.py in get_default_context(shutting_down)
     29         global g_default_context
     30         if g_default_context is None:
---> 31             g_default_context = Context()
     32         if shutting_down:
     33             old_context = g_default_context

/opt/ros/dashing/lib/python3.6/site-packages/rclpy/context.py in __init__(self)
     26 
     27     def __init__(self):
---> 28         from rclpy.impl.implementation_singleton import rclpy_implementation
     29         self._handle = rclpy_implementation.rclpy_create_context()
     30         self._lock = threading.Lock()

/opt/ros/dashing/lib/python3.6/site-packages/rclpy/impl/implementation_singleton.py in <module>
     29 from rclpy.impl import _import
     30 
---> 31 rclpy_implementation = _import('._rclpy')
     32 rclpy_action_implementation = _import('._rclpy_action')
     33 rclpy_logging_implementation = _import('._rclpy_logging')

/opt/ros/dashing/lib/python3.6/site-packages/rclpy/impl/__init__.py in _import(name)
     20 def _import(name):
     21     try:
---> 22         return importlib.import_module(name, package='rclpy')
     23     except ImportError as e:
     24         if e.path is None:

/usr/lib/python3.6/importlib/__init__.py in import_module(name, package)
    124                 break
    125             level += 1
--> 126     return _bootstrap._gcd_import(name[level:], package, level)
    127 
    128 

ImportError: librclpy_common.so: cannot open shared object file: No such file or directory
The C extension '/opt/ros/dashing/lib/python3.6/site-packages/rclpy/_rclpy.cpython-36m-x86_64-linux-gnu.so' failed to be imported while being present on the system. Please refer to 'https://index.ros.org/doc/ros2/Troubleshooting/Installation-Troubleshooting/#import-failing-even-with-library-present-on-the-system' for possible solutions

Error received: $ ros2 topic list

Failed to load entry point 'launch': librclpy_common.so: cannot open shared object file: No such file or directory
The C extension '/opt/ros/dashing/lib/python3.6/site-packages/rclpy/_rclpy.cpython-36m-x86_64-linux-gnu.so' failed ...
(more)
2023-02-23 07:25:14 -0500 received badge  Enlightened (source)
2023-02-23 07:25:12 -0500 received badge  Good Answer (source)
2022-03-30 21:12:10 -0500 received badge  Nice Answer (source)
2021-06-24 21:28:18 -0500 received badge  Notable Question (source)
2021-06-08 08:30:01 -0500 received badge  Self-Learner (source)
2021-06-08 08:30:01 -0500 received badge  Teacher (source)
2021-06-01 14:30:36 -0500 received badge  Popular Question (source)
2021-04-14 04:16:24 -0500 commented answer Error build Machine Learning packages

Ok but what is causing this issue? And how to solve it?

2020-12-09 19:54:56 -0500 received badge  Famous Question (source)
2020-12-09 19:54:56 -0500 received badge  Notable Question (source)
2020-11-26 14:19:30 -0500 received badge  Popular Question (source)
2020-11-26 09:31:05 -0500 answered a question [ubuntu18.04][ros2-dashing] failed to load entry point issue

This question is I believe related to this one: - https://answers.ros.org/question/346578/libroscppso-cannot-open-shared

2020-11-26 09:31:05 -0500 received badge  Rapid Responder (source)
2020-11-26 09:26:26 -0500 edited answer ´libroscpp.so: cannot open shared object file: No such file or directory´ Error

I found a potential solution for you see: https://answers.ros.org/question/366380/ubuntu1804ros2-dashing-failed-to-load-

2020-11-26 09:23:51 -0500 commented question ´libroscpp.so: cannot open shared object file: No such file or directory´ Error

I have the same kinda issue on 2 different computer using ROS1 and ROS2...

2020-11-26 06:39:16 -0500 edited question [ubuntu18.04][ros2-dashing] failed to load entry point issue

[ubuntu18.04][ros2-dashing] failed to load entry point issue I am trying to run ros2 commands but with any of them I get

2020-11-26 06:31:21 -0500 answered a question ´libroscpp.so: cannot open shared object file: No such file or directory´ Error

I have the same kinda issue on 2 different computer using ROS1 and ROS2...

2020-11-26 04:43:53 -0500 edited question [ubuntu18.04][ros2-dashing] failed to load entry point issue

[ubuntu18.04][ros2-dashing] failed to load entry point issue I am trying to run ros2 commands but n any of them I get a

2020-11-25 11:24:07 -0500 edited question [ubuntu18.04][ros2-dashing] failed to load entry point issue

[ubuntu18.04][ros2-dashing] failed to load entry point issue I am trying to run ros2 commands but n any of them I get a

2020-11-25 11:24:07 -0500 received badge  Editor (source)
2020-11-25 11:12:20 -0500 edited question [ubuntu18.04][ros2-dashing] failed to load entry point issue

[ubuntu18.04][ros2-dashing] failed to load entry point issue I am trying to run ros2 commands but n any of them I get a

2020-11-25 11:04:45 -0500 asked a question [ubuntu18.04][ros2-dashing] failed to load entry point issue

[ubuntu18.04][ros2-dashing] failed to load entry point issue I am trying to run ros2 commands but n any of them I get a

2020-11-04 12:00:43 -0500 received badge  Enthusiast
2020-10-26 09:50:18 -0500 asked a question ROS2 GraphListener already shutdown

ROS2 GraphListener already shutdown Dear ROS2 users. I am performing some google unit test on my ROS2 nodes implemented

2020-10-23 14:25:07 -0500 commented question [ROS2] [rclcpp] [eloquent] spin_until_future_complete in an already spinning node

I have the same issue, I am trying tones of different stuff, like spin some nodes in the main and create new nodes for t