From a6a2ca1a96a89cfbf3a42dab8bef23cb849e41cb Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Wed, 2 Jul 2025 05:13:40 +1000 Subject: [PATCH] fix api_ping as gevent now somehow fails with this pinned version ``` Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3.11/site-packages/api_ping/__main__.py", line 3, in gevent.monkey.patch_all() File "/usr/lib/python3.11/site-packages/gevent/monkey.py", line 1255, in patch_all _notify_patch(events.GeventWillPatchAllEvent(modules_to_patch, kwargs), _warnings) File "/usr/lib/python3.11/site-packages/gevent/monkey.py", line 190, in _notify_patch notify_and_call_entry_points(event) File "/usr/lib/python3.11/site-packages/gevent/events.py", line 104, in notify_and_call_entry_points subscriber = plugin.load() ^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2745, in load self.require(*args, **kwargs) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2773, in require items = working_set.resolve(reqs, env, installer, extras=self.extras) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 889, in resolve dist = self._resolve_dist( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 930, in _resolve_dist raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'zope.event' distribution was not found and is required by the application ``` god i hate python packaging. --- api_ping/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api_ping/Dockerfile b/api_ping/Dockerfile index 3c0f406..2da0643 100644 --- a/api_ping/Dockerfile +++ b/api_ping/Dockerfile @@ -7,7 +7,7 @@ RUN apk --update add py3-pip g++ python3-dev libffi-dev musl-dev file make busyb RUN pip install --upgrade pip wheel # Install gevent so that we don't need to re-install it when common changes -RUN pip install gevent==22.10.2 +RUN pip install gevent # Install common lib first as it changes less COPY common /tmp/common