Import "rospkg" could not be resolved
Hello,
I am using VSCode
as IDE for my ROS projects. Everything works well, but when I try to import rospkg
, VSCode
underlines it with a yellow line and shows warning message: "Import "rospkg" could not be resolved". When I try to run node with this import, rospkg
works fine, so problem is only with syntax in VSCode
.
Do you know how to solve it?
Hello @Ivan4815162342,
This is a duplicated question of : #q382798, #q256565
I am closing this question. If you think that you couldn't find a solution feel free to re-open this.
I have the paths mentioned in the first link, but that doesn't help. The second link is about the
C++
library that is not my case. I should also say that other python imports likerospy
,roslaunch
,rosnode
are not underlined.