You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "dud (JIRA)" <ji...@apache.org> on 2016/07/04 16:39:11 UTC
[jira] [Created] (AIRFLOW-312) Airflow is not able to load hooks
dud created AIRFLOW-312:
---------------------------
Summary: Airflow is not able to load hooks
Key: AIRFLOW-312
URL: https://issues.apache.org/jira/browse/AIRFLOW-312
Project: Apache Airflow
Issue Type: Bug
Affects Versions: Airflow 1.7.1.2, Airflow 1.7.1.3
Reporter: dud
Priority: Blocker
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=self.s3_conn_id)
{code}
I tried with 1.7.1.2 and it fails as well.
dud
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)