musicbinder icon indicating copy to clipboard operation
musicbinder copied to clipboard

Cannot load .main file

Open Sooner0931 opened this issue 2 years ago • 2 comments

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

image

I have no idea what's going on? Any thoughts to solve this problem? thx

Sooner0931 avatar Dec 14 '23 07:12 Sooner0931

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)

tataraba avatar Dec 20 '23 19:12 tataraba

@Sooner0931 use

uvicorn app.main:app --reload

iamsolid avatar Mar 08 '24 00:03 iamsolid