-
Traceback (most recent call last):
File "/opt/ros/foxy/bin/ros2", line 11, in <module>
load_entry_point('ros2cli==0.9.11', 'console_scripts', 'ros2')()
File "/opt/ros/foxy/lib/python3.8/site-packages/ros2cli/cli.py", line 67, in main
rc = extension.main(parser=parser, args=args)
File "/opt/ros/foxy/lib/python3.8/site-packages/ros2bag/command/bag.py", line 38, in main
return extension.main(args=args)
File "/opt/ros/foxy/lib/python3.8/site-packages/ros2bag/verb/play.py", line 75, in main
from rosbag2_transport import rosbag2_transport_py
File "/opt/ros/foxy/lib/python3.8/site-packages/rosbag2_transport/init.py", line 17, in <module>
rosbag2_transport_py = import_c_library('._rosbag2_transport_py', package='rosbag2_transport')
File "/opt/ros/foxy/lib/python3.8/site-packages/rpyutils/import_c_library.py", line 39, in import_c_library
return importlib.import_module(name, package=package)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: /opt/ros/foxy/lib/librosbag2_storage.so: undefined symbol: _ZNK12class_loader11ClassLoader15isLibraryLoadedEv
The C extension '/opt/ros/foxy/lib/python3.8/site-packages/rosbag2_transport/_rosbag2_transport_py.cpython-38-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 -
@学习人类的第二十三年 有conda类的环境吗,确认下这个文件的确存在
@学习人类的第二十三年 在 使用ROS2查看ros20bag出现问题 中说:
opt/ros/foxy/lib/python3.8/site-packages/rosbag2_transport/_rosbag2_transport_py.cpython-38-x86_64-linux-gnu.so'
另外代码记得用代码块包裹下
-
@小鱼 虚拟机没有conda的环境,这个文件是有的。
-
@学习人类的第二十三年 在 使用ROS2查看ros20bag出现问题 中说:
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
有在这里找一下对应问题吗,找找看
-
@小鱼 没有找到对应的
-
@学习人类的第二十三年 那只剩重装这一条路了
-
@小鱼 行,我试试,多谢解答O(∩_∩)O哈哈~
-
@小鱼 没问题了,果然重启可以解决90%问题
-
@学习人类的第二十三年 重启,重装,换一个
-