https://dagster.io/ logo
Title
j

Jermaine Sayson

05/08/2023, 1:44 PM
Hi All, I am trying to integrate dbt to dagster but was unsuccessful. I was only following the docs but I always encounter this error.
r

rex

05/08/2023, 3:09 PM
Could you post the code that you’re using? From the error message, it looks like you’re missing the dbt resource in your
Definitions
object.
j

Jermaine Sayson

05/08/2023, 4:45 PM
I've put my definitions here.
here's my assets code
r

rex

05/08/2023, 4:51 PM
how are you invoking the UI? It looks like you’ve set up your Dagster code properly, but in the error message that you’ve displayed, it looks like it’s importing from
from .repository import my_dagster_project
. If you load the file with your
Definitions
directly, do you get the same error message? e.g., try:
dagster dev -f my_file.py
Here are the docs: https://docs.dagster.io/concepts/code-locations#local-development
j

Jermaine Sayson

05/09/2023, 10:26 AM
hi rex. I remove the from .repository line and it worked. Thank you!
Hi @rex, how can I create a redshift upstream asset?