I'm trying to use a resource within a sensor just ...
# ask-community
p
I'm trying to use a resource within a sensor just like in the docs here, but I'm getting
dagster._core.errors.DagsterImportError: Encountered ImportError: cannot import name 'Definitions' from 'dagster'
Is
Definitions
not available in dagster version 0.15.8?
s
that's correct. it was introduced post-Dagster-1.0
p
Is there a workaround?
s
You might be able to use
build_resources
inside your sensor: https://docs.dagster.io/_apidocs/resources#dagster.build_resources
❤️ 1