rospy error in VS Code

asked 2022-04-08 10:19:18 -0600

anbvy gravatar image

Hello. I'm trying to write a subscriber program with Python. When i try to import rospy VSCode shows the error: Import "rospy" could not be resolved.

I found #q385096 and #q382798. In the second one, suggested solution is to edit the settings.json file. I changed the file in the ~/.config/Code/User and created another in the workspace(in .vscode). But nothing changed. Is there any alternative solution for this or am i doing something wrong? I'm using ROS noetic.

Thanks in advance.

edit retag flag offensive close merge delete