airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Riccomini (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (AIRFLOW-312) Airflow is not able to load hooks
Date Wed, 06 Jul 2016 15:40:10 GMT

     [ https://issues.apache.org/jira/browse/AIRFLOW-312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chris Riccomini closed AIRFLOW-312.
-----------------------------------
    Resolution: Not A Problem

> Airflow is not able to load hooks
> ---------------------------------
>
>                 Key: AIRFLOW-312
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-312
>             Project: Apache Airflow
>          Issue Type: Improvement
>    Affects Versions: Airflow 1.7.1.2, Airflow 1.7.1.3
>            Reporter: dud
>
> Hello
> I installed latest version of Airflow via pip and I noticed that it is now unable to
use any hook :
> {code}
> pip install --user -U pip && pip install --user -U airflow
> python /home/airflow/hooks.py 
> [2016-07-04 16:30:31,973] {__init__.py:36} INFO - Using executor SequentialExecutor
> [2016-07-04 16:30:32,044] {driver.py:120} INFO - Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
> [2016-07-04 16:30:32,064] {driver.py:120} INFO - Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
> Traceback (most recent call last):
>   File "/home/airflow/hooks.py", line 2, in <module>
>     hook = hooks.S3Hook(s3_conn_id=self.s3_conn_id)
> AttributeError: 'module' object has no attribute 'S3Hook'
> {code}
> Here is the content of this script :
> {code}
> from airflow import hooks
> hook = hooks.S3Hook(s3_conn_id="test value")
> {code}
> Installing boto solves the issue.
> Not sure if there isn't a configuration issue on my system, however maybe boto should
be added as a dependency ?
> dud



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message