-
-
Notifications
You must be signed in to change notification settings - Fork 689
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
Relationships Broken? #327
Comments
I also tried pinning the SQLAlchemy version as mentioned in #315 and still face the same error :( |
I encountered the same issue. Trying to downgrade SQLAlchemy to several previous versions did not fix, so I guess some 0.0.6 SQLmodel code relies on new SQLAlchemy code. Is it planned to be fixed? I'm currently working on an implementation of our internal lib to migrate our FastAPI domain model from NOSQL Elasticsearch to SQL, using SQLModel to get the best of Pydantic and SQLAlchemy... Thank you for your attention. |
SQLModel 0.0.6 has SQLAlchemy = ">=1.4.17,<1.5.0" as a constraint, so you are bound to encounter #315. Are you sure downgrading was successful? Did you inspect |
Can confirm this with async mod. |
I cannot reproduce this issue on macOS (Intel) with Python 3.9.10:
But it fails on Apple silicon M1 and/or Python 3.10.2? |
Ah no, it looks like this was just me not knowing the steps required to downgrade. Once I explicitly removed sqlalchemy and then reinstalled it with the version explicitly set (I'm using poetry), it now works (tho I have not tried the async mod as someone else mentioned). I'll leave it up to the maintainers if they want to close this issue and handle the async issue in a separate thread, or continue here :) |
I have an async project myself that runs fine with 1.4.35 and fails with 1.4.36. I am pretty sure this issue is a duplicate of #315 and may be closed for that reason. |
Broken again, it seems. See #315. |
First Check
Commit to Help
Example Code
Hey, this is directly from the documentation here
Description
When I run this (python 3.10.2, sqlmodel 0.0.6), I get the following error
Operating System
macOS
Operating System Details
Apple Silicon, if that matters
SQLModel Version
0.0.6
Python Version
3.10.2
Additional Context
I'm a python n00b so hopefully this isn't just me doing something dumb 😅
The text was updated successfully, but these errors were encountered: