ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

rosrun rqt_graph rqt_graph error

asked 2023-01-15 21:58:14 -0500

CarlDRONE gravatar image

updated 2023-01-16 23:36:17 -0500

Environment: Windows 10, Virtual Box 7.0, Ubuntu 20.04, Anaconda3, Ros1, (Noetic)

Event notes:

-rosversion -d yields noetic -Ros Catkin Workspace created -talker/listener tutorial executes -both components RQT Graph and Gazebo Robot fail. (I have a separate question regarding the latter.) -exercises from the text "Intelligent Autonomous Drones with Cognitive Deep Learning" page 103-4


$ rosrun rqt_graph rqt_graph
Traceback (most recent call last):
  File "/opt/ros/noetic/lib/rqt_graph/rqt_graph", line 5, in <module>
    from rqt_gui.main import Main
  File "/opt/ros/noetic/lib/python3/dist-packages/rqt_gui/", line 40, in <module>
    from rospkg.rospack import RosPack
ModuleNotFoundError: No module named 'rospkg'
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2023-01-17 22:42:39 -0500

CarlDRONE gravatar image

In researching this on the site, I found a similar question there that made the statement that Python 2.7 was needed for some ROS1 functions to work. I had Python 3.9 Anaconda3 only. I located the command to install Python 2.7 concurrently using Conda with the following:

$ conda create -n py27 python=2.7 anaconda $ conda activate py27

The ROS RQT Graph Window ran successfully.

edit flag offensive delete link more

Question Tools


Asked: 2023-01-15 16:56:51 -0500

Seen: 140 times

Last updated: Jan 17