Cannot load .main file
Hi all,
I cloned the repo locally and executed on VS code from both Windows and Ubuntu, and I got the same result says that "no command uvicore found" first, then I searched solutions and someone suggests using "python -m uvicore app.main:app --reload" instead of "uvicore app.main:app --reload" , after I re-installed uvicore using 'pip install uvicore[standard]', I could run the code by "python -m uvicore app.main:app --reload", however, it says that the main.py file cannot be loaded, as depicted in the following pic
I have no idea what's going on? Any thoughts to solve this problem? thx
Hi there. Sorry I haven't had a chance to check in on this. Were you able to figure out what was going on here? My first instinct was that the virtual environment wasn't activated, but it appears that it was in your screenshot. I'll see if I can replicate locally to see if something else is going on here. (Did you try running this through codespaces)
@Sooner0931 use
uvicorn app.main:app --reload