Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pankajkoti opened this issue Oct 14, 2024 · 1 comment · Fixed by #237
Assignees

Comments

@pankajkoti
Copy link
Contributor

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 pankajkoti added this to the DAG Factory 0.20.0 milestone Oct 14, 2024
@pankajkoti pankajkoti changed the title [CI test failure] Airflow 2.3, Python 3.11 TIMEZONE = pendulum.tz.timezone('UTC') E TypeError: 'module' object is not callable [Test failure] Airflow 2.3, Python 3.11 TIMEZONE = pendulum.tz.timezone('UTC') E TypeError: 'module' object is not callable Oct 14, 2024
@pankajkoti pankajkoti self-assigned this Oct 14, 2024
@pankajkoti
Copy link
Contributor Author

pankajkoti commented Oct 14, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant