Charles Leung
01/14/2021, 3:08 PMZanie
Charles Leung
01/14/2021, 4:23 PMZanie
from google.cloud import bigquery
File "/usr/local/lib/python2.7/dist-packages/google/cloud/bigquery/__init__.py", line 35, in <module>
from google.cloud.bigquery.client import Client
File "/usr/local/lib/python2.7/dist-packages/google/cloud/bigquery/client.py", line 58, in <module>
from google.cloud.bigquery import _pandas_helpers
File "/usr/local/lib/python2.7/dist-packages/google/cloud/bigquery/_pandas_helpers.py", line 40, in <module>
from google.cloud.bigquery import schema
File "/usr/local/lib/python2.7/dist-packages/google/cloud/bigquery/schema.py", line 17, in <module>
from six.moves import collections_abc
ImportError: cannot import name collections_abc
Charles Leung
01/14/2021, 8:08 PMZanie
from
which means it should expose the original import error as wellexcept ImportError as err:
raise ImportError(
'Using `prefect.tasks.gcp` requires Prefect to be installed with the "gcp" extra.'
) from err
from
is the typical pattern here.