Re: [Schoolsplay-devel] Error when opening database
Brought to you by:
chris_147,
stas_zytkiewicz
|
From: Stas <st...@ch...> - 2024-05-22 13:55:14
|
The problem is that SQLalchemy api has breaking changes every major update. Its a very bad policy in my opinion. Its one of the reasons we don't use SQL alchemy anymore in other, commercial, projects. I would suggest ditching the sqlalchemy crap and switch to sqlite which can be used from python directly. Did you push all your changes in your repo? I can take a look at the code if you like. On May 22, 2024 2:41:43 PM GMT+02:00, "Néstor" <nes...@gm...> wrote: >I get the following error: > >2024-05-22 14:39:03,951 - >childsplay.SPDataManagerCreateDbase.DbaseMaker - ERROR - Failed to >start the DBase. >Traceback (most recent call last): > File "/home/txiki/Dokumentuak/tests/childsplay/SPDataManagerCreateDbase.py", >line 119, in __init__ > self.orms_userdb = self.sqltb._create_userdb_tables(self.metadata_usersdb) > File "/home/txiki/Dokumentuak/tests/childsplay/SQLTables.py", line >77, in _create_userdb_tables > metadata.create_all(engine) > File "/home/txiki/.venv3.10/lib/python3.10/site-packages/sqlalchemy/sql/schema.py", >line 5857, in create_all > bind._run_ddl_visitor( >AttributeError: module 'sqlalchemy.engine' has no attribute '_run_ddl_visitor' > >=== > >It seems that "engine" is not correctly initiliazed, so it's not Engine class. > >https://github.com/Txikilinux/childsplay.git >-- >Néstor Amigo > > >_______________________________________________ >Schoolsplay-devel mailing list >Sch...@li... >https://lists.sourceforge.net/lists/listinfo/schoolsplay-devel |