Matthew Bowden created AIRFLOW-2464:
---------------------------------------
Summary: Unicode character in default_airflow.cfg
Key: AIRFLOW-2464
URL: https://issues.apache.org/jira/browse/AIRFLOW-2464
Project: Apache Airflow
Issue Type: Bug
Components: configuration
Affects Versions: Airflow 2.0
Reporter: Matthew Bowden
Assignee: Matthew Bowden
{code:java}
2018-05-14T21:39:16.180900435Z Traceback (most recent call last):
2018-05-14T21:39:16.180950267Z File "/opt/airflow-venv/bin/airflow", line 21,
in <module>
2018-05-14T21:39:16.180958056Z from airflow import configuration
2018-05-14T21:39:16.180964143Z File
"/opt/airflow-venv/lib/python3.5/site-packages/airflow/__init__.py", line 35,
in <module>
2018-05-14T21:39:16.180971685Z from airflow import configuration as conf
2018-05-14T21:39:16.180988053Z File
"/opt/airflow-venv/lib/python3.5/site-packages/airflow/configuration.py", line
110, in <module>
2018-05-14T21:39:16.180997872Z DEFAULT_CONFIG = f.read()
2018-05-14T21:39:16.181003351Z File
"/opt/airflow-venv/lib/python3.5/encodings/ascii.py", line 26, in decode
2018-05-14T21:39:16.181009074Z return codecs.ascii_decode(input, self.errors)[0]
2018-05-14T21:39:16.181021048Z UnicodeDecodeError: 'ascii' codec can't decode
byte 0xe2 in position 18912: ordinal not in range(128){code}
It appears that this commit introduced a unicode character into the
{{default_airflow.cfg}} file:
https://github.com/apache/incubator-airflow/commit/16bae5634df24132b37eb752fe816f51bf7e83ca.
This looks like it's a unicode apostrophe, and is causing the {{f.read()}}
call to crash.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)