You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Chris Riccomini (JIRA)" <ji...@apache.org> on 2016/07/06 15:39:11 UTC

[jira] [Commented] (AIRFLOW-312) Airflow is not able to load hooks

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

Chris Riccomini commented on AIRFLOW-312:
-----------------------------------------

Can you try running off of master? I'm wondering if my PR in AIRFLOW-200 fixes this.

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