https://dagster.io/ logo
#integration-dbt
Title
# integration-dbt
j

John Mikkelson

06/27/2023, 4:10 PM
Getting this
DagsterDbtCliFatalRuntimeError
, for some reason when materializing dbt assets it is running
dbt run
with the option
--profile-dir
instead of
--profiles-dir
does anyone know how to change this?
🤖 1
r

rex

06/27/2023, 4:13 PM
How are you invoking the dbt resource, and how are you defining it?
j

John Mikkelson

06/27/2023, 4:13 PM
dbt_assets = load_assets_from_dbt_project(
project_dir=DBT_PROJECT_PATH, profiles_dir=DBT_PROFILES
)
r

rex

06/27/2023, 4:15 PM
those are your assets — your resource definition is in your
Definitions
object
j

John Mikkelson

06/27/2023, 4:16 PM
"dbt": DbtCliClientResource(
project_dir=DBT_PROJECT_PATH,
profile_dir=DBT_PROFILES
)
r

rex

06/27/2023, 4:16 PM
You’re missing an
s
Copy code
DbtCliClientResource(
        project_dir=DBT_PROJECT_PATH,
        profiles_dir=DBT_PROFILES
    )
👍 1
j

John Mikkelson

06/27/2023, 4:16 PM
And then in definitions using
resources=resources_by_deployment_name[deployment_name]
Thank you!
3 Views