RosPluginProvider.load(rqt_tf_tree/RosTfTree) exception raised in builtin.import(rqt_tf_tree.tf_tree, [RosTfTree]):
Traceback (most recent call last):
File “/opt/ros/melodic/lib/python2.7/dist-packages/rqt_gui/ros_plugin_provider.py”, line 80, in load
attributes[‘module_name’], fromlist=[attributes[‘class_from_class_type’]], level=0)
File “/opt/ros/melodic/lib/python2.7/dist-packages/rqt_tf_tree/tf_tree.py”, line 40, in
import tf2_ros
File “/opt/ros/melodic/lib/python2.7/dist-packages/tf2_ros/init.py”, line 39, in
from .buffer_interface import *
File “/opt/ros/melodic/lib/python2.7/dist-packages/tf2_ros/buffer_interface.py”, line 32, in
import roslib; roslib.load_manifest(‘tf2_ros’)
File “/opt/ros/melodic/lib/python2.7/dist-packages/roslib/launcher.py”, line 64, in load_manifest
sys.path = _generate_python_path(package_name, _rospack) + sys.path
File “/opt/ros/melodic/lib/python2.7/dist-packages/roslib/launcher.py”, line 97, in _generate_python_path
m = rospack.get_manifest(pkg)
File “/usr/lib/python2.7/dist-packages/rospkg/rospack.py”, line 171, in get_manifest
return self._load_manifest(name)
File “/usr/lib/python2.7/dist-packages/rospkg/rospack.py”, line 215, in _load_manifest
retval = self._manifests[name] = parse_manifest_file(self.get_path(name), self._manifest_name, rospack=self)
File “/usr/lib/python2.7/dist-packages/rospkg/manifest.py”, line 414, in parse_manifest_file
_static_rosdep_view = init_rospack_interface()
File “/usr/lib/python2.7/dist-packages/rosdep2/rospack.py”, line 60, in init_rospack_interface
lookup = _get_default_RosdepLookup(Options())
File “/usr/lib/python2.7/dist-packages/rosdep2/main.py”, line 136, in _get_default_RosdepLookup
verbose=options.verbose)
File “/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py”, line 609, in create_default
sources = load_cached_sources_list(sources_cache_dir=sources_cache_dir, verbose=verbose)
File “/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py”, line 566, in load_cached_sources_list
raise CachePermissionError('Failed to write cache file: ’ + str(e))
CachePermissionError: Failed to write cache file: [Errno 13] Permission denied: ‘/home/tx/.ros/rosdep/sources.cache/index’
PluginManager._load_plugin() could not load plugin “rqt_tf_tree/RosTfTree”:
Traceback (most recent call last):
File “/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/plugin_handler.py”, line 102, in load
self._load()
File “/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/plugin_handler_direct.py”, line 55, in _load
self._plugin = self._plugin_provider.load(self._instance_id.plugin_id, self._context)
File “/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py”, line 72, in load
instance = plugin_provider.load(plugin_id, plugin_context)
File “/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py”, line 72, in load
instance = plugin_provider.load(plugin_id, plugin_context)
File “/opt/ros/melodic/lib/python2.7/dist-packages/rqt_gui_py/ros_py_plugin_provider.py”, line 61, in load
return super(RosPyPluginProvider, self).load(plugin_id, plugin_context)
File “/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py”, line 72, in load
instance = plugin_provider.load(plugin_id, plugin_context)
File “/opt/ros/melodic/lib/python2.7/dist-packages/rqt_gui/ros_plugin_provider.py”, line 90, in load
raise e
CachePermissionError: Failed to write cache file: [Errno 13]
1.缺少了某些部件,从终端反馈来看,在执行rqt相应的python文件时存在很多缺失,尝试update更新一下,然后补一下rqt的相关依赖在进行尝试
2.重装下ros,rosdep update能用的话用这个也可以,不能用就重装ros,换成国内的ros源试试,反正ros的问题