airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dud (JIRA)" <>
Subject [jira] [Created] (AIRFLOW-312) Airflow is not able to load hooks
Date Mon, 04 Jul 2016 16:39:11 GMT
dud created AIRFLOW-312:

             Summary: Airflow is not able to load hooks
                 Key: AIRFLOW-312
             Project: Apache Airflow
          Issue Type: Bug
    Affects Versions: Airflow, Airflow
            Reporter: dud
            Priority: Blocker


I installed latest version of Airflow via pip and I noticed that it is now unable to use any
hook :

pip install --user -U pip && pip install --user -U airflow

python /home/airflow/ 
[2016-07-04 16:30:31,973] {} INFO - Using executor SequentialExecutor
[2016-07-04 16:30:32,044] {} INFO - Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
[2016-07-04 16:30:32,064] {} INFO - Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
Traceback (most recent call last):
  File "/home/airflow/", line 2, in <module>
    hook = hooks.S3Hook(s3_conn_id=self.s3_conn_id)
AttributeError: 'module' object has no attribute 'S3Hook'

Here is the content of this script :
from airflow import hooks
hook = hooks.S3Hook(s3_conn_id=self.s3_conn_id)

I tried with and it fails as well.

This message was sent by Atlassian JIRA

View raw message