Skip to content

Relationship problem "When initializing mapper" #900

Closed Answered by kent-foodini
ericPavone asked this question in Questions
Discussion options

You must be logged in to vote

To help those who find this and puzzle over the discussion:

To sort out massive errors with SQLModel / SQLAlchemy, the "from future import annotations" statement in the file will completely bork SQLAlchemy with errors leading you to think the relationships are based on generic types.

DO NOT USE from future import annotations AND SQL MODEL

I took this line out after hours of trying things, and SQLModel started working again.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@iamyb
Comment options

@ericPavone
Comment options

@kent-foodini
Comment options

Answer selected by ericPavone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
3 participants