[
https://issues.apache.org/jira/browse/AIRFLOW-3167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yutian Wu updated AIRFLOW-3167:
-------------------------------
Description:
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`).
was:
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`).
> 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.3#76005)