I try to create a simple flask app:
from flask import Flask
app = Flask(__name__)
if __name__ == \'__main__\':
app.run()
but when I add
The problem you are facing has to do with a bug in the Flask-SocketIO package which replaces the flask run
command. Due to this Flask-SocketIO is always used even if you don’t import it. There are several solutions:
flask run
but run the main file of your programflask run --no-reload
Reference to the Flask-SocketIO bug: issue 817