Robotics StackExchange | Archived questions

rosrun rqt_gui error

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

rosrun rqt_gui rqt_gui

Traceback (most recent call last): File "/opt/ros/melodic/lib/rqtgui/rqtgui", line 13, in sys.exit(main.main()) File "/opt/ros/melodic/lib/python2.7/dist-packages/rqtgui/main.py", line 65, in main hash(os.environ['ROSPACKAGEPATH']))) File "/opt/ros/melodic/lib/python2.7/dist-packages/qtgui/main.py", line 600, in main pluginmanager.discover() File "/opt/ros/melodic/lib/python2.7/dist-packages/qtgui/pluginmanager.py", line 125, in discover self.pluginmenu.addplugin(plugindescriptor) File "/opt/ros/melodic/lib/python2.7/dist-packages/qtgui/pluginmenu.py", line 82, in addplugin self.enrichaction(action, actionattributes, basepath) File "/opt/ros/melodic/lib/python2.7/dist-packages/qtgui/pluginmenu.py", line 133, in enrichaction actionattributes['icon'], actionattributes.get('icontype', None), basepath) File "/opt/ros/melodic/lib/python2.7/dist-packages/qtgui/iconloader.py", line 46, in geticon raise UserWarning('icon "%s" not found' % str(path))

sudo apt-get install ros-melodic-rqt

Latest vesion already installed

env | grep ROS

Please Help me!!!

Asked by hrithik verma on 2021-10-29 00:08:20 UTC

Comments

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

Asked by osilva on 2021-10-29 11:00:39 UTC

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

So, how to solve this issue

Asked by hrithik verma on 2021-10-29 23:06:32 UTC

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

Asked by osilva on 2021-10-30 10:32:31 UTC

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

Asked by hrithik verma on 2021-11-01 00:04:47 UTC

By any chance are you running on WSL?

Asked by osilva on 2021-11-01 05:18:27 UTC

Answers