TopCoder2K opened a new issue, #62408:
URL: https://github.com/apache/airflow/issues/62408
### Apache Airflow version
main (development)
### If "Other Airflow 3 version" selected, which one?
_No response_
### What happened?
I've fixed a bug but I'm unable to commit the changes. Here are problem
hooks:
```bash
Update dependencies for
providers................................................Failed
- hook id: update-providers-dependencies
- exit code: 1
Traceback (most recent call last):
File
"/opt/airflow/providers/../scripts/ci/prek/update_providers_dependencies.py",
line 35, in <module>
import yaml
ModuleNotFoundError: No module named 'yaml'
Check AIRFLOW_V imports in
tests.................................................Failed
- hook id: check-airflow-v-imports-in-tests
- exit code: 1
Traceback (most recent call last):
File
"/opt/airflow/providers/../scripts/ci/prek/check_airflow_v_imports_in_tests.py",
line 90, in <module>
main()
File
"/opt/airflow/providers/../scripts/ci/prek/check_airflow_v_imports_in_tests.py",
line 78, in main
all_errors.extend(check_airflow_v_imports_and_fix(test_file))
File
"/opt/airflow/providers/../scripts/ci/prek/check_airflow_v_imports_in_tests.py",
line 50, in check_airflow_v_imports_and_fix
console.print("Found AIRFLOW_V_*_PLUS import in test file:", test_file)
AttributeError: 'NoneType' object has no attribute 'print'
Check dependency of SQL
providers................................................Failed
- hook id: check-sql-dependency-common-data-structure
- exit code: 1
Traceback (most recent call last):
File
"/opt/airflow/providers/../scripts/ci/prek/check_common_sql_dependency.py",
line 34, in <module>
import yaml
ModuleNotFoundError: No module named 'yaml'
Check providers import hook lineage code from
compat.............................Failed
- hook id: check-get-lineage-collector-providers
- exit code: 1
Traceback (most recent call last):
File
"/opt/airflow/providers/../scripts/ci/prek/check_airflow_imports.py", line 94,
in <module>
sys.exit(main())
File
"/opt/airflow/providers/../scripts/ci/prek/check_airflow_imports.py", line 79,
in main
console.print(f"[blue]{path}:[/] Import count: {import_count},
error_count {local_error_count}")
AttributeError: 'NoneType' object has no attribute 'print'
Provider subpackage init files are
there.........................................Failed
- hook id: check-providers-subpackages-init-file-exist
- exit code: 1
[skipped many rows]
Traceback (most recent call last):
File
"/opt/airflow/providers/../scripts/ci/prek/check_providers_subpackages_all_have_init.py",
line 184, in <module>
console.print("[green]All __init__.py files are present and have
necessary extensions.[/]")
AttributeError: 'NoneType' object has no attribute 'print'
error: Failed to run hook `insert-license`
caused by: Run command `python hook` failed
caused by: No such file or directory (os error 2)
```
### What you think should happen instead?
Changes are committed successfully.
### How to reproduce
Just try to commit something.
### Operating System
Linux
### Versions of Apache Airflow Providers
_No response_
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
GitHub Codespaces
### 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]