Skip to content

Conversation

@ashb
Copy link
Member

@ashb ashb commented Aug 11, 2025

Reverts #54231

Main is failing left and right with

airflow-core/src/airflow/utils/db.py:1193: in downgrade
    from airflow.providers.fab.auth_manager.models.db import FABDBManager
providers/fab/src/airflow/providers/fab/auth_manager/models/__init__.py:28: in <module>
    from flask_appbuilder.models.sqla import Model
E   ModuleNotFoundError: No module named 'flask_appbuilder'

During handling of the above exception, another exception occurred:
devel-common/src/tests_common/pytest_plugin.py:411: in initialize_airflow_tests
    _initialize_airflow_db(request.config.option.db_init, airflow_home)
devel-common/src/tests_common/pytest_plugin.py:436: in _initialize_airflow_db
    initial_db_init()
devel-common/src/tests_common/test_utils/db.py:110: in initial_db_init
    db.downgrade(to_revision="5f2621c13b39")
airflow-core/src/airflow/utils/session.py:100: in wrapper
    return func(*args, session=session, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
airflow-core/src/airflow/utils/db.py:1196: in downgrade
    raise RuntimeError(
E   RuntimeError: Import error occurred while importing FABDBManager. We need that to exist before we can downgrade to <3.0.0

@ashb ashb merged commit 5981ae2 into main Aug 11, 2025
90 checks passed
@ashb ashb deleted the revert-54231-downgrade-to-2.11 branch August 11, 2025 20:43
@ashb
Copy link
Member Author

ashb commented Aug 11, 2025

Re-opened a PR #54371, that hopefully fixes Py 3.13.

I wasn't expecting to be able to get a fix tonight, else I would have fixed it rather than reverted.

RoyLee1224 pushed a commit to RoyLee1224/airflow that referenced this pull request Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants