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

Marcelo G. Almiron commented on AIRFLOW-1099:
---------------------------------------------

Looks like this is an issue only on Python 2.7 and it can be solved with 
{{future.utils.native}} function. In this case, I changed the {{Log.__init__}} 
function on {{models.py}} to apply {{native}} function on {{extra}} field.

> Error "TypeError: Expected bytes, got newbytes" while using MS SQL as 
> metadata database
> ---------------------------------------------------------------------------------------
>
>                 Key: AIRFLOW-1099
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1099
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: db
>    Affects Versions: Airflow 1.8
>         Environment: RHEL 6.5; Python 2.7; MS SQL Server 2008
>            Reporter: Marcelo G. Almiron
>         Attachments: traceback.txt
>
>
> When accessing any DAG view from the initial page after log in, I get the 
> error "TypeError: Expected bytes, got newbytes". This error occurs only while 
> using MS SQL as metadata database (I tested with Postgres and works 
> perfectly).
> Traceback is in attachment.



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

Reply via email to