Gunicorn ImportError: cannot import name 'ALREADY_HANDLED' from 'eventlet.wsgi' in docker Gunicorn ImportError: cannot import name 'ALREADY_HANDLED' from 'eventlet.wsgi' in docker flask flask

Gunicorn ImportError: cannot import name 'ALREADY_HANDLED' from 'eventlet.wsgi' in docker


Installing older version of eventlet solved the problem: pip install eventlet==0.30.2


Looks like there was a change recently to eventlet

See this PR for an example patch, and potential release version: https://github.com/benoitc/gunicorn/pull/2581

Eventlet 0.30.3+ removed wsgi.ALREADY_HANDLED breaking public API injust a patch version increase. Sorry.

Issue with ALREADY_HANDLED: eventlet/eventlet#543 Solution withWSGI_LOCAL: eventlet/eventlet#544

It's recommended to use eventlet>=0.31.0 if one uses websockets,because older versions are vulnerable to DoS attack.GHSA-9p9m-jm8w-94p2

CI failed in pylint checks on lines I didn't touch.