rqt_joint_trajectory controller : Import Error: no module named rospkg.rospack

asked 2020-09-03 05:05:07 -0500

anturtla gravatar image

Good morning,

I installed the package with:

sudo apt install ros-noetic-rqt-joint-trajectory-controller

but when running

rosrun rqt_joint_trajectory_controller rqt_joint_trajectory_controller

I got this error

Traceback (most recent call last):  
File "/opt/ros/noetic/lib/rqt_joint_trajectory_controller/rqt_joint_trajectory_controller", line 5, in <module>
    from rqt_gui.main import Main
File "/opt/ros/noetic/lib/python3/dist-packages/rqt_gui/main.py", line 40, in <module>
    from rospkg.rospack import RosPack
ImportError: No module named rospkg.rospack

How to solve this?

edit retag flag offensive close merge delete


I have the exact same problem now...

Avio gravatar image Avio  ( 2021-03-22 06:22:17 -0500 )edit

How to solve this?

Shivam gravatar image Shivam  ( 2021-10-10 16:04:05 -0500 )edit