harvetech opened a new issue #15354:
URL: https://github.com/apache/airflow/issues/15354
Whenever I try to delete a dag I get the following error. It seems like a
version mismatch in flask-sqlalchemy
Python version: 3.7.10
Airflow version: 2.0.1
Node: jupyter-gpuaccel.zolitron.com
-------------------------------------------------------------------------------
Traceback (most recent call last):
File
"/root/anaconda3/envs/airflow_env/lib/python3.7/site-packages/flask/app.py",
line 2447, in wsgi_app
response = self.full_dispatch_request()
File
"/root/anaconda3/envs/airflow_env/lib/python3.7/site-packages/flask/app.py",
line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File
"/root/anaconda3/envs/airflow_env/lib/python3.7/site-packages/flask/app.py",
line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File
"/root/anaconda3/envs/airflow_env/lib/python3.7/site-packages/flask/_compat.py",
line 39, in reraise
raise value
File
"/root/anaconda3/envs/airflow_env/lib/python3.7/site-packages/flask/app.py",
line 1950, in full_dispatch_request
rv = self.dispatch_request()
File
"/root/anaconda3/envs/airflow_env/lib/python3.7/site-packages/flask/app.py",
line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File
"/root/anaconda3/envs/airflow_env/lib/python3.7/site-packages/airflow/www/auth.py",
line 34, in decorated
return func(*args, **kwargs)
File
"/root/anaconda3/envs/airflow_env/lib/python3.7/site-packages/airflow/www/decorators.py",
line 60, in wrapper
return f(*args, **kwargs)
File
"/root/anaconda3/envs/airflow_env/lib/python3.7/site-packages/airflow/www/views.py",
line 1393, in delete
delete_dag.delete_dag(dag_id)
File
"/root/anaconda3/envs/airflow_env/lib/python3.7/site-packages/airflow/utils/session.py",
line 65, in wrapper
return func(*args, session=session, **kwargs)
File
"/root/anaconda3/envs/airflow_env/lib/python3.7/site-packages/airflow/api/common/experimental/delete_dag.py",
line 54, in delete_dag
for model in models.base.Base._decl_class_registry.values(): # noqa
pylint: disable=protected-access
AttributeError: type object 'Base' has no attribute '_decl_class_registry'
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]