Skip to content

Adding Dockerfile as remote Python interpreter in pycharm #428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Hikari opened this issue Nov 27, 2024 · 1 comment
Open

Adding Dockerfile as remote Python interpreter in pycharm #428

Hikari opened this issue Nov 27, 2024 · 1 comment

Comments

@Hikari
Copy link
Contributor

Hikari commented Nov 27, 2024

I tried adding the python interpreter from the dockerfile to my pycharm project, to get rid of my 'Unresolved reference' errors.
When trying to add it, I am getting the following error:

Step 27/31 : COPY --chown=django:django --from=build /app/ /app/
Error response from daemon: unable to convert uid/gid chown string to host mapping: can't find gid for group django: no such group: django
Build completed

Unable to find an image for introspection

Is there a better way to get introspection work in pycharm?

@rochecompaan
Copy link
Contributor

I recommend you create a virtualenv on your host for introspection. The application docker image is not ideal for development. I would generally recommend you do everything inside containers, but I'm comfortable making an exception regarding the tooling required to support your IDE. I've tried vscode dev containers, PyCharm remote interpreter, custom-developed Dockerfiles, etc., and moving everything into containers is unnecessarily painful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants