I try to create a simple flask app:
from flask import Flask
app = Flask(__name__)
if __name__ == \'__main__\':
app.run()
but when I add
I solved the problem thanks to @AkshayKumar007 answer on github. That was the most convenient solution for me.
Hey guys, I was also facing the same problem. So to summarize, if you're using socket-io, don't do flask run. First, add
if __name__ == "__main__": socketio.run(app)
At the end of your application. To run it just do
python3 __init__.py
Hope it helped.