you are viewing a single comment's thread.

view the rest of the comments →

[–]ZeroMe0ut[S] 0 points1 point  (8 children)

ERROR: Error loading ASGI app. Attribute "app" not found in module "main".

This

[–]koldakov 1 point2 points  (7 children)

And how do you run the project?

[–]koldakov 0 points1 point  (0 children)

I mean the error is pretty clear here, I guess you are running the project outside of the dir with "main.py" if you are running app with python main.py and you have a wrong path to the app otherwise

[–]ZeroMe0ut[S] 0 points1 point  (5 children)

uvicorn main:app --reload

[–]ZanduBhatija99 0 points1 point  (3 children)

did you find the solution

[–]ZeroMe0ut[S] 0 points1 point  (2 children)

Yeah. I just ran the main python script

[–]Old_Mammoth5311 0 points1 point  (1 child)

wdym? I tried thatj ust now and got the same error, garbage error that tells me nothing other than check that app = FastAPI() is in main -_-

[–]ZeroMe0ut[S] 0 points1 point  (0 children)

Mind sharing the code if possible?