Mike Needham
12/07/2022, 10:16 AMrex
12/07/2022, 1:21 PMload_assets_from_dbt_project
?
• How are you invoking dagit?Mike Needham
12/07/2022, 1:31 PMrex
12/07/2022, 2:06 PMMike Needham
12/07/2022, 3:09 PMrex
12/07/2022, 3:13 PMfrom myproject_dagster import load_assets_from_dbt_project
The tutorial says from dagster_dbt import load_assets_from_dbt_project
Mike Needham
12/07/2022, 3:22 PMrex
12/07/2022, 7:05 PMMike Needham
12/07/2022, 8:27 PMrex
12/07/2022, 8:47 PMMike Needham
12/07/2022, 8:48 PMrex
12/07/2022, 8:52 PM/config
directory of your project.
From what you posted above:
DBT_PROFILES = file_relative_path(__file__, ".../../dbt-project/project1/")
This should probably be
DBT_PROFILES = file_relative_path(__file__, ".../../dbt-project/project1/config")
The guide is here: https://docs.dagster.io/integrations/dbt/using-dbt-with-dagster/part-two#step-1-load-the-dbt-models-as-assetsMike Needham
12/07/2022, 9:10 PMrex
12/07/2022, 9:11 PMprofiles.yml
?Mike Needham
12/07/2022, 9:12 PMrex
12/07/2022, 9:13 PMDBT_PROFILES = file_relative_path(__file__, ".../../dbt-project/project1/.dbt")
?Mike Needham
12/07/2022, 9:13 PM