You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "jack (JIRA)" <ji...@apache.org> on 2018/11/01 13:07:00 UTC
[jira] [Comment Edited] (AIRFLOW-2941) example_http_operator.py
Python 3.7 invalid syntax
[ https://issues.apache.org/jira/browse/AIRFLOW-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16671594#comment-16671594 ]
jack edited comment on AIRFLOW-2941 at 11/1/18 1:06 PM:
--------------------------------------------------------
Should link this Jira to PR: [https://github.com/apache/incubator-airflow/pull/3723]
was (Author: jackjack10):
Should like this Jira to PR: [https://github.com/apache/incubator-airflow/pull/3723]
> example_http_operator.py Python 3.7 invalid syntax
> --------------------------------------------------
>
> Key: AIRFLOW-2941
> URL: https://issues.apache.org/jira/browse/AIRFLOW-2941
> Project: Apache Airflow
> Issue Type: Bug
> Reporter: Jon Davies
> Priority: Major
>
> example_http_operator.py fails on Python 3.7 with:
> {code:java}
> [2018-08-23 08:45:26,827] {models.py:365} ERROR - Failed to import: /usr/local/lib/python3.7/site-packages/airflow/example_dags/example_http_operator.py
> Traceback (most recent call last):
> File "/usr/local/lib/python3.7/site-packages/airflow/models.py", line 362, in process_file
> m = imp.load_source(mod_name, filepath)
> File "/usr/local/lib/python3.7/imp.py", line 172, in load_source
> module = _load(spec)
> File "<frozen importlib._bootstrap>", line 696, in _load
> File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 728, in exec_module
> File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
> File "/usr/local/lib/python3.7/site-packages/airflow/example_dags/example_http_operator.py", line 27, in <module>
> from airflow.operators.http_operator import SimpleHttpOperator
> File "/usr/local/lib/python3.7/site-packages/airflow/operators/http_operator.py", line 21, in <module>
> from airflow.hooks.http_hook import HttpHook
> File "/usr/local/lib/python3.7/site-packages/airflow/hooks/http_hook.py", line 23, in <module>
> import tenacity
> File "/usr/local/lib/python3.7/site-packages/tenacity/__init__.py", line 352
> from tenacity.async import AsyncRetrying
> ^
> SyntaxError: invalid syntax
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)