why do I get ImportError: No module named rospkg, when I run my code
I am using ros noetic on a rasberry pi running ubuntu desktop 20.04 and I do not have anaconda installed. my code use to work untill I got this bug I am somewhat new to ros
Asked by bribri123 on 2021-07-17 21:18:01 UTC
Answers
Make sure you have the right shebang (which points to the Python3 executable) in your ROS scripts
Asked by electrophod on 2021-07-18 04:12:14 UTC
Comments
it worked thank you so much
Asked by bribri123 on 2021-07-18 10:14:44 UTC
Comments
I think it may be because i am using python2 and i have my packages for 3
Asked by bribri123 on 2021-07-17 22:50:54 UTC
Noetic uses Python 3, so unless you changed something yourself, it should not be using Python 3.
Asked by gvdhoorn on 2021-07-18 01:28:21 UTC