Exercise6.3.1: ImportError: No modul named rospkg

sudo apt-get install python-rospkg

unfortunately,it report "Package python-rospkg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
python3-rospkg
"

but i use “sudo apt-get install python3-rospkg”, it report the same error: “no module named rospkg”.

I tried deleting the project, redownloading but getting the same error

would you please post your python code here?

I’m study the unit6 of the path planning basic, I didn’t write any code, just ran “roslaunch unit6 open_street_map_planner.launch” according to the exercise6.3.1 in the notebook and then reported this error.

I guess it’s a bug with the project itself.
because i tried deleting the project, redownloading but getting the same error

This issue is addressed here:

Oh, thank you I will try it!

Hello!
I am having the same problem and nothing is working as told above, is your problem solved???

@misbahsuhail123

Please refer to this post and use this link to copy the project mentioned.

Ok. thanks for reply.

As a note I just added instructions on how to install the python3-rospkg package.

Cheers,

Roberto

1 Like

Thank you. it is done by following the instructions.

This topic was automatically closed after 22 hours. New replies are no longer allowed.