Whenever I run my program using the command python app.py on Ubuntu on Windows it displays this entire message. Seems to me that it runs for a bit then crashes. I honestly have no clue where in my code the error is at, doesn't seem to show on the picture either. All it shows is the OSError: [Errno 8] Exec format error. Can someone please explain why I am getting this error? This is not a duplicate thread since I am not using docker and that error is different.


The code I am using:
from flask import Flask, render_template, request, session, logging, url_for, redirect, flash
from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
from passlib.hash import sha256_crypt