Configure remote docker python interpreter for ROS in PyCharm
Answered
I have access to a Linux box with a ROS docker container. I develop from a separate computer so I've configured PyCharm to use the remote docker container as my python interpreter (via the "docker" option, not the "docker compose" option). While the connection to the interpreter is successful, ROS modules like rospy are not accessible (PyCharm complains that the module is not found).
I can import rospy just fine when I try it from inside the container (proving that it works), but PyCharm doesn't seem to recognize it. PYTHONPATH is correctly configured as well in the container, but the interpreter on PyCharm doesn't seem to be picking up on the ROS dist-packages.
How can I fix this?
Thank you!
Please sign in to leave a comment.
Did you use the workaround from https://youtrack.jetbrains.com/issue/PY-33489?
Have you tried File | Invalidate Caches...?