astronomer / dag-factory

Dynamically generate Apache Airflow DAGs from YAML configuration files
Apache License 2.0
1.21k stars 183 forks source link

[Test failure] Airflow 2.3, Python 3.11 TIMEZONE = pendulum.tz.timezone('UTC') E TypeError: 'module' object is not callable #242

Closed pankajkoti closed 1 month ago

pankajkoti commented 1 month ago

Action link: https://github.com/astronomer/dag-factory/actions/runs/11322571556/job/31483528547?pr=237

Observed in PR #237

__________________ ERROR collecting tests/test_dagbuilder.py ___________________
tests/test_dagbuilder.py:8: in <module>
    from airflow import DAG
../../../.local/share/hatch/env/virtual/dag-factory/onaeQMJR/tests.py3.11-2.3/lib/python3.11/site-packages/airflow/__init__.py:35: in <module>
    from airflow import settings
../../../.local/share/hatch/env/virtual/dag-factory/onaeQMJR/tests.py3.11-2.3/lib/python3.11/site-packages/airflow/settings.py:46: in <module>
    TIMEZONE = pendulum.tz.timezone('UTC')
E   TypeError: 'module' object is not callable
pankajkoti commented 1 month ago

This got resolved in #237 by correcting the matrix to include/exclude appropriate Airflow-Python version combinations in the test matrix depending on when newer Python versions started getting supported in Airflow versions.