[Python] Index not found. (Exception from HRESULT: 0x80131124)

Discussão em 'Python' iniciado por Stack, Julho 2, 2025.

  1. Stack

    Stack Membro Participativo

    PS C:\Users\vicka> & C:/Users/vicka/AppData/Local/Programs/Python/Python310/python.exe "c:/Users/vicka/OneDrive/Desktop/School Code/main.py"
    Index not found. (Exception from HRESULT: 0x80131124)
    At line:1 char:1
    + & C:/Users/vicka/AppData/Local/Programs/Python/Python310/python.exe " ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : OperationStopped: :)) [], BadImageFormatException
    + FullyQualifiedErrorId : System.BadImageFormatException


    I keep getting this error when I'm trying to run a basic Python for loop that we did in class

    x = int(input("how many times do I have to tell you? "))

    for i in range(x):
    print("CLEAN UP OUR ROOM!")


    I have already tried to reinstall vs code reinstall python used the .net repair tool and also did a sfc scan of my PC

    Continue reading...

Compartilhe esta Página