You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason, conda installed packages are not found anymore inside the container.
First, I had issues that pip was not found during build. Now the build runs through, however I cannot start my service as Django is cannot be imported.
dockerfile:
FROM continuumio/miniconda3
ENV PYTHONUNBUFFERED=1
RUN mkdir /static
RUN apt update && apt install -y build-essential time libgraphviz-dev graphviz
RUN conda install -c conda-forge python==3.10 django==4 pip
COPY backend/requirements.txt requirements.txt
RUN pip install -r requirements.txt
COPY ./backend /backend
WORKDIR /backend/
I also changed the command in the docker-compose file accordingly, but nothing worked so far:
command: conda run -n base -c './manage.py runserver --database docker'
I am a bit puzzled, because the same setup ran smoothly since almost a year in another project, and I did not have to add such things. Did something change with the image?
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?
The text was updated successfully, but these errors were encountered:
For some reason, conda installed packages are not found anymore inside the container.
First, I had issues that pip was not found during build. Now the build runs through, however I cannot start my service as Django is cannot be imported.
dockerfile:
docker-compose.yml:
I tried various things like actually creating an environment other than base and added commands like this:
I also changed the command in the docker-compose file accordingly, but nothing worked so far:
I am a bit puzzled, because the same setup ran smoothly since almost a year in another project, and I did not have to add such things. Did something change with the image?
The text was updated successfully, but these errors were encountered: