You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/04/04 06:40:41 UTC

[jira] [Commented] (AIRFLOW-1030) HttpHook error when creating HttpSensor

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

ASF subversion and git services commented on AIRFLOW-1030:
----------------------------------------------------------

Commit f2dae7d15623e2534e7c0dab3b5a7e02d4cff81d in incubator-airflow's branch refs/heads/master from pdambrauskas
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=f2dae7d ]

[AIRFLOW-1030][AIRFLOW-1] Fix hook import for HttpSensor

Closes #2180 from
pdambrauskas/fix/http_hook_import


> HttpHook error when creating HttpSensor
> ---------------------------------------
>
>                 Key: AIRFLOW-1030
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1030
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: core
>    Affects Versions: Airflow 1.8
>         Environment: python3
>            Reporter: Paulius Dambrauskas
>            Assignee: Paulius Dambrauskas
>
> Task:
> {code}
> sensor = HttpSensor(
>     task_id='http_sensor_check',
>     http_conn_id='http_default',
>     endpoint='',
>     params={},
>     poke_interval=5,
>     dag=dag
> )
> {code}
> Exception
> {code}
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.5/dist-packages/airflow-1.9.0.dev0+apache.incubating-py3.5.egg/airflow/models.py", line 268, in process_file
>     m = imp.load_source(mod_name, filepath)
>   File "/usr/lib/python3.5/imp.py", line 172, in load_source
>     module = _load(spec)
>   File "<frozen importlib._bootstrap>", line 693, in _load
>   File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 665, in exec_module
>   File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
>   File "/home/paulius/airflow/dags/cpg_4.py", line 43, in <module>
>     dag=dag)
>   File "/usr/local/lib/python3.5/dist-packages/airflow-1.9.0.dev0+apache.incubating-py3.5.egg/airflow/utils/decorators.py", line 86, in wrapper
>     result = func(*args, **kwargs)
>   File "/usr/local/lib/python3.5/dist-packages/airflow-1.9.0.dev0+apache.incubating-py3.5.egg/airflow/operators/sensors.py", line 663, in __init__
>     self.hook = hooks.http_hook.HttpHook(method='GET', http_conn_id=http_conn_id)
>   File "/usr/local/lib/python3.5/dist-packages/airflow-1.9.0.dev0+apache.incubating-py3.5.egg/airflow/utils/helpers.py", line 436, in __getattr__
>     raise AttributeError
> AttributeError
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)