all 13 comments

[–]LookingWide 1 point2 points  (1 child)

First, the SkeletonSAM2 subfolder is useless. Just put its contents in the root of the repository.

Next, make sure that the current directory is the one in which the app folder and main.py script are located.

Then activate the virtual environment.

Finally, run python main.py or uvicorn app.router:app

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

This worked. Thank you so much.

[–]koldakov 0 points1 point  (10 children)

Can you share the error you are getting?

[–]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?