Multiple classes found for path "User" in the registry of this declarative base
See original GitHub issueFirst Check
- I added a very descriptive title to this issue.
- I used the GitHub search to find a similar issue and didn’t find it.
- I searched the FastAPI documentation, with the integrated search.
- I already searched in Google “How to X in FastAPI” and didn’t find any information.
- I already read and followed all the tutorial in the docs and didn’t find an answer.
- I already checked if it is not related to FastAPI but to Pydantic.
- I already checked if it is not related to FastAPI but to Swagger UI.
- I already checked if it is not related to FastAPI but to ReDoc.
Commit to Help
- I commit to help with one of those options 👆
Example Code
sqlalchemy.exc.InvalidRequestError: Multiple classes found for path "User" in the registry of this declarative base. Please use a fully module-qualified path.
Description
I want to make relationship to my table but this error keep happening
Operating System
Windows
Operating System Details
Windows11
FastAPI Version
0.70.1
Python Version
Python 3.10.0
Additional Context
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:8
Top Results From Across the Web
flask many-to-many-relation leads to "Multiple classes found ...
Multiple classes found for path "RolesUsers" in the registry of this declarative base. Please use a fully module-qualified path. I found out ...
Read more >Advice on multiple ORM classes in multiple files and imports
InvalidRequestError : Multiple classes found for path "Group" in the registry of this declarative base. Please use a fully module-qualified ...
Read more >Multiple classes found for path “Students“ in the registry of ...
在这里插入图片描述 sqlalchemy.exc.InvalidRequestError: Multiple classes found for path “Students” in the registry of this declarative base.
Read more >Mapping Class Inheritance Hierarchies
SQLAlchemy supports three forms of inheritance: single table inheritance, where several types of classes are represented by a single table, ...
Read more >What's wrong with my One-to-Many-to-One table structure?
InvalidRequestError : Multiple classes found for path "Rating" in the registry of this declarative base. Please use a fully module-qualified ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
the thing is exception from sqlalchemy not from my code
You know it’s rly hard to help you with the error only and no code.