You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "jack (JIRA)" <ji...@apache.org> on 2019/07/14 05:49:00 UTC

[jira] [Commented] (AIRFLOW-3167) airflow test command failed with mysql-connector driver config as the sql_alchemy_conn

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

jack commented on AIRFLOW-3167:
-------------------------------

Is this still relevant? 

> airflow test command failed with mysql-connector driver config as the sql_alchemy_conn
> --------------------------------------------------------------------------------------
>
>                 Key: AIRFLOW-3167
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3167
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: cli, configuration
>    Affects Versions: 1.10.0
>         Environment: macOS High Sierra (10.13.6)
>            Reporter: Yutian Wu
>            Priority: Minor
>             Fix For: 1.8.0
>
>
> After I set the sql_alchemy_conn with the following connection string
> {quote}mysql+mysqlconnector://airflow:airflow_password@localhost/airflow
> {quote}
> the *`airflow test`* command seems not working and complains about the mysql connector library with the following error message:
> {quote}ERROR - Failed on pre-execution callback using <function default_action_log at 0x10bd368c8>
>  Traceback (most recent call last):
>  File "/Users/cielo/.local/share/virtualenvs/MDP-GIS-AaZ6ub-8/lib/python3.6/site-packages/mysql/connector/conversion.py", line 179, in to_mysql
>  return getattr(self, "_\{0}_to_mysql".format(type_name))(value)
>  AttributeError: 'MySQLConverter' object has no attribute '_pendulum_to_mysql'
> {quote}
>  This is not a issue if I use the default driver `MySQLdb(mysqlclient)` in apache-airflow 1.10 (installed using `pip install apache-airflow`).
> Meanwhile, the above issue doesn't happens in airflow 1.8 (installed using `pip install airflow`).



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)