Open leonidcan opened 1 year ago
Hi, I will be checking this.
This is due to some major changes in sqlalchemy 2.0. As a quick fix: in your virtual environment:
pip uninstall sqlalchemy
pip install sqlalchemy==1.4.46
pip freeze
should show you the correct version of sqlalchemy now.
I will adapt the binding in the package. Thanks for the info !
can you check if the sqlqlchemy version was causing the issue ?
Ok, server.py runs finally after downgrading sqlalchemy. Thanks!
Followed exact steps from quick start demo and getting this error (windows and ubuntu the same error)
Traceback (most recent call last): File "C:\Work\pow\todo\server.py", line 16, in
from todo.lib.application import Application, log_handler
File "c:\Work\pow\todo\lib\application.py", line 12, in
from todo.database.sqldblib import Base, Session, engine
File "c:\Work\pow\todo\database\sqldblib.py", line 42, in
metadata = MetaData(engine)
File "C:\Work\pow\todo\lib\site-packages\sqlalchemy\sql\schema.py", line 5231, in init
raise exc.ArgumentError(
sqlalchemy.exc.ArgumentError: expected schema argument to be a string, got <class 'sqlalchemy.engine.base.Engine'>.