Masatake Iwasaki created BIGTOP-4455:
----------------------------------------

             Summary: RPM packaging of Airflow fails due to ambiguous python 
shebangs error
                 Key: BIGTOP-4455
                 URL: https://issues.apache.org/jira/browse/BIGTOP-4455
             Project: Bigtop
          Issue Type: Bug
            Reporter: Masatake Iwasaki


airflow-rpm failed on rockylinux-9-aarch64 due to [ambiguous python shebangs 
error|https://fedoraproject.org/wiki/Changes/Make_ambiguous_python_shebangs_error]
 of /usr/lib/rpm/redhat/brp-mangle-shebangs.

{noformat}
# grep ERROR /tmp/airflow-pkg.log
*** ERROR: ambiguous python shebang in 
/usr/lib/airflow/lib/python3.9/site-packages/nvd3/cumulativeLineChart.py: 
#!/usr/bin/python. Change it to python3 (or python2) explicitly.
*** ERROR: ambiguous python shebang in 
/usr/lib/airflow/lib/python3.9/site-packages/nvd3/scatterChart.py: 
#!/usr/bin/python. Change it to python3 (or python2) explicitly.
*** ERROR: ambiguous python shebang in 
/usr/lib/airflow/lib/python3.9/site-packages/nvd3/pieChart.py: 
#!/usr/bin/python. Change it to python3 (or python2) explicitly.
*** ERROR: ambiguous python shebang in 
/usr/lib/airflow/lib/python3.9/site-packages/nvd3/lineWithFocusChart.py: 
#!/usr/bin/python. Change it to python3 (or python2) explicitly.
*** ERROR: ambiguous python shebang in 
/usr/lib/airflow/lib/python3.9/site-packages/nvd3/linePlusBarChart.py: 
#!/usr/bin/python. Change it to python3 (or python2) explicitly.
*** ERROR: ambiguous python shebang in 
/usr/lib/airflow/lib/python3.9/site-packages/nvd3/discreteBarChart.py: 
#!/usr/bin/python. Change it to python3 (or python2) explicitly.
*** ERROR: ambiguous python shebang in 
/usr/lib/airflow/lib/python3.9/site-packages/nvd3/__init__.py: 
#!/usr/bin/python. Change it to python3 (or python2) explicitly.
*** ERROR: ambiguous python shebang in 
/usr/lib/airflow/lib/python3.9/site-packages/nvd3/lineChart.py: 
#!/usr/bin/python. Change it to python3 (or python2) explicitly.
*** ERROR: ambiguous python shebang in 
/usr/lib/airflow/lib/python3.9/site-packages/nvd3/multiChart.py: 
#!/usr/bin/python. Change it to python3 (or python2) explicitly.
*** ERROR: ambiguous python shebang in 
/usr/lib/airflow/lib/python3.9/site-packages/nvd3/multiBarHorizontalChart.py: 
#!/usr/bin/python. Change it to python3 (or python2) explicitly.
*** ERROR: ambiguous python shebang in 
/usr/lib/airflow/lib/python3.9/site-packages/nvd3/stackedAreaChart.py: 
#!/usr/bin/python. Change it to python3 (or python2) explicitly.
*** ERROR: ambiguous python shebang in 
/usr/lib/airflow/lib/python3.9/site-packages/nvd3/multiBarChart.py: 
#!/usr/bin/python. Change it to python3 (or python2) explicitly.
*** ERROR: ambiguous python shebang in 
/usr/lib/airflow/lib/python3.9/site-packages/nvd3/bulletChart.py: 
#!/usr/bin/python. Change it to python3 (or python2) explicitly.
*** ERROR: ambiguous python shebang in 
/usr/lib/airflow/lib/python3.9/site-packages/nvd3/NVD3Chart.py: 
#!/usr/bin/python. Change it to python3 (or python2) explicitly.
*** ERROR: 
./usr/lib/airflow/lib/python3.9/site-packages/sqlalchemy/testing/suite/test_dialect.py
 has shebang which doesn't start with '/' (coding: utf-8)
{noformat}

Interestingly it was not reproduced in the CI environment.

* https://ci.bigtop.apache.org/job/Bigtop-trunk-aarch64/
* 
https://ci.bigtop.apache.org/job/Bigtop-trunk-aarch64/DISTRO=rockylinux-9,PLATFORM=aarch64-slave,PRODUCT=airflow/lastBuild/console




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to