You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/03/16 07:38:28 UTC

[GitHub] [airflow] stijndehaes commented on issue #14818: ImportError: cannot import name '_ColumnEntity' from 'sqlalchemy.orm.query'

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:
users@infra.apache.org