Navid61 opened a new issue, #47199:
URL: https://github.com/apache/airflow/issues/47199

   ### Apache Airflow version
   
   2.10.5
   
   ### If "Other Airflow 2 version" selected, which one?
   
   3.0.0
   
   ### What happened?
   
   When attempting to install a development version of Apache Airflow 
(apache-airflow==3.0.0.dev0) on a local system within a virtual machine using 
the command pip install -e ".[devel-all]", the installation process fails 
during the dependency setup for mysqlclient>=1.4.0. This dependency is required 
by Airflow, and the error occurs while trying to build the wheel for 
mysqlclient. The issue stems from the absence of a valid pkg-config 
configuration for MySQL/MariaDB libraries, which prevents the build process 
from determining the necessary compiler flags and linker options.
   
   Error Details
   The pip subprocess responsible for gathering build requirements exits with 
an error code (1), producing the following key output:
   
   Command Failures: Attempts to detect MySQL-related packages via pkg-config 
(e.g., mysqlclient, mariadb, libmariadb, perconaserverclient) all return 
non-zero exit statuses, indicating these packages are either not installed or 
not detectable.
   Traceback: The failure occurs in the setuptools build process, specifically 
during the execution of the mysqlclient setup script, which cannot locate a 
valid pkg-config name.
   Exception: The error message states:
   
   ```bash
   Exception: Can not find valid pkg-config name.
   Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
   ```
   
   - Additional Note: The error originates from a subprocess and is not 
directly related to pip itself.
   
   Steps Leading to the Error
   The user attempted to install Airflow in editable mode with all development 
dependencies:
   ```bash
   pip install -e ".[devel-all]"
   ```
   Prior commands executed include:
   `pip install .` (non-editable install from local sources)
   `pip install -e ".[devel]" `(editable install with minimal development tools)
   
   
   ### What you think should happen instead?
   
   I had expected that running `pip install -e ".[devel-all]"` would 
successfully install all the requirements needed for development mode.
   
   ### How to reproduce
   
   I did these steps:
   
   ```bash
    sudo apt install -y --no-install-recommends apt-transport-https apt-utils 
ca-certificates \
       curl dumb-init freetds-bin krb5-user libgeos-dev \
       ldap-utils libsasl2-2 libsasl2-modules libxmlsec1 locales libffi8 
libldap-2.5-0 libssl3 netcat-openbsd \
       lsb-release openssh-client python3-selinux rsync sasl2-bin sqlite3 sudo 
unixodbc
   ```
   ```bash
     sudo apt-get install libmariadb-dev libmariadbclient-dev
   ```
   ```bash
     pip install .
   ```
   ```bash
     pip install -e ".[devel]"
   ```
   ```bash
     pip install -e ".[devel-all]"
   ```
   
   ### Operating System
   
   Debian GNU/Linux 12 (bookworm)
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Other
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   I ran this command:
   You might need to install MariaDB development headers to build some of the 
dependencies
   ` sudo apt-get install libmariadb-dev libmariadbclient-dev`
   I got this error message:
   
   ```bash
   (.venv) ➜  airflow git:(main)    sudo apt-get install libmariadb-dev 
libmariadbclient-dev
   Reading package lists... Done
   Building dependency tree... Done
   Reading state information... Done
   Package libmariadbclient-dev is not available, but is referred to by another 
package.
   This may mean that the package is missing, has been obsoleted, or
   is only available from another source
   However the following packages replace it:
     libmariadb-dev-compat:i386 libmariadb-dev:i386 libmariadb-dev-compat
     libmariadb-dev
   
   E: Package 'libmariadbclient-dev' has no installation candidate
   ```
   however I though I might can ignore that if I want to install developer 
version
   
   python 3.11 in virtual environment
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to