https://dagster.io/ logo
#dagster-support
Title
# dagster-support
m

Mycchaka Kleinbort

02/01/2023, 12:40 PM
Hi all, I'm having this error in Dagster (when I try to load my code)
dagster._core.errors.DagsterInvalidDefinitionError: Input asset '["my_asset_apple"]' for asset '["myasset_bannana"]' is not produced by any of the provided asset ops and is not one of the provided sources
But I do have the sofware defined asset
myasset_apple
defined in another .py file, and I do have downstream assets depending on it. Is the issue that these two assets are in different .py files?
j

jamie

02/01/2023, 5:03 PM
Hi @Mycchaka Kleinbort how are you running dagit? do you have a Definitions object created with all of your assets passed to it?
c

Charlie Bini

02/03/2023, 10:07 PM
@jamie @Mycchaka Kleinbort I'm having the same issue
I do have a Definitions object with all of the assets passed
does key_prefix matter? do you need to do something special there?
j

jamie

02/03/2023, 10:49 PM
key_prefix does matter. you may need to specify the input to your downstream asset via an AssetIn if the downstream asset doesn’t share a key prefix
👍 1
c

Charlie Bini

02/04/2023, 5:22 PM
thank you! thought I was going crazy
27 Views