Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR - No module named 'dbt_cloud_plugin.sensors.dbt_cloud_run_sensor' #4

Open
t-fajar opened this issue Aug 19, 2020 · 0 comments
Open

Comments

@t-fajar
Copy link

t-fajar commented Aug 19, 2020

Hello @dwallace0723 thanks a lot for the plugin.

When I imported the plugin and I retarted the Airflow Scheduler/Webserver, I got:

"ERROR - No module named 'dbt_cloud_plugin.sensors.dbt_cloud_run_sensor'"

The issue was in the name of the file for sensor plugin into "init.py" file. Line 4.

from dbt_cloud_plugin.sensors.dbt_cloud_run_sensor import DbtCloudRunSensor

And the name of the file is: github.com/dwallace0723/dbt-cloud-plugin/blob/master/dbt_cloud_plugin/sensors/dbt_cloud_job_sensor.py

So, I had to change this line to:

dbt_cloud_run_sensor to dbt_cloud_job_sensor

from dbt_cloud_plugin.sensors.dbt_cloud_job_sensor import DbtCloudRunSensor

After this fix it worked.

Maybe this change could be add to the code. It would be more beginner-friendly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant