Airflow 2.7.0 - sync_users.py fails #771
Replies: 1 comment 1 reply
-
@maciejmochol thanks for raising this issue, it will be fixed by PR #772, and it will be in the next release of the chart! Please discuss any further concerns in that thread. That is to say, chart version 8.7.1 does NOT support Airflow 2.7, but the next one will, please see the Airflow Version Support Matrix. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! First let me thank you all for this excellent Airflow helm chart.
Airflow 2.7.0 is out and i can see that airflow-sync-users pod fails now with error. It looks that file models.py moved from airflow.www.fab_security.sqla folder... What can I do to fix it?
`
_Traceback (most recent call last):
File "/mnt/scripts/sync_users.py", line 146, in
from airflow.www.fab_security.sqla.models import User, Role
ModuleNotFoundError: No module named 'airflow.www.fab_security.sqla.models'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mnt/scripts/sync_users.py", line 148, in
from flask_appbuilder.security.sqla.models import User, Role
File "/home/airflow/.local/lib/python3.11/site-packages/flask_appbuilder/security/sqla/models.py", line 48, in
assoc_permissionview_role = Table(
^^^^^^
File "", line 2, in new
File "/home/airflow/.local/lib/python3.11/site-packages/sqlalchemy/util/deprecations.py", line 375, in warned
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/home/airflow/.local/lib/python3.11/site-packages/sqlalchemy/sql/schema.py", line 596, in new
raise exc.InvalidRequestError(
sqlalchemy.exc.InvalidRequestError: Table 'ab_permission_view_role' is already defined for this MetaData instance. Specify 'extend_existing=True' to redefine options and columns on an existing Table object._
`
Beta Was this translation helpful? Give feedback.
All reactions