airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ash Berlin-Taylor (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-2757) pip install apache-airflow[mysql] fails: cannot find mysql_config
Date Tue, 17 Jul 2018 19:54:00 GMT

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

Ash Berlin-Taylor commented on AIRFLOW-2757:
--------------------------------------------

{{apache-airflow[mysql]}} is just telling pip/setuptools that we depend upon {{mysqlclient>=1.3.6}}
- (https://github.com/apache/incubator-airflow/blob/master/setup.py#L173 and https://github.com/apache/incubator-airflow/blob/master/setup.py#L297).
You should see the same behaviour and error from running {{pip install 'mysqlclient>=1.3.6'}}.

> pip install apache-airflow[mysql] fails: cannot find mysql_config
> -----------------------------------------------------------------
>
>                 Key: AIRFLOW-2757
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2757
>             Project: Apache Airflow
>          Issue Type: Bug
>    Affects Versions: Airflow 2.0
>            Reporter: Max Barrios
>            Priority: Major
>
> I cannot 'pip install apache-airflow[mysql] ' due to the following error:
> Downloading https://files.pythonhosted.org/packages/ec/fd/83329b9d3e14f7344d1cb31f128e6dbba70c5975c9e57896815dbb1988ad/mysqlclient-1.3.13.tar.gz
(90kB)
>     100% |████████████████████████████████|
94kB 4.7MB/s
>     Complete output from command python setup.py egg_info:
>     sh: mysql_config: command not found
>     Traceback (most recent call last):
>       File "<string>", line 20, in <module>
>       File "/tmp/pip-build-GEFhX0/mysqlclient/setup.py", line 18, in <module>
>         metadata, options = get_config()
>       File "setup_posix.py", line 53, in get_config
>         libs = mysql_config("libs_r")
>       File "setup_posix.py", line 28, in mysql_config
>         raise EnvironmentError("%s not found" % (mysql_config.path,))
>     EnvironmentError: mysql_config not found
>     ----------------------------------------
>     Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-GEFhX0/mysqlclient
> However, mysql_config is in my path:
> /jet/bin/mysql_config
> Environment:
> MySQL 5.7
> Python 2.7.12
> Pip 6.1.1



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message