Skip to content
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

DBT Image failed to build #2

Open
marifse opened this issue Oct 3, 2021 · 2 comments
Open

DBT Image failed to build #2

marifse opened this issue Oct 3, 2021 · 2 comments

Comments

@marifse
Copy link

marifse commented Oct 3, 2021

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
Copy link
Author

marifse commented Oct 22, 2021

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

RUN pip install Jinja2

@P13612
Copy link

P13612 commented Apr 15, 2022

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

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