Why PyCharm can't resolve reference for a remote Docker interpreter?
Answered
Hi, I'm PyCharm 2017.1.4 Pro and macOS 10.11.6.
PyCharm told me "Unresolved reference 'django'. I did install and it's included in my Docker image. I'm able to run my Django project via a remote Docker interpreter. Any idea how to make it work? Otherwise, how can I use code complete? Thanks.

Please sign in to leave a comment.
For newcomers: The root issue that needed a workaround was fixed in the latest build (5th October 2022). Update your Pycharm and everything should work again. What a relief!
why am I still facing this issu?
Hello @Eng Amir Bu,
Please submit a report at https://youtrack.jetbrains.com/issues/PY
with a dockerfile, docker-compose.yml attached to reproduce the issue.
Have you tried to configure the interpreter from scratch after the update?
I faced this issue, and the only effective solution in my case was to completely reinstall PyCharm, including a removal of caches and settings prior to reinstallation.
Hello everyone,
I recently encountered the same issue described here, where packages in the Docker Compose remote interpreter were installed and functional, but PyCharm wasn't recognizing them, causing "Unresolved reference" warnings.
After diving deep into the PyCharm logs, I found an error related to a path that wasn't shared with Docker. The specific error was:
Error response from daemon: Mounts denied: The path /tmp/remote_sync... is not shared from the host and is not known to Docker.This led me to investigate Docker's file sharing settings. Here's the solution that worked for me:
Solution:
PreferencesorSettings.Resourcestab.File Sharingor a similar menu./tmpdirectory to the list of shared directories.After adjusting these settings, PyCharm correctly recognized all the packages installed in the Docker remote interpreter.
I recommend checking PyCharm's logs if you encounter similar issues, as they can provide valuable insights.
Hope this helps someone!