stijndehaes commented on issue #14818:
URL: https://github.com/apache/airflow/issues/14818#issuecomment-800029525


   I am running into a similar issue with airflo 1.10.14.
   
   ```
    Traceback (most recent call last):
           File "scripts/test_airflow.py", line 15, in <module>
             db.initdb()
           File 
"/home/runner/work/lighthouse-datafy/lighthouse-datafy/data-plane/airflow/build/venv/lib/python3.7/site-packages/airflow/utils/db.py",
 line 345, in initdb
             dag.sync_to_db()
           File 
"/home/runner/work/lighthouse-datafy/lighthouse-datafy/data-plane/airflow/build/venv/lib/python3.7/site-packages/airflow/utils/db.py",
 line 74, in wrapper
             return func(*args, **kwargs)
           File 
"/home/runner/work/lighthouse-datafy/lighthouse-datafy/data-plane/airflow/build/venv/lib/python3.7/site-packages/airflow/models/dag.py",
 line 1507, in sync_to_db
             from airflow.models.serialized_dag import SerializedDagModel
           File 
"/home/runner/work/lighthouse-datafy/lighthouse-datafy/data-plane/airflow/build/venv/lib/python3.7/site-packages/airflow/models/serialized_dag.py",
 line 35, in <module>
             from airflow.serialization.serialized_objects import SerializedDAG
           File 
"/home/runner/work/lighthouse-datafy/lighthouse-datafy/data-plane/airflow/build/venv/lib/python3.7/site-packages/airflow/serialization/serialized_objects.py",
 line 40, in <module>
             from airflow.www.utils import get_python_source
           File 
"/home/runner/work/lighthouse-datafy/lighthouse-datafy/data-plane/airflow/build/venv/lib/python3.7/site-packages/airflow/www/utils.py",
 line 40, in <module>
             import flask_admin.contrib.sqla.filters as sqlafilters
           File 
"/home/runner/work/lighthouse-datafy/lighthouse-datafy/data-plane/airflow/build/venv/lib/python3.7/site-packages/flask_admin/contrib/sqla/__init__.py",
 line 2, in <module>
             from .view import ModelView
           File 
"/home/runner/work/lighthouse-datafy/lighthouse-datafy/data-plane/airflow/build/venv/lib/python3.7/site-packages/flask_admin/contrib/sqla/view.py",
 line 18, in <module>
             from flask_admin.contrib.sqla.tools import is_relationship
           File 
"/home/runner/work/lighthouse-datafy/lighthouse-datafy/data-plane/airflow/build/venv/lib/python3.7/site-packages/flask_admin/contrib/sqla/tools.py",
 line 4, in <module>
             from sqlalchemy.ext.declarative.clsregistry import _class_resolver
         ModuleNotFoundError: No module named 
'sqlalchemy.ext.declarative.clsregistry'
   ```
   Downgrading also fixes the problem
   


----------------------------------------------------------------
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]


Reply via email to