Lai Qiang Ding created AIRFLOW-450: -------------------------------------- Summary: example dag "example_http_operator" compatible issue with Python 3 Key: AIRFLOW-450 URL: https://issues.apache.org/jira/browse/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 {code} [2016-08-20 20:44:36,687] {__init__.py:36} INFO - Using executor SequentialExecutor Sending to executor. [2016-08-20 20:44:37,829] {__init__.py:36} 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] {__init__.py:36} INFO - Using executor SequentialExecutor /Users/wjo1212/python3_study/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py:838: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/security.html InsecureRequestWarning) Traceback (most recent call last): File "/Users/wjo1212/python3_study/bin/airflow", line 15, in <module> args.func(args) File "/Users/wjo1212/python3_study/lib/python3.4/site-packages/airflow/bin/cli.py", line 237, in run pool=args.pool, File "/Users/wjo1212/python3_study/lib/python3.4/site-packages/airflow/utils/db.py", line 53, in wrapper result = func(*args, **kwargs) File "/Users/wjo1212/python3_study/lib/python3.4/site-packages/airflow/models.py", line 1245, in run result = task_copy.execute(context=context) File "/Users/wjo1212/python3_study/lib/python3.4/site-packages/airflow/operators/sensors.py", line 56, in execute while not self.poke(context): File "/Users/wjo1212/python3_study/lib/python3.4/site-packages/airflow/operators/sensors.py", line 514, in poke return self.response_check(response) File "/Users/wjo1212/python3_study/lib/python3.4/site-packages/airflow/example_dags/example_http_operator.py", line 72, in <lambda> response_check=lambda response: True if "Google" in response.content else False, TypeError: 'str' does not support the buffer interface {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)