dbt-serverless
dbt-serverless copied to clipboard
DBT Image failed to build
Hi,
When i am going to run your terraform code, the DBT image is going to be failed by giving the below error! Could you please help to resolve it.
"dbt No module named 'jinja2._compat'"
The above error comes when building image using dockerfile at last step of running "dbt deps"
Thanks.
issue has been resolved by adding the jinjia2 dependency line in dockerfile.
RUN pip install Jinja2
This does not make any difference in my case. I put your line under requirements.txt but still.
FROM python:3.7.4-slim-stretch
MAINTAINER nicor88
COPY requirements.txt . RUN pip install -r requirements.txt RUN pip install Jinja2
COPY config/profiles.dist.yml /root/.dbt/profiles.yml
WORKDIR /dbt
COPY dbt_project.yml /dbt/dbt_project.yml COPY macros /dbt/macros COPY models /dbt/models
COPY tests /dbt/tests
install dbt deps
RUN dbt deps