rosrun rqt_gui error

asked 2021-10-29 00:08:20 -0500

hrithik verma gravatar image

When I try running "rosrun rqt_gui rqt_gui" in my terminal, I got a error :

rosrun rqt_gui rqt_gui

Traceback (most recent call last): File "/opt/ros/melodic/lib/rqt_gui/rqt_gui", line 13, in <module> sys.exit(main.main()) File "/opt/ros/melodic/lib/python2.7/dist-packages/rqt_gui/", line 65, in main hash(os.environ['ROS_PACKAGE_PATH']))) File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/", line 600, in main File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/", line 125, in discover self._plugin_menu.add_plugin(plugin_descriptor) File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/", line 82, in add_plugin self._enrich_action(action, action_attributes, base_path) File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/", line 133, in _enrich_action action_attributes['icon'], action_attributes.get('icontype', None), base_path) File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui/", line 46, in get_icon raise UserWarning('icon "%s" not found' % str(path))

sudo apt-get install ros-melodic-rqt

Latest vesion already installed

env | grep ROS
  • ROS_ETC_DIR=/opt/ros/melodic/etc/ros ROS_ROOT=/opt/ros/melodic/share/ros ROS_MASTER_URI=http://localhost:11311 ROS_VERSION=1 ROS_PYTHON_VERSION=2 ROS_PACKAGE_PATH=/home/hrithik/mahi_ws/install/mahi/share:/opt/ros/melodic/share ROSLISP_PACKAGE_DIRECTORIES= ROS_DISTRO=melodic

Please Help me!!!

edit retag flag offensive close merge delete


Can you check your LD_LIBRARY_PATH by sudo echo $LD_LIBRARY_PATH Looks it's a problem with your QT

osilva gravatar image osilva  ( 2021-10-29 11:00:39 -0500 )edit

running sudo echo $LD_LIBRARY_PATH I'm getting /opt/ros/melodic/lib

So, how to solve this issue

hrithik verma gravatar image hrithik verma  ( 2021-10-29 23:06:32 -0500 )edit

Try first to update your system and do a rosdep update. It's correctly mapped.

osilva gravatar image osilva  ( 2021-10-30 10:32:31 -0500 )edit

I tired system update than rosdep update but still the issue persist

hrithik verma gravatar image hrithik verma  ( 2021-11-01 00:04:47 -0500 )edit

By any chance are you running on WSL?

osilva gravatar image osilva  ( 2021-11-01 05:18:27 -0500 )edit