airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ron Fung (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AIRFLOW-1286) BaseTaskRunner - Exception TypeError: a bytes-like object is required, not 'str'
Date Wed, 07 Jun 2017 00:09:18 GMT
Ron Fung created AIRFLOW-1286:
---------------------------------

             Summary: 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


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:

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'

I have a fix, will submit a PR



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

Mime
View raw message