You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Chris Riccomini (JIRA)" <ji...@apache.org> on 2017/06/20 16:10:00 UTC
[jira] [Assigned] (AIRFLOW-1286) BaseTaskRunner - Exception
TypeError: a bytes-like object is required, not 'str'
[ https://issues.apache.org/jira/browse/AIRFLOW-1286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Riccomini reassigned AIRFLOW-1286:
----------------------------------------
Assignee: Ron Fung
> BaseTaskRunner - Exception TypeError: a bytes-like object is required, not 'str'
> --------------------------------------------------------------------------------
>
> Key: AIRFLOW-1286
> URL: https://issues.apache.org/jira/browse/AIRFLOW-1286
> Project: Apache Airflow
> Issue Type: Bug
> Components: DagRun
> Affects Versions: Airflow 2.0, Airflow 1.8, Airflow 1.7.1
> Reporter: Ron Fung
> Assignee: Ron Fung
> Fix For: 1.9.0
>
>
> Previous fix https://github.com/apache/incubator-airflow/commit/5184c6e2f108d3db15205ad806e6529b5e0b4259
> handled most of the environment except when we run it in docker (with Python3.5).
> It throws this:
> {code}
> Exception in thread Thread-1:
> Traceback (most recent call last):
> File "/usr/local/lib/python3.5/threading.py", line 914, in _bootstrap_inner
> self.run()
> File "/usr/local/lib/python3.5/threading.py", line 862, in run
> self._target(*self._args, **self._kwargs)
> File "/usr/local/lib/python3.5/site-packages/airflow/task_runner/base_task_runner.py", line 95, in _read_task_logs
> self.logger.info('Subtask: {}'.format(line.rstrip('\n')))
> TypeError: a bytes-like object is required, not 'str'
> {code}
> I have a fix, will submit a PR
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)