pow_devel icon indicating copy to clipboard operation
pow_devel copied to clipboard

Error while running demo

Open leonidcan opened this issue 1 year ago • 4 comments

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

leonidcan avatar Mar 14 '23 01:03 leonidcan

Hi, I will be checking this.

pythononwheels avatar Mar 15 '23 09:03 pythononwheels

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 !

pythononwheels avatar Mar 15 '23 11:03 pythononwheels

can you check if the sqlqlchemy version was causing the issue ?

pythononwheels avatar Mar 17 '23 11:03 pythononwheels

Ok, server.py runs finally after downgrading sqlalchemy. Thanks!

leonidcan avatar Mar 17 '23 12:03 leonidcan