Stephen Omondi Otieno Anyango created AIRFLOW-2580:
------------------------------------------------------

             Summary: Conflict with imported package
                 Key: AIRFLOW-2580
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2580
             Project: Apache Airflow
          Issue Type: Bug
          Components: webserver
    Affects Versions: 1.9.0
         Environment: Python 3.6, RHEL 7
            Reporter: Stephen Omondi Otieno Anyango


I have a package that I call within a DAG as 

from pdbecommon.utils import function_name

The function sources a file and adds the declared variables to os.environ. 
Nothing fancy.

When I run airflow webserver, I get the error:

Logfiles:. ../airflow/logs/ws-access.log .../airflow/logs/ws-error.log
=================================================================

Error: No module named airflow.[www.gunicorn_config|http://www.gunicorn_config/]

 

 

When I run in debug mode (airflow webserver --debug) it works.

When I remove the import above from the dag, and uninstall the package, it 
works. 

Is there a possibility of a conflict in dag import 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to