From fba63e8567630503e8bcf0d80cadae97914a4d12 Mon Sep 17 00:00:00 2001 From: Julien De Conti Date: Fri, 3 Nov 2023 16:26:13 +0100 Subject: [PATCH] fix: downgrade httpx to remove error Error: File "/home/causer/Desktop/seg/stable-diffusion-webui/venv/lib/python3.8/site-packages/httpx/_transports/default.py", line 275, in __init__ self._pool = httpcore.AsyncConnectionPool( TypeError: __init__() got an unexpected keyword argument 'socket_options' See: https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/13836 https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/13236#issuecomment-1720488539 --- services/AUTOMATIC1111/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/services/AUTOMATIC1111/Dockerfile b/services/AUTOMATIC1111/Dockerfile index f380f3094..5b1217118 100644 --- a/services/AUTOMATIC1111/Dockerfile +++ b/services/AUTOMATIC1111/Dockerfile @@ -35,6 +35,7 @@ RUN --mount=type=cache,target=/var/cache/apt \ RUN --mount=type=cache,target=/cache --mount=type=cache,target=/root/.cache/pip \ aria2c -x 5 --dir /cache --out torch-2.0.1-cp310-cp310-linux_x86_64.whl -c \ https://download.pytorch.org/whl/cu118/torch-2.0.1%2Bcu118-cp310-cp310-linux_x86_64.whl && \ + pip install --upgrade pip && \ pip install /cache/torch-2.0.1-cp310-cp310-linux_x86_64.whl torchvision --index-url https://download.pytorch.org/whl/cu118 @@ -70,12 +71,13 @@ RUN --mount=type=cache,target=/root/.cache/pip \ RUN apt-get -y install libgoogle-perftools-dev && apt-get clean ENV LD_PRELOAD=libtcmalloc.so -ARG SHA=5ef669de080814067961f28357256e8fe27544f4 +ARG SHA=v1.6.0 RUN --mount=type=cache,target=/root/.cache/pip \ cd stable-diffusion-webui && \ - git fetch && \ + git fetch --all --tags && \ git reset --hard ${SHA} && \ - pip install -r requirements_versions.txt + pip install -r requirements_versions.txt && \ + pip install httpx==0.24.1 COPY . /docker