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

   ### Apache Airflow version
   
   2.10.5
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   I'm trying to build a slim Docker image based on 
apache/airflow:slim-2.10.4-python3.11 and install the 
apache-airflow-providers-amazon package using the constraints. However, the 
installation fails during the build of the xmlsec dependency with the following 
error:
   
   
   `19.05 Building wheels for collected packages: xmlsec
   19.05   Building wheel for xmlsec (pyproject.toml): started
   19.56   Building wheel for xmlsec (pyproject.toml): finished with status 
'error'
   19.56 Failed to build xmlsec
   19.56   error: subprocess-exited-with-error
   19.56
   19.56   × Building wheel for xmlsec (pyproject.toml) did not run 
successfully.
   19.56   │ exit code: 1
   19.56   ╰─> [33 lines of output]
   19.56       WARNING setuptools_scm.pyproject_reading toml section missing 
'pyproject.toml does not contain a tool.setuptools_scm section'
   19.56       Traceback (most recent call last):
   19.56         File 
"/tmp/pip-build-env-cs9ak9nv/overlay/lib/python3.11/site-packages/setuptools_scm/_integration/pyproject_reading.py",
 line 36, in read_pyproject
   19.56           section = defn.get("tool", {})[tool_name]
   19.56                     ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
   19.56       KeyError: 'setuptools_scm'
   19.56       
/tmp/pip-build-env-cs9ak9nv/overlay/lib/python3.11/site-packages/setuptools/dist.py:759:
 SetuptoolsDeprecationWarning: License classifiers are deprecated.
   19.56       !!
   19.56
   19.56               
********************************************************************************
   19.56               Please consider removing the following classifiers in 
favor of a SPDX license expression:
   19.56
   19.56               License :: OSI Approved :: MIT License
   19.56
   19.56               See 
https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license 
for details.
   19.56               
********************************************************************************
   19.56
   19.56       !!
   19.56         self._finalize_license_expression()
   19.56       running bdist_wheel
   19.56       running build
   19.56       running build_py
   19.56       creating build/lib.linux-aarch64-cpython-311/xmlsec
   19.56       copying src/xmlsec/tree.pyi -> 
build/lib.linux-aarch64-cpython-311/xmlsec
   19.56       copying src/xmlsec/__init__.pyi -> 
build/lib.linux-aarch64-cpython-311/xmlsec
   19.56       copying src/xmlsec/template.pyi -> 
build/lib.linux-aarch64-cpython-311/xmlsec
   19.56       copying src/xmlsec/constants.pyi -> 
build/lib.linux-aarch64-cpython-311/xmlsec
   19.56       copying src/xmlsec/py.typed -> 
build/lib.linux-aarch64-cpython-311/xmlsec
   19.56       running build_ext
   19.56       building 'xmlsec' extension
   19.56       creating 
build/temp.linux-aarch64-cpython-311/tmp/pip-install-u_9dquyt/xmlsec_9e878e46894a430cb7ff180729713169/src
   19.56       gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC 
-D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_OPENSSL3_ENGINES=1 
-DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 
-DXMLSEC_CRYPTO_OPENSSL=1 -DMODULE_NAME=xmlsec -DMODULE_VERSION=1.3.15 
-I/usr/include/xmlsec1 -I/usr/include/libxml2 
-I/tmp/pip-build-env-cs9ak9nv/overlay/lib/python3.11/site-packages/lxml/includes
 -I/tmp/pip-build-env-cs9ak9nv/overlay/lib/python3.11/site-packages/lxml 
-I/tmp/pip-build-env-cs9ak9nv/overlay/lib/python3.11/site-packages/lxml/includes/extlibs
 
-I/tmp/pip-build-env-cs9ak9nv/overlay/lib/python3.11/site-packages/lxml/includes/__pycache__
 
-I/tmp/pip-build-env-cs9ak9nv/overlay/lib/python3.11/site-packages/lxml/includes/libxml
 
-I/tmp/pip-build-env-cs9ak9nv/overlay/lib/python3.11/site-packages/lxml/includes/libexslt
 
-I/tmp/pip-build-env-cs9ak9nv/overlay/lib/python3.11/site-packages/lxml/includes/libxslt
 -I/home/airflow/.local/include -I/usr/local/include/
 python3.11 -c 
/tmp/pip-install-u_9dquyt/xmlsec_9e878e46894a430cb7ff180729713169/src/constants.c
 -o 
build/temp.linux-aarch64-cpython-311/tmp/pip-install-u_9dquyt/xmlsec_9e878e46894a430cb7ff180729713169/src/constants.o
 -g -std=c99 -fPIC -fno-strict-aliasing -Wno-error=declaration-after-statement 
-Werror=implicit-function-declaration -Os
   19.56       error: command 'gcc' failed: Permission denied
   19.56       [end of output]
   19.56
   19.56   note: This error originates from a subprocess, and is likely not a 
problem with pip.
   19.56   ERROR: Failed building wheel for xmlsec
   19.73 ERROR: Failed to build installable wheels for some pyproject.toml 
based projects (xmlsec)`
   
   Would appreciate guidance if additional steps are needed to support this 
installation.
   
   
   ### What you think should happen instead?
   
   _No response_
   
   ### How to reproduce
   
   * Use FROM apache/airflow:slim-2.10.4-python3.11 as the base image.
   * Attempt to install apache-airflow-providers-amazon via pip.
   
   ### Operating System
   
   Docker image: apache/airflow:slim-2.10.4-python3.11
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### 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