snicki13 opened a new issue, #64954: URL: https://github.com/apache/airflow/issues/64954
### Under which category would you file this issue? Providers ### Apache Airflow version 3.2.0 ### What happened and how to reproduce it? I installed Airflow 3.2.0 into my dev-environment with Python 3.14 via this command: `uv pip install apache-airflow[celery,http,pandas,postgres,sentry]=="3.2.0" --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-3.2.0/constraints-3.14.txt"` I then build my own Docker image by using the frozen requirements.txt from my dev environment and run pip install with it. The image build failes, because it cannot find a compiler to install numpy. The requirements.txt resolved from this command my initial installation specifies numpy 2.2.6. However, the base Docker image at docker.io/apache/airflow:3.2.0 (3cbaa4753752) comes with numpy 2.4.3. When I use the constraint list for python3.13 at "https://raw.githubusercontent.com/apache/airflow/constraints-3.2.0/constraints-3.13.txt", the image builds. ### What you think should happen instead? The constraints of Airflow 3.2.0 and Python 3.14 should be the same in the Docker image and via pip install. When installing my requirements.txt - based on airflow requirements - the numpy version should match. ### Operating System MacOS 26.4 ### Deployment Official Apache Airflow Helm Chart ### Apache Airflow Provider(s) _No response_ ### Versions of Apache Airflow Providers _No response_ ### Official Helm Chart version 1.20.0 (latest released) ### Kubernetes Version Not Applicable ### Helm Chart configuration Not Applicable ### Docker Image customizations FROM ${AIRFLOW_IMAGE_NAME} ARG AIRFLOW_IMAGE_NAME=docker.io/apache/airflow:${AIRFLOW_VERSION} COPY airflow/uv.lock . COPY airflow/pyproject.toml . RUN uv export --format requirements.txt > requirements.txt && \ pip install --no-cache-dir "apache-airflow==${AIRFLOW_VERSION}" -r requirements.txt ### Anything else? This is my full script to generate the uv.lock and pyproject.toml. The requirements.txt already contains the wrong version. The error is the same, when I just add the requirements.txt to the Docker image. ``` PYTHON_VERSION=$(python3 -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')") CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt" EXTRAS=celery,http,pandas,postgres,sentry uv pip install apache-airflow[$EXTRAS]=="$AIRFLOW_VERSION" --constraint "$CONSTRAINT_URL" uv pip freeze > requirements.txt uv add -r requirements.txt ``` ### 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]
