Commit 8a74043
committed
fix: Add setuptools constraint to requirements.txt for gunicorn compatibility
API server was crashing with 'ModuleNotFoundError: No module named pkg_resources'
because gunicorn requires pkg_resources from setuptools, but setuptools 73+
removed this module.
The constraint was already in requirements-webapp.txt for the client, but
requirements.txt (used by API/worker containers) was missing it, causing
the API container to fail on startup.
Root cause: docker/app/Dockerfile installs both requirements-webapp.txt AND
requirements.txt, but the latter lacked the setuptools constraint, allowing
pip to install setuptools 73+ which doesn't provide pkg_resources.
Fix: Add setuptools>=65.5.0,<73.0.0 to requirements.txt to ensure pkg_resources
is available for gunicorn in Python 3.9 API/worker containers.
Fixes: Integration test failures where API container exits with code 11 parent 948f4ce commit 8a74043
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
0 commit comments