I was trying to run flask_socketio
app and got this error.
The solution was just to install gevent
: pip install gevent
.
From the docs:
"The Flask development server based on Werkzeug can be used as well, with the caveat that this web server is
intended only for development use, so it should only be used to simplify the development workflow and not for
production.
The extension automatically detects which asynchronous framework to use based on what is installed. Preference is
given to eventlet, followed by gevent. For WebSocket support in gevent, uWSGI is preferred, followed by gevent-websocket. If neither eventlet nor gevent are installed, then the Flask development server is used."