question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installing dbt on GCP Cloud Composer image composer-1.14.0-airflow-1.10.14 fails with requests package error

See original GitHub issue

Describe the bug

Installing dbt==0.19.0 on Cloud Composer image composer-1.14.0-airflow-1.10.14 fails with:

ERROR: dbt-core 0.19.0 has requirement requests<2.24.0,>=2.18.0, but you’ll have requests 2.25.0 which is incompatible. ERROR: snowflake-connector-python 2.3.6 has requirement requests<2.24.0, but you’ll have requests 2.25.0 which is incompatible.

Steps To Reproduce

Create a GCP cloud composer instance (https://cloud.google.com/composer) using the image composer-1.14.0-airflow-1.10.14, navigate to the PYPI Packages tab and attempt to install dbt with version ==0.19.0

Expected behavior

should install properly without errors

Screenshots and log output

If applicable, add screenshots or log output to help explain your problem.

System information

Which database are you using dbt with? Bigquery

The operating system you’re using:

The output of python --version: Cloud Composer runs 3.6.6 by default: https://cloud.google.com/composer/docs/concepts/python-version

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jtcohen6commented, Feb 2, 2021

@svirs The reason this doesn’t work is exactly as the error message states: dbt-snowflake==0.19.0 depends on snowflake-connector-python==2.3.6, which requires requests<2.24.0,>=2.18.0, whereas composer-1.14.0-airflow-1.10.14 requires requests==2.25.0.

I know that the snowflake-connector-python team have been working to remove upper bounds on popular packages, and 2.3.8 vendored pieces of requests and bumped the requirement to 'requests<3.0.0'. In the next minor version of dbt, we’ll bump the snowflake-connector-python pin to the latest available stable release, and that should ease installation for everyone.

~In the meantime, since you’re using dbt with BigQuery, you should be able to get around this by installing dbt-bigquery in particular:~

pip install dbt-bigquery==0.19.0
Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting PyPI package installation | Cloud Composer
When a package installation fails, pip reports the detailed error message. ... Select All logs > Composer logs > Builds > Worker &...
Read more >
dbt and google cloud composer PyPI dependency issues
I am trying install the most recent version of dbt ( 1.0.4 for core and 1.0.0 for the BigQuery plugin). Because cloud composter...
Read more >
Efficiently Debug Google Cloud Composer PyPi Package ...
Cloud Composer is Google's managed service for Apache Airflow. ... Efficiently Debug Google Cloud Composer PyPi Package Installation Issues.
Read more >
How to run dbt on Cloud Composer and authenticate the ...
Hi, I would like to run dbt through Cloud Composer (which is the GCP's managed service for Apache Airflow) and I am struggling...
Read more >
Cloud Composer 2.0.17 installation PyPI failing with user ...
UPDATE operation on this environment failed Just now with the following error message: Failed to install pypi packages.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found