You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (Jira)" <ji...@apache.org> on 2019/12/12 16:21:00 UTC

[jira] [Resolved] (AIRFLOW-2464) Unicode character in default_airflow.cfg

     [ https://issues.apache.org/jira/browse/AIRFLOW-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ash Berlin-Taylor resolved AIRFLOW-2464.
----------------------------------------
    Resolution: Fixed

> 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: 2.0.0
>            Reporter: Matthew Bowden
>            Assignee: Ash Berlin-Taylor
>            Priority: Major
>
> {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
(v8.3.4#803005)