[
https://issues.apache.org/jira/browse/AIRFLOW-2507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16487181#comment-16487181
]
Omar Marzouk commented on AIRFLOW-2507:
---------------------------------------
Thanks [~kaxilnaik] that solved it!
> No module named apiclient.discovery
> -----------------------------------
>
> Key: AIRFLOW-2507
> URL: https://issues.apache.org/jira/browse/AIRFLOW-2507
> Project: Apache Airflow
> Issue Type: Bug
> Reporter: Omar Marzouk
> Priority: Major
>
> Unable to import DataFlowPythonOperator:
>
> {code:java}
> webserver_1 | File "/usr/local/airflow/dags/train_classifier.py", line 4, in
> <module>
> webserver_1 | from airflow.contrib.operators.dataflow_operator import
> DataFlowPythonOperator
> webserver_1 | File
> "/usr/local/lib/python2.7/site-packages/airflow/contrib/operators/dataflow_operator.py",
> line 19, in <module>
> webserver_1 | from airflow.contrib.hooks.gcs_hook import
> GoogleCloudStorageHook
> webserver_1 | File
> "/usr/local/lib/python2.7/site-packages/airflow/contrib/hooks/gcs_hook.py",
> line 15, in <module>
> webserver_1 | from apiclient.discovery import build
> webserver_1 | ImportError: No module named apiclient.discovery
> {code}
> Environment:
> python 2.7.15
> project's requirements.txt:
> {code:java}
> sklearn
> numpy
> {code}
> running using Dockerfile here:
> https://github.com/omarzouk/docker-airflow/blob/master/Dockerfile
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)