pythononwheels / pow_devel

development repo for PyhtonOnWheels framework
www.pythononwheels.org
MIT License
75 stars 10 forks source link

Error while running demo #54

Open leonidcan opened 1 year ago

leonidcan commented 1 year ago

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

pythononwheels commented 1 year ago

Hi, I will be checking this.

pythononwheels commented 1 year ago

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 commented 1 year ago

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

leonidcan commented 1 year ago

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