hagope edited a comment on issue #7628:
URL: https://github.com/apache/airflow/pull/7628#issuecomment-616861581


   After upgrading from 1.10.9 to 1.10.10, you may see the following error:
   ```
   [2020-04-20 23:14:44,087] {{docker_operator.py:267}} INFO - Pulling docker 
image XXXX:latest
   [2020-04-20 23:14:44,140] {{taskinstance.py:1145}} ERROR - 'dict' object has 
no attribute 'decode'
   Traceback (most recent call last):
     File 
"/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py", line 
983, in _run_raw_task
       result = task_copy.execute(context=context)
     File 
"/usr/local/lib/python3.7/site-packages/airflow/operators/docker_operator.py", 
line 269, in execute
       output = json.loads(l.decode('utf-8').strip())
   AttributeError: 'dict' object has no attribute 'decode'
   ```
   You can patch this in your Dockerfile by adding the following (per 
@brokenjacobs above):
   ```
   RUN sed -i '268s/l/output/' 
/usr/local/lib/python3.7/site-packages/airflow/operators/docker_operator.py
   RUN sed -i '269s/output/#output/' 
/usr/local/lib/python3.7/site-packages/airflow/operators/docker_operator.py
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to