V0lantis commented on PR #35633:
URL: https://github.com/apache/airflow/pull/35633#issuecomment-1881602249

   Because when I am committing and the pre-commit hook runs, [`Lint Helm 
Chart` installs 
`k8s_env`](https://github.com/apache/airflow/blob/f3ddefccf610833dc8d6012431f372f2af03053c/scripts/ci/pre_commit/pre_commit_helm_lint.py#L30)
 which executes `breeze k8s setup-env`. it turns out that the python version is 
3.12 and it throws the following error:
   
   ```log
   Building wheels for collected packages: apache-airflow, pendulum
     Building editable for apache-airflow (pyproject.toml): started
     Building editable for apache-airflow (pyproject.toml): finished with 
status 'done'
     Created wheel for apache-airflow: 
filename=apache_airflow-2.9.0.dev0-0.editable-py3-none-any.whl size=129750 
sha256=030894410d404ce081fd811c67b713e41d33e898fea190cd2c15bde71dcdfe85
     Stored in directory: 
/private/var/folders/rb/dkcwwl_51pv8yh5vd8wywxf80000gq/T/pip-ephem-wheel-cache-33hlscda/wheels/c5/a9/7b/21a3e656b79c8d90369c79799d745d095c8eb3da3affef1b94
     Building wheel for pendulum (pyproject.toml): started
     Building wheel for pendulum (pyproject.toml): finished with status 'error'
   Successfully built apache-airflow
   Failed to build pendulum
   
     error: subprocess-exited-with-error
     
     × Building wheel for pendulum (pyproject.toml) did not run successfully.
     │ exit code: 1
     ╰─> [27 lines of output]
         Traceback (most recent call last):
           File 
"/private/var/folders/rb/dkcwwl_51pv8yh5vd8wywxf80000gq/T/pip-install-_4kirwme/pendulum_6943150a2a76432098ed35c3a1c3de3d/build.py",
 line 5, in <module>
             from distutils.command.build_ext import build_ext
         ModuleNotFoundError: No module named 'distutils'
         Traceback (most recent call last):
           File 
"/Users/arthur.volant/workspace/github/airflow/.build/.k8s-env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py",
 line 353, in <module>
             main()
           File 
"/Users/arthur.volant/workspace/github/airflow/.build/.k8s-env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py",
 line 335, in main
             json_out['return_val'] = hook(**hook_input['kwargs'])
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
           File 
"/Users/arthur.volant/workspace/github/airflow/.build/.k8s-env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py",
 line 251, in build_wheel
             return _build_backend().build_wheel(wheel_directory, 
config_settings,
                    
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
           File 
"/private/var/folders/rb/dkcwwl_51pv8yh5vd8wywxf80000gq/T/pip-build-env-7j_npl5e/overlay/lib/python3.12/site-packages/poetry/core/masonry/api.py",
 line 58, in build_wheel
             return WheelBuilder.make_in(
                    ^^^^^^^^^^^^^^^^^^^^^
           File 
"/private/var/folders/rb/dkcwwl_51pv8yh5vd8wywxf80000gq/T/pip-build-env-7j_npl5e/overlay/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py",
 line 88, in make_in
             wb.build(target_dir=directory)
           File 
"/private/var/folders/rb/dkcwwl_51pv8yh5vd8wywxf80000gq/T/pip-build-env-7j_npl5e/overlay/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py",
 line 123, in build
             self._build(zip_file)
           File 
"/private/var/folders/rb/dkcwwl_51pv8yh5vd8wywxf80000gq/T/pip-build-env-7j_npl5e/overlay/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py",
 line 172, in _build
             self._run_build_script(self._package.build_script)
           File 
"/private/var/folders/rb/dkcwwl_51pv8yh5vd8wywxf80000gq/T/pip-build-env-7j_npl5e/overlay/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py",
 line 266, in _run_build_script
             subprocess.check_call()
           File 
"/opt/homebrew/Cellar/python@3.12/3.12.1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py",
 line 413, in check_call
             raise CalledProcessError(retcode, cmd)
         subprocess.CalledProcessError: Command 
'['/Users/arthur.volant/workspace/github/airflow/.build/.k8s-env/bin/python', 
'build.py']' returned non-zero exit status 1.
         
     
     note: This error originates from a subprocess, and is likely not a problem 
with pip.
     ERROR: Failed building wheel for pendulum
   ERROR: Could not build wheels for pendulum, which is required to install 
pyproject.toml-based projects
   ```
   


-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to