Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with declerative_base from sqlalchemy>2.0 #20

Open
FlorianK13 opened this issue Aug 15, 2024 · 0 comments
Open

Problems with declerative_base from sqlalchemy>2.0 #20

FlorianK13 opened this issue Aug 15, 2024 · 0 comments

Comments

@FlorianK13
Copy link

Hi,

I noticed that sqlalchemy has breaking changes introduced at version 2.0.0
When running the code

from cimpyorm import datasets
db_session, model = datasets.ENTSOE_MiniBB()   

this results in the error

cimpyorm/backends.py - TypeError: declarative_base() takes 0 positional arguments but 1 was given

An easy fix would be to lock sqlalchemy at v1.4.53 in setup.py - I have tried this which results in the upper code to run sucessfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant