airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Bowden (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-2464) Unicode character in default_airflow.cfg
Date Mon, 14 May 2018 23:19:00 GMT

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

Matthew Bowden commented on AIRFLOW-2464:
-----------------------------------------

Based on puckel's docker-airflow image, it seems like these things might need to be set in
ours: https://github.com/puckel/docker-airflow/blob/master/Dockerfile#L51-L54

> 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
>            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
(v7.6.3#76005)

Mime
View raw message