question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple classes found for path "User" in the registry of this declarative base

See original GitHub issue

First 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:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
tonyhart7commented, Dec 21, 2021

You know it’s rly hard to help you with the error only and no code.

the thing is exception from sqlalchemy not from my code

2reactions
insomnescommented, Dec 21, 2021

You know it’s rly hard to help you with the error only and no code.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found