[ROS2 Dashing] Can't run rqt

asked 2019-10-22 20:10:40 -0600

Darby Lim gravatar image

updated 2019-10-22 20:13:01 -0600

I've successfully installed Dashing patch 4 from source. But I can't implement rqt anymore. Do I miss something?

RosPluginProvider.load(rqt_gui_py/RosPyPluginProvider) exception raised in __builtin__.__import__(rqt_gui_py.ros_py_plugin_provider, [RosPyPluginProvider]):
Traceback (most recent call last):
  File "/home/darby/ros2_ws/build/rqt_gui/src/rqt_gui/ros_plugin_provider.py", line 81, in load
    attributes['module_name'], fromlist=[attributes['class_from_class_type']], level=0)
ModuleNotFoundError: No module named 'rqt_gui_py'

RecursivePluginProvider.discover() loading plugin "rqt_gui_py/RosPyPluginProvider" failed:
Traceback (most recent call last):
  File "/home/darby/ros2_ws/install/qt_gui/lib/python3.6/site-packages/qt_gui/recursive_plugin_provider.py", line 60, in discover
    instance = self._plugin_provider.load(plugin_descriptor.plugin_id(), None)
  File "/home/darby/ros2_ws/build/rqt_gui/src/rqt_gui/ros_plugin_provider.py", line 91, in load
    raise e
  File "/home/darby/ros2_ws/build/rqt_gui/src/rqt_gui/ros_plugin_provider.py", line 81, in load
    attributes['module_name'], fromlist=[attributes['class_from_class_type']], level=0)
ModuleNotFoundError: No module named 'rqt_gui_py'
edit retag flag offensive close merge delete

Comments

Similar thing here but different command and output:

ros2 run rqt_gui rqt_gui
Traceback (most recent call last):
  File "/home/gael/ros2_ws/install/lib/rqt_gui/rqt_gui", line 6, in <module>
    from rqt_gui.main import Main
ModuleNotFoundError: No module named 'rqt_gui'
 

galou gravatar imagegalou ( 2019-11-01 16:53:39 -0600 )edit

I found a workaround which consists in symlinking the directory written in the egg-link file and to the associated egg-info file.

galou gravatar imagegalou ( 2019-11-02 01:45:26 -0600 )edit

I have solved to colcon build seperetely (NOT add build argument symlink-install) rqt_gui and rqt_gui_py

Darby Lim gravatar imageDarby Lim ( 2019-11-03 19:21:37 -0600 )edit