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

[CT-654] Can not install DBT with airflow because of MarkupSafe dependency #5258

Closed
1 task done
Kiollpt opened this issue May 17, 2022 · 1 comment
Closed
1 task done
Labels
bug Something isn't working dependencies Changes to the version of dbt dependencies duplicate This issue or pull request already exists

Comments

@Kiollpt
Copy link

Kiollpt commented May 17, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I tried to use pip install -r requirements.txt -c constraints.txt. It keeps failing to install.

My constrains.txt looks like below
MarkupSafe>=0.23,<=2.1
apache-airflow==2.1.1

Cannot install -r requirements.txt (line 32), apache-airflow==2.1.1 and dbt-core because these package versions have conflicting dependencies.
The conflict is caused by:
dbt-core 1.0.4 depends on MarkupSafe==2.0.1
jinja2 2.11.3 depends on MarkupSafe>=0.23
apache-airflow 2.1.1 depends on markupsafe<2.0 and >=1.1.1
The user requested (constraint) markupsafe<=2.1,>=0.23

@Kiollpt Kiollpt added bug Something isn't working triage labels May 17, 2022
@github-actions github-actions bot changed the title [Bug] can not install DBT with airflow because of MarkupSafe dependency [CT-654] [Bug] can not install DBT with airflow because of MarkupSafe dependency May 17, 2022
@Kiollpt Kiollpt changed the title [CT-654] [Bug] can not install DBT with airflow because of MarkupSafe dependency [CT-654] Can not install DBT with airflow because of MarkupSafe dependency May 17, 2022
@jtcohen6 jtcohen6 added duplicate This issue or pull request already exists dependencies Changes to the version of dbt dependencies and removed triage labels May 17, 2022
@jtcohen6
Copy link
Contributor

jtcohen6 commented May 17, 2022

Hey @Kiollpt, try upgrading to dbt-core==1.0.5!

We made the MarkupSafe pin more flexible, including older versions, about a month ago: #5039. We backported that change for inclusion in both v1.0.5 + v1.1.0 and it will be included in v1.1.1.

I'm going to close this issue as I believe it's been resolved by a newer version of dbt-core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Changes to the version of dbt dependencies duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants