Skip to content

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

Description

@t-fajar

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions