LineaLabs / lineapy

Move fast from data science prototype to pipeline. Capture, analyze, and transform messy notebooks into data pipelines with just two lines of code.
https://lineapy.org
Apache License 2.0
664 stars 58 forks source link

Pin SQLAlchemy<2.0.0 #849

Closed andycui97 closed 1 year ago

andycui97 commented 1 year ago

Description

Pin SQLAlchemy<2.0.0.

Lineapy install doesnt work with the latest version of sqlalchemy library (>= 2.0.0) https://docs.sqlalchemy.org/en/20/intro.html

https://sqlalche.me/e/20/zlpr

sqlalchemy.exc.ArgumentError: Type annotation for "ArtifactORM.node" can't be correctly interpreted for Annotated 
Declarative Table form.  ORM annotations should normally make use of the ``Mapped[]`` generic type, or other ORM-
compatible generic type, as a container for the actual type, which indicates the intent that the attribute is mapped. Class 
variables that are not intended to be mapped by the ORM should use ClassVar[].  To allow Annotated Declarative to 
disregard legacy annotations which don't use Mapped[] to pass, set "__allow_unmapped__ = True" on the class or a 
superclass this class. (Background on this error at: https://sqlalche.me/e/20/zlpr) 

How Has This Been Tested?

Test that lineapy runs on SQLAlchemy==1.4.44 (latest version before 2.0.0 Test that installing from source gives a version of SQLAlchemy < 2.0.0