rqt won't launch: KeyError: 'label'
Hello, I am getting a trace error when I try to launch rqt.
Traceback (most recent call last):
File "/opt/ros/melodic/bin/rqt", line 13, in <module>
sys.exit(main.main())
File "/opt/ros/melodic/lib/python2.7/dist-packages/rqt_gui/main.py", line 59, in main
return super(Main, self).main(argv, standalone=standalone, plugin_argument_provider=plugin_argument_provider, plugin_manager_settings_prefix=str(hash(os.environ['ROS_PACKAGE_PATH'])))
File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/main.py", line 596, in main
plugin_manager.discover()
File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/plugin_manager.py", line 125, in discover
self._plugin_menu.add_plugin(plugin_descriptor)
File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/plugin_menu.py", line 81, in add_plugin
action = QAction(action_attributes['label'], menu_manager.menu)
KeyError: 'label'
However, rqt launches correctly when I launch my plugin in standalone, e.g.:
rqt --standalone rqt_mypkg
The standard plugins such as rqt_graph and rqt_bag also work correctly.
Any ideas?
Thank you for the comment. But the problem is not with my plugin, it is when I try to launch rqt via
rqt
command. It seems to have difficulty loading the menu bar.When I launch my plugin or any other common plugins, there is no problem.
The second sentence of my previous comment still applies. You can also try
rqt --clear-config
.Hmm, I seem to be missing something. I am not trying to launch a plugin, so would there be a plugin.xml file? Is there a master plugin.xml file somewhere in the installation folder?
Also
rqt --clear-config
throws the exact same Traceback.OH! My bad, it was my plugin that was causing the problem! There was no label field and the rqt_gui could not add my plugin to the list in the menu!
Thank you so much!
I converted my first comment into an answer. Please consider checking the mail on the left of it to mark it as the right answer if it works for you. Thanks.