ros / ros_comm

ROS communications-related packages, including core client libraries (roscpp, rospy, roslisp) and graph introspection tools (rostopic, rosnode, rosservice, rosparam).
http://wiki.ros.org/ros_comm
752 stars 911 forks source link

Cannot import `libroslz4.so` #2225

Closed aalbaali closed 2 years ago

aalbaali commented 2 years ago

Hello,

I have a LZ4 compressed rosbag. I have been working on the bag using Python 3 and was running smoothly until recently when I started getting this error: ImportError: libroslz4.so: cannot open shared object file: No such file or directory.

I looked around and found _roslz4.so stored under ~/.local/lib/python3.8/site-packages/roslz4/. However, Python 3 is not able to find it and it's giving me the error above.

Any idea as to what may be causing this issue and how to fix it?

aalbaali commented 2 years ago

Solved by installing roslz4 using

$ pip install roslz4 --extra-index-url https://rospypi.github.io/simple/

Solution found from this answer.