[ 
https://issues.apache.org/jira/browse/AIRFLOW-1154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16524150#comment-16524150
 ] 

Tim Swast commented on AIRFLOW-1154:
------------------------------------

This issue is a debugging question from >1 year ago. It can probably be closed.

> Always getting Please import from '<module 'airflow....' from 
> --------------------------------------------------------------
>
>                 Key: AIRFLOW-1154
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1154
>             Project: Apache Airflow
>          Issue Type: Bug
>            Reporter: Arthur Zubarev
>            Priority: Minor
>
> Un Ubuntu 16 LTS 
> No matter how I import the module I am getting messages like
> /home/.../.local/lib/python2.7/site-packages/airflow/utils/helpers.py:406: 
> DeprecationWarning: Importing PythonOperator directly from <module 
> 'airflow.operators' from 
> '/home/.../.local/lib/python2.7/site-packages/airflow/operators/__init__.pyc'>
>  has been deprecated. Please import from '<module 'airflow.operators' from 
> '/home/.../.local/lib/python2.7/site-packages/airflow/operators/__init__.pyc'>.[operator_module]'
>  instead. Support for direct imports will be dropped entirely in Airflow 2.0.
>   DeprecationWarning).
> The above is happening even when imported as 
> 'from airflow.operators.python_operator import PythonOperator'



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

Reply via email to