Closed togaen closed 4 years ago
Could you please verify that you source first noetic followed by foxy? Make sure you have a fresh terminal and no modifications in your bashrc. I can reproduce your error when sourcing foxy before noetic. However, when noetic is sourced first, it works just fine for me.
I am going to close this issue as I think this issue is solved by sourcing noetic before foxy. @togaen Please don't hesitate to re-open this ticket in case your problem still persists.
@Karsten1987 Sorry I missed your reply, somehow I had notifications turned off. I am still seeing this error even in a fresh terminal with a bashrc containing the following:
source /opt/ros/noetic/setup.bash
source /opt/ros/foxy/setup.bash
If it's relevant, I also get this message every time I open a terminal:
ROS_DISTRO was set to 'foxy' before. Please make sure that the environment does not mix paths from different distributions.
ROS_DISTRO was set to 'noetic' before. Please make sure that the environment does not mix paths from different distributions.
Would have any ideas what else might be going on?
In case anyone else has this issue, it turned out for me to just be that the ROS paths had be set session-wide instead of just per shell session. Setting the right source order then logging out and back in fixed it for me.
any update now?
Hello all,
having the same error, even if noetic is sourced first in the fresh terminal. Any help would be much appreciated
Hi! I'm having the same issue, working from a fresh docker (FROM osrf/ros:foxy-desktop
)
If anyone was able to find a solution and can provide a Dockerfile with steps I'd be more than grateful!
Hi all, I am facing same issue. I use ros2-galactic
ImportError: /opt/ros/galactic/lib/librosbag2_storage.so: undefined symbol: _ZNK12class_loader11ClassLoader15isLibraryLoadedEv
Please let me know if there's any resolve for this issue. Thanks
If you use docker and into.sh, you should check that foxy isn't sourced in into.sh
I am getting undefined symbol errors trying to get info on a ROS 1 bag file. I am on ROS 2 Foxy and I installed everything using apt. The bag file has no custom messages, only
std_msgs/Header
andstd_msgs/Float32
messages.The README states that ROS 1 must be sourced first in order to avoid problems with the class loader. The relevant section of my bashrc looks like this:
Even so, I get the below error:
Also, the link given in the error message doesn't seem to point to an existing section anymore: https://github.com/ros2/rosbag2/issues/458