You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By running the above code via command line "uvicorn main:app --reload" you can insert and fetch data as normal.
But when I add uvicorn and run it using the uvicorn.run() function, I can't insert and query data.
Erro: ...\venv\Lib\site-packages\fastapi\concurrency.py", line 36, in contextmanager_in_threadpool
raise e
sqlalchemy.exc.InvalidRequestError: Multiple classes found for path "Hero" in the registry of this declarative base. Please use a fully module-qualified path.
Operating System
Windows
Operating System Details
windows 11
SQLModel Version
0.0.8
Python Version
Python 3.11.0
Additional Context
I'm having this difficulty to be able to implement the other information, because I need to follow the uvicorn.run(...) to run it on the server.
FastAPI Version: 0.89.1
The text was updated successfully, but these errors were encountered:
First Check
Commit to Help
Example Code
Description
By running the above code via command line "uvicorn main:app --reload" you can insert and fetch data as normal.
But when I add uvicorn and run it using the uvicorn.run() function, I can't insert and query data.
Erro: ...\venv\Lib\site-packages\fastapi\concurrency.py", line 36, in contextmanager_in_threadpool
raise e
sqlalchemy.exc.InvalidRequestError: Multiple classes found for path "Hero" in the registry of this declarative base. Please use a fully module-qualified path.
Operating System
Windows
Operating System Details
windows 11
SQLModel Version
0.0.8
Python Version
Python 3.11.0
Additional Context
I'm having this difficulty to be able to implement the other information, because I need to follow the uvicorn.run(...) to run it on the server.
FastAPI Version: 0.89.1
The text was updated successfully, but these errors were encountered: