Closed mac137 closed 2 years ago
Hi @maciej-3, thanks for your feedback. Sorry for my late responding. I had missed the notification.
The Dockerfile for this project is structured based on and inherits from https://github.com/fcwu/docker-ubuntu-vnc-desktop. I think the cause of this problem is that the startup.sh specified in the entrypoint is not executed.
If there is a PyCharm setting that allows you to run a specific script when Docker is started, could you try that?
According to the PyCharm documentation, the Community Edition does not support remote development, so I may not be able to follow up in detail. https://www.jetbrains.com/help/pycharm/faq-about-remote-development.html#community
Thanks @Tiryoh for your answer. I think there is a workaround using docker-compose as described here: https://youtrack.jetbrains.com/issue/PY-22909?_ga=2.214133204.2141338765.1646771596-890459913.1642868424&_gac=1.254324986.1645988977.Cj0KCQiA3-yQBhD3ARIsAHuHT65YbWqnHwALM__71tJaiYQzepJVePSwBDvh3BaO-YPB7WMAi2K1ROMaAlCREALw_wcB#comment=27-1963873
Hello! Thanks for the wonderful Dockerfiles.
I was just wondering what I can do to make the Python interpreter from these docker images work as a remote Python interpreter in PyCharm?
When I just try to run a python file
main.py
, let's say this one:I get this error in PyCharm's console:
However, when I manually append the missing python packages from ros:
I get this error:
The same error occurs when I append
RUN bash -c "source /opt/ros/foxy/setup.bash"
to theDockerfile
.it is clear that the PyCharm's interpreter is not properly sourced. Any idea how to fix this?