This repository has been 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
-
FIXED, misspelled requirements.txt!
++++++++++++++++++++++++++++++++++++++++++++++
Hello. Following the guide --
https://fastapi.tiangolo.com/deployment/deta/
-- I created this micro service.
curl https://81swa7.deta.dev
I receive the 'Bad Gateway' error (though it does not say 502)
I enable visor to trace it.
deta visor enable
I 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:
fastapi
My 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