Tyson Chavarie

07/06/2023, 6:40 PM
I'm trying to implement a dbt Cloud Credentials block but I'm getting an error. My code:
Copy code
from import DbtCloudCredentials

dbt_cloud_credentials = DbtCloudCredentials.load("dbt-cloud")
here is the error I get:
Copy code
Traceback (most recent call last):
  File "/Users/tysonchavarie/Documents/code/livevox-prefect2/", line 1, in <module>
    from import DbtCloudCredentials
  File "/Users/tysonchavarie/Documents/code/livevox-prefect2/lib/python3.9/site-packages/prefect_dbt/", line 4, in <module>
    from .cli import (  # noqa
  File "/Users/tysonchavarie/Documents/code/livevox-prefect2/lib/python3.9/site-packages/prefect_dbt/cli/", line 1, in <module>
    from .credentials import DbtCliProfile  # noqa
  File "/Users/tysonchavarie/Documents/code/livevox-prefect2/lib/python3.9/site-packages/prefect_dbt/cli/", line 7, in <module>
    from prefect_dbt.cli.configs import GlobalConfigs, TargetConfigs
  File "/Users/tysonchavarie/Documents/code/livevox-prefect2/lib/python3.9/site-packages/prefect_dbt/cli/configs/", line 9, in <module>
    from .bigquery import BigQueryTargetConfigs  # noqa
  File "/Users/tysonchavarie/Documents/code/livevox-prefect2/lib/python3.9/site-packages/prefect_dbt/cli/configs/", line 21, in <module>
    class BigQueryTargetConfigs(BaseTargetConfigs):
  File "pydantic/", line 197, in pydantic.main.ModelMetaclass.__new__
  File "pydantic/", line 506, in pydantic.fields.ModelField.infer
  File "pydantic/", line 436, in pydantic.fields.ModelField.__init__
  File "pydantic/", line 552, in pydantic.fields.ModelField.prepare
  File "pydantic/", line 668, in pydantic.fields.ModelField._type_analysis
  File "/Users/tysonchavarie/opt/miniconda3/lib/python3.9/", line 852, in __subclasscheck__
    return issubclass(cls, self.__origin__)
TypeError: issubclass() arg 1 must be a class
actually I think I fixed it by upgrading from pydantic 1.10.7 to 1.10.11...


07/10/2023, 7:18 PM
huh, weird! let us know if any issue persists