title: Why are my custom operators not being imported into my DAG (Airflow)?
body: <p>I am creating an ETL pipeline using <code>Apache Airflow</code> and I am trying to create generalized custom operators. There seems to be no problem with the operators but they are not being imported into my <code>DAG</code> python file.</p>
  
  <p>This is my directory structure.</p>
  
  <pre><code>my_project\
    .env
    Pipfile
    Pipfile.lock
    .gitignore
    .venv\
    airflow\
      dags\
      logs\
      plugins\
        __init__.py
        helpers\
        operators\
          __init__.py
          data_quality.py
          load_fact.py
          load_dimension.py
          stage_redshift
  </code></pre>
  
  <p>This is what is present in the <code>__init__.py</code> file under <code>plugins</code> folder.</p>
  
  <pre><code>from __future__ import division, absolute_import, print_function
  
  from airflow.plugins_manager import AirflowPlugin
  
  import airflow.plugins.operators as operators
  import airflow.plugins.helpers as helpers
  
  # Defining the plugin class
  class SparkifyPlugin(AirflowPlugin):
      name = "sparkify_plugin"
      operators = [
          operators.StageToRedshiftOperator,
          operators.LoadFactOperator,
          operators.LoadDimensionOperator,
          operators.DataQualityOperator
      ]
      helpers = [
          helpers.SqlQueries
      ]
  </code></pre>
  
  <p>I'm importing these operators into my <code>DAG</code> file as following</p>
  
  <pre><code>from airflow.operators.sparkify_plugin import (StageToRedshiftOperator,
                                 LoadFactOperator,
                                 LoadDimensionOperator,
                                 DataQualityOperator)
  </code></pre>
  
  <p>I am getting an error as follows</p>
  
  <pre><code>ERROR - Failed to import plugin /Users/user_name/Documents/My_Mac/Projects/sparkify_etl_sql_to_sql/airflow/plugins/operators/stage_redshift.py
  </code></pre>
  
  <p>Can you help me understand why this is happening?</p>