dbt-serverless icon indicating copy to clipboard operation
dbt-serverless copied to clipboard

DBT Image failed to build

Open marifse opened this issue 3 years ago • 2 comments

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.

marifse avatar Oct 03 '21 19:10 marifse

issue has been resolved by adding the jinjia2 dependency line in dockerfile.

RUN pip install Jinja2

marifse avatar Oct 22 '21 16:10 marifse

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

P13612 avatar Apr 15 '22 16:04 P13612