runpod-workers / worker-a1111

Automatic1111 serverless worker.
MIT License
77 stars 114 forks source link

building a docker image of a worker => ERROR [build_final_image 12/17] :( #39

Open jayjake0 opened 2 months ago

jayjake0 commented 2 months ago

Hi :) I tried to use your worker and build it with Docker. Unfortunately there are some dependencies issues. Script failed on:

=> ERROR [build_final_image 12/17] RUN --mount=type=cache,target=/root/.cache/pip pip install --upgrade pip && pip install --upgrade -r /requirements.txt --no-cache-dir && rm /requirements.txt 37.8s

with an ERROR:

37.11 Requested torchsde==0.2.5 from https://files.pythonhosted.org/packages/73/8d/efd3e7b31ea854d0bd6886aa3cf44914adce113a6d460850af41ac1dd4dd/torchsde-0.2.5-py3-none-any.whl (from -r /requirements.txt (line 25)) has invalid metadata: .* suffix can only be used with `==` or `!=` operators
37.11     numpy (>=1.19.*) ; python_version >= "3.7"
37.11            ~~~~~~~^
37.11 Please use pip<24.1 if you need to use this version.
37.11 ERROR: Could not find a version that satisfies the requirement torchsde==0.2.5 (from versions: 0.2.5, 0.2.6)
37.30 ERROR: No matching distribution found for torchsde==0.2.5
------

 2 warnings found (use docker --debug to expand):
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 4)
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 32)
Dockerfile:69
--------------------
  68 |     COPY builder/requirements.txt /requirements.txt
  69 | >>> RUN --mount=type=cache,target=/root/.cache/pip \
  70 | >>>     pip install --upgrade pip && \
  71 | >>>     pip install --upgrade -r /requirements.txt --no-cache-dir && \
  72 | >>>     rm /requirements.txt
  73 |     
--------------------
ERROR: failed to solve: process "/bin/bash -o pipefail -c pip install --upgrade pip &&     pip install --upgrade -r /requirements.txt --no-cache-dir &&     rm /requirements.txt" did not complete successfully: exit code: 1

Any idea how to approach fixing it?

Thank you for any suggestions :)

danielba777 commented 2 months ago

Same issue... Could you resolve it?

athos54 commented 1 month ago

same issue