airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lai Qiang Ding (JIRA)" <>
Subject [jira] [Created] (AIRFLOW-450) example dag "example_http_operator" compatible issue with Python 3
Date Sat, 20 Aug 2016 12:50:20 GMT
Lai Qiang Ding created AIRFLOW-450:

             Summary: example dag "example_http_operator" compatible issue with Python 3
                 Key: AIRFLOW-450
             Project: Apache Airflow
          Issue Type: Bug
          Components: docs
    Affects Versions: Airflow 1.7.1
            Reporter: Lai Qiang Ding
            Assignee: Lai Qiang Ding
            Priority: Minor

it reports error when running the example "example_http_operator" under python3

lding-mbp:~ wjo1212$ airflow run example_http_operator http_sensor_check 2016-08-04

[2016-08-20 20:44:36,687] {} INFO - Using executor SequentialExecutor
Sending to executor.
[2016-08-20 20:44:37,829] {} INFO - Using executor SequentialExecutor
Logging into: /Users/wjo1212/airflow/logs/example_http_operator/http_sensor_check/2016-08-04T00:00:00
[2016-08-20 20:44:39,081] {} INFO - Using executor SequentialExecutor
InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification
is strongly advised. See:
Traceback (most recent call last):
  File "/Users/wjo1212/python3_study/bin/airflow", line 15, in <module>
  File "/Users/wjo1212/python3_study/lib/python3.4/site-packages/airflow/bin/", line
237, in run
  File "/Users/wjo1212/python3_study/lib/python3.4/site-packages/airflow/utils/", line
53, in wrapper
    result = func(*args, **kwargs)
  File "/Users/wjo1212/python3_study/lib/python3.4/site-packages/airflow/", line
1245, in run
    result = task_copy.execute(context=context)
  File "/Users/wjo1212/python3_study/lib/python3.4/site-packages/airflow/operators/",
line 56, in execute
    while not self.poke(context):
  File "/Users/wjo1212/python3_study/lib/python3.4/site-packages/airflow/operators/",
line 514, in poke
    return self.response_check(response)
  File "/Users/wjo1212/python3_study/lib/python3.4/site-packages/airflow/example_dags/",
line 72, in <lambda>
    response_check=lambda response: True if "Google" in response.content else False,
TypeError: 'str' does not support the buffer interface

This message was sent by Atlassian JIRA

View raw message