A demo repo for Apache Airflow users using Pants: ...
# general
b
A demo repo for Apache Airflow users using Pants: • https://github.com/da-tubi/pants-airflowhttps://airflow.apache.org/docs/apache-airflow/stable/start.html Compared to the quick start of apache airflow, the pants way is much more more more more more more quicker.
🔥 3
👍 1
❤️ 3
n
this is amazing thanks for sharing!
w
Hi @bored-energy-25252 I'm getting this error while running
bin/airflow_config
command. Could you please tell me how to resolve this issue?
Copy code
from airflow import configuration, settings
  File "/Users/dinesh/.pex/installed_wheels/5ac69cd950b33012fcc18a06b977136abdb07154ed66a2db0bd6044b37720c85/apache_airflow-2.7.1-py3-none-any.whl/airflow/configuration.py", line 2339, in <module>
    secrets_backend_list = initialize_secrets_backends()
  File "/Users/dinesh/.pex/installed_wheels/5ac69cd950b33012fcc18a06b977136abdb07154ed66a2db0bd6044b37720c85/apache_airflow-2.7.1-py3-none-any.whl/airflow/configuration.py", line 2253, in initialize_secrets_backends
    secrets_backend_cls = import_string(class_name)
  File "/Users/dinesh/.pex/installed_wheels/5ac69cd950b33012fcc18a06b977136abdb07154ed66a2db0bd6044b37720c85/apache_airflow-2.7.1-py3-none-any.whl/airflow/utils/module_loading.py", line 37, in import_string
    module = import_module(module_path)
  File "/Users/dinesh/.pyenv/versions/3.9.6/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/Users/dinesh/.pex/installed_wheels/5ac69cd950b33012fcc18a06b977136abdb07154ed66a2db0bd6044b37720c85/apache_airflow-2.7.1-py3-none-any.whl/airflow/secrets/metastore.py", line 29, in <module>
    from airflow.utils.session import NEW_SESSION, provide_session
  File "/Users/dinesh/.pex/installed_wheels/5ac69cd950b33012fcc18a06b977136abdb07154ed66a2db0bd6044b37720c85/apache_airflow-2.7.1-py3-none-any.whl/airflow/utils/session.py", line 24, in <module>
    from airflow import settings
  File "/Users/dinesh/.pex/installed_wheels/5ac69cd950b33012fcc18a06b977136abdb07154ed66a2db0bd6044b37720c85/apache_airflow-2.7.1-py3-none-any.whl/airflow/settings.py", line 51, in <module>
    TIMEZONE = pendulum.tz.timezone("UTC")
TypeError: 'module' object is not callable
Python Version: 3.9.6 pants version: 2.17.0