You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Kaxil Naik (JIRA)" <ji...@apache.org> on 2018/05/23 09:30:00 UTC

[jira] [Comment Edited] (AIRFLOW-2507) No module named apiclient.discovery

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

Kaxil Naik edited comment on AIRFLOW-2507 at 5/23/18 9:29 AM:
--------------------------------------------------------------

[~omarzouk] Trying running `pip install "apache-airflow[gcp_api]" `. This should solve the issue.


was (Author: kaxilnaik):
Trying running `pip install "apache-airflow[gcp_api]" `. This should solve the issue

> 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)