Skip to content

Relationship problem "When initializing mapper" #900

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

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 4 replies

You must be logged in to vote
4 replies
@iamyb

@ericPavone

@kent-foodini

Answer selected by ericPavone
@bilalbit

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