From 3606fadaa81342bdc852cf98e09274bd0d1e1d1a Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Mon, 20 Nov 2023 11:37:00 +1100 Subject: [PATCH] Pin gevent version to work around build issues Seeing the following error on latest versions of gevent: Traceback (most recent call last): File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/usr/lib/python3.9/site-packages/zulip_bots/schedulebot.py", line 2, in import gevent.monkey File "/usr/lib/python3.9/site-packages/gevent/__init__.py", line 72, in from gevent._hub_local import get_hub File "/usr/lib/python3.9/site-packages/gevent/_hub_local.py", line 150, in import_c_accel(globals(), 'gevent.__hub_local') File "/usr/lib/python3.9/site-packages/gevent/_util.py", line 148, in import_c_accel mod = importlib.import_module(cname) File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) ModuleNotFoundError: No module named 'gevent._gevent_c_hub_local' --- api_ping/Dockerfile | 2 +- backfiller/Dockerfile | 2 +- bus_analyzer/Dockerfile | 2 +- chat_archiver/Dockerfile | 2 +- cutter/Dockerfile | 2 +- downloader/Dockerfile | 2 +- playlist_manager/Dockerfile | 2 +- restreamer/Dockerfile | 2 +- segment_coverage/Dockerfile | 2 +- sheetsync/Dockerfile | 2 +- thrimshim/Dockerfile | 2 +- zulip_bots/Dockerfile | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/api_ping/Dockerfile b/api_ping/Dockerfile index 77c2a9d..bb5440d 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 +RUN pip install gevent==22.10.2 # Install common lib first as it changes less COPY common /tmp/common diff --git a/backfiller/Dockerfile b/backfiller/Dockerfile index 5b9b18f..6648275 100644 --- a/backfiller/Dockerfile +++ b/backfiller/Dockerfile @@ -7,7 +7,7 @@ RUN apk --update add py3-pip g++ python3-dev libffi-dev musl-dev postgresql-dev 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 +RUN pip install gevent==22.10.2 # Install common lib first as it changes less COPY common /tmp/common diff --git a/bus_analyzer/Dockerfile b/bus_analyzer/Dockerfile index fe30462..63c412b 100644 --- a/bus_analyzer/Dockerfile +++ b/bus_analyzer/Dockerfile @@ -7,7 +7,7 @@ RUN apk --update add py3-pip g++ python3-dev libffi-dev musl-dev postgresql-dev 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 +RUN pip install gevent==22.10.2 # Install common lib first as it changes less COPY common /tmp/common diff --git a/chat_archiver/Dockerfile b/chat_archiver/Dockerfile index b60b9f9..fa4e4cf 100644 --- a/chat_archiver/Dockerfile +++ b/chat_archiver/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 +RUN pip install gevent==22.10.2 # Install girc, it's not really properly published on pypi so we pull it in via submodule COPY chat_archiver/girc /tmp/girc diff --git a/cutter/Dockerfile b/cutter/Dockerfile index dccd89f..b797eb3 100644 --- a/cutter/Dockerfile +++ b/cutter/Dockerfile @@ -7,7 +7,7 @@ RUN apk --update add py3-pip g++ python3-dev libffi-dev musl-dev postgresql-dev 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 +RUN pip install gevent==22.10.2 # Install common lib first as it changes less COPY common /tmp/common diff --git a/downloader/Dockerfile b/downloader/Dockerfile index 3fcf2c5..96c1aac 100644 --- a/downloader/Dockerfile +++ b/downloader/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 +RUN pip install gevent==22.10.2 # Install common lib first as it changes less COPY common /tmp/common diff --git a/playlist_manager/Dockerfile b/playlist_manager/Dockerfile index 98a61e1..47a32e2 100644 --- a/playlist_manager/Dockerfile +++ b/playlist_manager/Dockerfile @@ -7,7 +7,7 @@ RUN apk --update add py3-pip g++ python3-dev libffi-dev musl-dev postgresql-dev 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 +RUN pip install gevent==22.10.2 # Install common lib first as it changes less COPY common /tmp/common diff --git a/restreamer/Dockerfile b/restreamer/Dockerfile index bf3a7ba..f8aefe5 100644 --- a/restreamer/Dockerfile +++ b/restreamer/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 +RUN pip install gevent==22.10.2 # Install common lib first as it changes less COPY common /tmp/common diff --git a/segment_coverage/Dockerfile b/segment_coverage/Dockerfile index d8e0011..a5a697a 100644 --- a/segment_coverage/Dockerfile +++ b/segment_coverage/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 +RUN pip install gevent==22.10.2 # Install common lib first as it changes less COPY common /tmp/common diff --git a/sheetsync/Dockerfile b/sheetsync/Dockerfile index bf46f7f..231e47f 100644 --- a/sheetsync/Dockerfile +++ b/sheetsync/Dockerfile @@ -7,7 +7,7 @@ RUN apk --update add py3-pip g++ python3-dev libffi-dev musl-dev postgresql-dev 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 +RUN pip install gevent==22.10.2 # Install common lib first as it changes less COPY common /tmp/common diff --git a/thrimshim/Dockerfile b/thrimshim/Dockerfile index 4e3233a..02e7c0a 100644 --- a/thrimshim/Dockerfile +++ b/thrimshim/Dockerfile @@ -7,7 +7,7 @@ RUN apk --update add py3-pip g++ python3-dev libffi-dev musl-dev postgresql-dev 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 +RUN pip install gevent==22.10.2 # Install common lib first as it changes less COPY common /tmp/common diff --git a/zulip_bots/Dockerfile b/zulip_bots/Dockerfile index 4e7646a..b82f1d6 100644 --- a/zulip_bots/Dockerfile +++ b/zulip_bots/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 +RUN pip install gevent==22.10.2 # Install girc, it's not really properly published on pypi so we pull it in via submodule. # Also we should probably move the submodule out of chat_archiver now that it's used