This repository was archived by the owner on Aug 7, 2023. It is now read-only.
QuickStart: Bad Gateway > TraceBack > ModuleNotFoundError: No module named 'fastapi' #551
Unanswered
puckfokerdotcom
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
FIXED, misspelled requirements.txt!
++++++++++++++++++++++++++++++++++++++++++++++
Hello. Following the guide --
https://fastapi.tiangolo.com/deployment/deta/-- I created this micro service.
curl https://81swa7.deta.devI receive the 'Bad Gateway' error (though it does not say 502)
I enable visor to trace it.
deta visor enableI then find the traceback in my browser.
Traceback (most recent call last): File "/opt/python/detalib/debugger.py", line 142, in wrap result = func(event, context) File "/var/task/_entry.py", line 12, in handler import main # noqa File "/var/task/main.py", line 1, in <module> from fastapi import FastAPI ModuleNotFoundError: No module named 'fastapi'My requirements.txt is:
fastapiMy main.py is:
I try the QuckStart from the docs, and I have the exact same problem. What is wrong?
Beta Was this translation helpful? Give feedback.
All reactions