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
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
pydanticmodel
Description
Traceback (most recent call last):
File "c:\users[USERNAME]\appdata\local\programs\python\python37\lib\multiprocessing\process.py", line 297, in _bootstrap
self.run()
File "c:\users[USERNAME]\appdata\local\programs\python\python37\lib\multiprocessing\process.py", line 99, in run
self._target(*self._args, **self.kwargs)
File "c:\users[USERNAME]\appdata\local\programs\python\python37\lib\site-packages\uvicorn\subprocess.py", line 76, in subprocess_started
target(sockets=sockets)
File "c:\users[USERNAME]\appdata\local\programs\python\python37\lib\site-packages\uvicorn\server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "c:\users[USERNAME]\appdata\local\programs\python\python37\lib\asyncio\runners.py", line 43, in run
return loop.run_until_complete(main)
File "c:\users[USERNAME]\appdata\local\programs\python\python37\lib\asyncio\base_events.py", line 579, in run_until_complete
return future.result()
File "c:\users[USERNAME]\appdata\local\programs\python\python37\lib\site-packages\uvicorn\server.py", line 67, in serve
config.load()
File "c:\users[USERNAME]\appdata\local\programs\python\python37\lib\site-packages\uvicorn\config.py", line 458, in load
self.loaded_app = import_from_string(self.app)
File "c:\users[USERNAME]\appdata\local\programs\python\python37\lib\site-packages\uvicorn\importer.py", line 24, in import_from_string
raise exc from None
File "c:\users[USERNAME]\appdata\local\programs\python\python37\lib\site-packages\uvicorn\importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
File "c:\users[USERNAME]\appdata\local\programs\python\python37\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 953, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'Product'
This discussion was converted from issue #4987 on February 27, 2023 22:05.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
Traceback (most recent call last):
File "c:\users[USERNAME]\appdata\local\programs\python\python37\lib\multiprocessing\process.py", line 297, in _bootstrap
self.run()
File "c:\users[USERNAME]\appdata\local\programs\python\python37\lib\multiprocessing\process.py", line 99, in run
self._target(*self._args, **self.kwargs)
File "c:\users[USERNAME]\appdata\local\programs\python\python37\lib\site-packages\uvicorn\subprocess.py", line 76, in subprocess_started
target(sockets=sockets)
File "c:\users[USERNAME]\appdata\local\programs\python\python37\lib\site-packages\uvicorn\server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "c:\users[USERNAME]\appdata\local\programs\python\python37\lib\asyncio\runners.py", line 43, in run
return loop.run_until_complete(main)
File "c:\users[USERNAME]\appdata\local\programs\python\python37\lib\asyncio\base_events.py", line 579, in run_until_complete
return future.result()
File "c:\users[USERNAME]\appdata\local\programs\python\python37\lib\site-packages\uvicorn\server.py", line 67, in serve
config.load()
File "c:\users[USERNAME]\appdata\local\programs\python\python37\lib\site-packages\uvicorn\config.py", line 458, in load
self.loaded_app = import_from_string(self.app)
File "c:\users[USERNAME]\appdata\local\programs\python\python37\lib\site-packages\uvicorn\importer.py", line 24, in import_from_string
raise exc from None
File "c:\users[USERNAME]\appdata\local\programs\python\python37\lib\site-packages\uvicorn\importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
File "c:\users[USERNAME]\appdata\local\programs\python\python37\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 953, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'Product'
Operating System
Windows
Operating System Details
No response
FastAPI Version
0.75.2
Python Version
3.7.5
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions