SamWheating opened a new issue #14811:
URL: https://github.com/apache/airflow/issues/14811


   <!--
   
   Welcome to Apache Airflow!  For a smooth issue process, try to answer the 
following questions.
   Don't worry if they're not all applicable; just try to include what you can 
:-)
   
   If you need to include code snippets or logs, please put them in fenced code
   blocks.  If they're super-long, please use the details tag like
   <details><summary>super-long log</summary> lots of stuff </details>
   
   Please delete these comment blocks before submitting the issue.
   
   -->
   
   <!--
   
   IMPORTANT!!!
   
   PLEASE CHECK "SIMILAR TO X EXISTING ISSUES" OPTION IF VISIBLE
   NEXT TO "SUBMIT NEW ISSUE" BUTTON!!!
   
   PLEASE CHECK IF THIS ISSUE HAS BEEN REPORTED PREVIOUSLY USING SEARCH!!!
   
   Please complete the next sections or the issue will be closed.
   These questions are the first thing we need to know to understand the 
context.
   
   -->
   
   **Apache Airflow version**: 2.0.1
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl 
version`): N/A
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**:
   - **OS** (e.g. from /etc/os-release): Mac OS Big Sur
   - **Kernel** (e.g. `uname -a`):
   - **Install tools**: pip 20.1.1
   - **Others**:
   
   **What happened**:
   
   Our CI environment broke due to the release of SQLAlchemy 1.4, which is 
incompatible with the latest version of sqlalchemy-utils. ([Related 
issue](https://github.com/kvesteri/sqlalchemy-utils/issues/505))
   
   Partial stacktrace:
   ```
     File 
"/Users/samwheating/Desktop/tmp_venv/lib/python3.7/site-packages/airflow/www/utils.py",
 line 27, in <module>
       from flask_appbuilder.models.sqla.interface import SQLAInterface
     File 
"/Users/samwheating/Desktop/tmp_venv/lib/python3.7/site-packages/flask_appbuilder/models/sqla/interface.py",
 line 16, in <module>
       from sqlalchemy_utils.types.uuid import UUIDType
     File 
"/Users/samwheating/Desktop/tmp_venv/lib/python3.7/site-packages/sqlalchemy_utils/__init__.py",
 line 1, in <module>
       from .aggregates import aggregated  # noqa
     File 
"/Users/samwheating/Desktop/tmp_venv/lib/python3.7/site-packages/sqlalchemy_utils/aggregates.py",
 line 372, in <module>
       from .functions.orm import get_column_key
     File 
"/Users/samwheating/Desktop/tmp_venv/lib/python3.7/site-packages/sqlalchemy_utils/functions/__init__.py",
 line 1, in <module>
       from .database import (  # noqa
     File 
"/Users/samwheating/Desktop/tmp_venv/lib/python3.7/site-packages/sqlalchemy_utils/functions/database.py",
 line 11, in <module>
       from .orm import quote
     File 
"/Users/samwheating/Desktop/tmp_venv/lib/python3.7/site-packages/sqlalchemy_utils/functions/orm.py",
 line 14, in <module>
       from sqlalchemy.orm.query import _ColumnEntity
   ImportError: cannot import name '_ColumnEntity' from 'sqlalchemy.orm.query' 
(/Users/samwheating/Desktop/tmp_venv/lib/python3.7/site-packages/sqlalchemy/orm/query.py)
   ```
   
   I'm not sure what the typical procedure is in the case of breaking changes 
to dependencies, but seeing as there's an upcoming release I thought it might 
be worth pinning sqlalchemy to 1.3.x?
   
   **What you expected to happen**:
   
   <!-- What do you think went wrong? -->
   
   **How to reproduce it**:
   
   1) Create a new virtualenv
   2) `pip install apache-airflow`
   3) `airflow db init`
   
   <!---
   
   As minimally and precisely as possible. Keep in mind we do not have access 
to your cluster or dags.
   
   If you are using kubernetes, please attempt to recreate the issue using 
minikube or kind.
   
   ## Install minikube/kind
   
   - Minikube https://minikube.sigs.k8s.io/docs/start/
   - Kind https://kind.sigs.k8s.io/docs/user/quick-start/
   
   If this is a UI bug, please provide a screenshot of the bug or a link to a 
youtube video of the bug in action
   
   You can include images using the .md style of
   ![alt text](http://url/to/img.png)
   
   To record a screencast, mac users can use QuickTime and then create an 
unlisted youtube video with the resulting .mov file.
   
   --->
   
   


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