C2W4 - Programming Assignment: Import error

I’m having a persistent issues from week 3 great expectation lab, my upload from the terminal to the dag s3 bucket do have import issues. Below is the pictures of the import error, please i need help with this

Hello @Adaramola_Samson,

Could you check this post someone had a similar error importing DAG’s. Perhaps in Exercise 4 when you declare the dependencies you use the task names, not the method names (e.g. is_deployable_task , not _is_deployable). Hope it helps

I didn’t make that mistake, however, I’m still battling the import error, I don’t know where I got it wrong.
Pls would u like to have a look at my code?

Hello @Adaramola_Samson,

Sure I can help, could you check in exercise 1 you added the variable key and value of raw data bucket. If you could share the import error would help. Thank you

Hello @Adaramola_Samson,

No need to share your code just the import errors of the DAG’s to see them. It will be helpful, thanks

@Adaramola_Samson click on the arrows to see which lines of code please. Hope it helps

Hello @Adaramola_Samson
Click the three arrows so I can see the errors please. Thank you

Hello @Adaramola_Samson,

It looks like there is a bug in your DAG’s. In line 36 you use vendor names as variables (vendor_name = alitran) instead you need to add add quotation marks in the template:

vendor_name = "{{ vendor_name }}"

This is the error you are getting:

I resolved this, but it gave me this error

Hello @Adaramola_Samson,

I could reproduce the error and there is another bug in line 48. You have data_assest_name instead of data_asset_name. Could you fix that and try again:

Thanks,i appreciate your help

1 Like