1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] VSCODE - I suddenly got the following error when running any program, e.g.,...

Discussão em 'Python' iniciado por Stack, Setembro 11, 2025.

  1. Stack

    Stack Membro Participativo

    All of a sudden I get the following error when running all programs:

    PS C:\Users\raysm\vscode\resource_lib\src> & 'c:\Users\Owner\AppData\Local\Programs\Python\Python313\python.exe' 'c:\Users\Owner\.vscode\extensions\ms-python.debugpy-2025.10.0-win32-x64\bundled\libs\debugpy\launcher' '60015' '--' '-m' 'uvicorn' 'main:app' '--reload'
    INFO: Will watch for changes in these directories: ['C:\\Users\\raysm\\vscode\\resource_lib\\src']
    INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    INFO: Started reloader process [21876] using StatReload
    ERROR: Error loading ASGI app. Could Error loading ASGI app. Could nonot import module "main".


    my simplest program is as follows:

    # simple.py
    print("Hello World!")


    I've tried removing uvicorn and reinstalling. I try running without debugging.

    Continue reading...

Compartilhe esta Página