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

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

    [ https://issues.apache.org/jira/browse/AIRFLOW-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16994710#comment-16994710 ] 

Felix Fanghaenel edited comment on AIRFLOW-2464 at 12/12/19 2:08 PM:
---------------------------------------------------------------------

This bug has been reintroduced with commit a44e5762c394b59566e757c9c20cb3f9fd7851eb.

 

It can be traced back to the line 126 of airflow/config_templates/default_airflow.cfg
{code:java}
# Typically, this is a simple statement like “SELECT 1”.
{code}
used double quotes should be replaced with ASCII double-quotes.

 

I encountered this problem installing airflow via ansible.


was (Author: flxdot):
This bug has been reintroduced with commit a44e5762c394b59566e757c9c20cb3f9fd7851eb.

 

It can be traced back to the line 126 of airflow/config_templates/default_airflow.cfg
{code:java}
# Typically, this is a simple statement like “SELECT 1”.
{code}
used double quotes should be replaced with ASCII double-quotes.

> 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: Matthew Bowden
>            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)