Airflow: BigQueryHook broken by dependency google-cloud-bigquery-datatransfer

Created on 22 Sep 2020  Â·  3Comments  Â·  Source: apache/airflow

Apache Airflow version: 1.10.10

What happened:

    from airflow.providers.google.cloud.hooks.bigquery import BigQueryHook
../lib/python3.6/site-packages/airflow/providers/google/cloud/hooks/bigquery.py:30: in <module>
    from google.cloud.bigquery import (
E   ImportError: cannot import name ‘DEFAULT_RETRY’

A new release of google-cloud-bigquery-datatransfer broke apache-airflow-backport-providers-google==2020.6.24.

To fix, pin google-cloud-bigquery-datatransfer==1.1.1

providers bug Google

Most helpful comment

Can you also provide an error message? This can help Google index this workaround and help others come up with a real solution.

All 3 comments

@darwinyip would you like to open a PR? Related to #10014

Can you also provide an error message? This can help Google index this workaround and help others come up with a real solution.

Was this page helpful?
0 / 5 - 0 ratings