Getting this `DagsterDbtCliFatalRuntimeError` , fo...
# integration-dbt
j
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
How are you invoking the dbt resource, and how are you defining it?
j
dbt_assets = load_assets_from_dbt_project(
project_dir=DBT_PROJECT_PATH, profiles_dir=DBT_PROFILES
)
r
those are your assets — your resource definition is in your
Definitions
object
j
"dbt": DbtCliClientResource(
project_dir=DBT_PROJECT_PATH,
profile_dir=DBT_PROFILES
)
r
You’re missing an
s
Copy code
DbtCliClientResource(
        project_dir=DBT_PROJECT_PATH,
        profiles_dir=DBT_PROFILES
    )
👍 1
j
And then in definitions using
resources=resources_by_deployment_name[deployment_name]
Thank you!