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

Bolke de Bruin resolved AIRFLOW-783.
------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.8.0

> Python 3 incompatibility in BaseTaskRunner
> ------------------------------------------
>
>                 Key: AIRFLOW-783
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-783
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: core
>    Affects Versions: Airflow 1.8
>         Environment: python 3.4
>            Reporter: Walter Smith
>            Assignee: Walter Smith
>             Fix For: 1.8.0
>
>
> The stdout of the subprocess is being used without a codec, so task output is 
> lost. Running unit tests will demonstrate this repeatedly.
> Typical backtrace:
> {noformat}
> test_fetch_task_instance (tests.WebUiTests) ... Exception in thread Thread-3:
> Traceback (most recent call last):
>   File 
> "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/threading.py",
>  line 920, in _bootstrap_inner
>     self.run()
>   File 
> "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/threading.py",
>  line 868, in run
>     self._target(*self._args, **self._kwargs)
>   File 
> "/Users/walter/infbio/incubator-airflow/airflow/task_runner/base_task_runner.py",
>  line 95, in _read_task_logs
>     self.logger.info('Subtask: {}'.format(line.rstrip('\n')))
> TypeError: 'str' does not support the buffer interface
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to