Fix webapp.py for Python 3.13+ compatibility
- Remove deprecated eventlet dependency - Use threading mode for Flask-SocketIO instead of eventlet - eventlet is deprecated and has compatibility issues with Python 3.13 - Threading mode works reliably on all Python versions This fixes the RuntimeError: Working outside of application context errors when running webapp.py on Python 3.13.
Showing
| ... | ... | @@ -65,7 +65,8 @@ pydantic>=2.6.0 |
| flask>=3.0.2 | ||
| flask-cors>=4.0.0 | ||
| flask-socketio>=5.3.6 | ||
| eventlet>=0.36.0 | ||
| # eventlet removed - deprecated and incompatible with Python 3.13 | ||
| # Using threading mode for SocketIO instead | ||
| python-socketio>=5.11.0 | ||
| werkzeug>=3.0.1 | ||
| ... | ... |
Please
register
or
sign in
to comment