I don't know if it's due to some other python application running or something
But when I was a beginner in flask I got this error because of writing
app.route('/')
instead of @app.route('/)
:|
Though without @ it ran the server.
See whether its the case