Skip to content

Commit

Permalink
fix: downgrade httpx to remove error
Browse files Browse the repository at this point in the history
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:
AUTOMATIC1111/stable-diffusion-webui#13836
AUTOMATIC1111/stable-diffusion-webui#13236 (comment)
  • Loading branch information
smourph committed Nov 3, 2023
1 parent bc68aa0 commit fba63e8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions services/AUTOMATIC1111/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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

Expand Down

0 comments on commit fba63e8

Please sign in to comment.