Your replit environment isn’t configured correctly, this happens. If you get a strange error like this you can always search this forum, someone else has certainly encountered it.
Click the three dots “…” in the file menu and select “show hidden files”
Edit .replit
Make sure you have this run =
line, it might say something like run = Use run command
. Change it to run = "python3 main.py"