Gertie01 / app-jwutik-78: Report

Job failed with exit code: 1. Reason: cache miss: [pipfreeze 1/2] RUN mkdir -p /pipfreeze cache miss: [base 6/7] RUN --mount=target=/tmp/requirements.txt,source=requirements.txt pip install --no-cache-dir -r /tmp/requirements.txt cache miss: [run 3/3] LINK COPY --from=pipfreeze --link /pipfreeze/ /pipfreeze/ cache miss: [run 3/3] COPY --from=pipfreeze --link /pipfreeze/ /pipfreeze/ cache miss: [base 7/7] RUN pip install --no-cache-dir gradio[oauth,mcp]==5.49.1 “uvicorn>=0.14.0” spaces cache miss: [run 1/3] LINK COPY --link ./ /app cache miss: [run 1/3] COPY --link ./ /app cache miss: [pipfreeze 2/2] RUN pip freeze > /pipfreeze/freeze.txt cache miss: [run 2/3] RUN mkdir -p /home/user && ( [ -e /home/user/app ] || ln -s /app/ /home/user/app ) || true {“total”:26,“completed”:19,“user_total”:15,“user_cached”:5,“user_completed”:8,“user_cacheable”:14,“from”:1,“miss”:9,“client_duration_ms”:11827}

Build logs:

===== Build Queued at 2025-11-09 19:59:07 / Commit SHA: 66acfe4 =====

--> FROM docker.io/library/python:3.10@sha256:e944d95e7277b5888479cc4bcd6cec63e3128fec9ec4c6ef099be470d89b54d4
DONE 0.0s

--> WORKDIR /app
CACHED

--> RUN pip install --no-cache-dir pip -U && 	pip install --no-cache-dir 	datasets 	"huggingface-hub>=0.30" "hf-transfer>=0.1.4" "protobuf<4" "click<8.1" "pydantic~=1.0"
CACHED

--> RUN apt-get update && apt-get install -y 	git 	git-lfs 	ffmpeg 	libsm6 	libxext6 	cmake 	rsync 	libgl1 	&& rm -rf /var/lib/apt/lists/* 	&& git lfs install
CACHED

--> COPY --from=root / /
CACHED

--> RUN 	apt-get update && 	apt-get install -y curl && 	curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && 	apt-get install -y nodejs && 	rm -rf /var/lib/apt/lists/* && apt-get clean
CACHED

--> Restoring cache
DONE 10.9s

--> RUN --mount=target=/tmp/requirements.txt,source=requirements.txt     pip install --no-cache-dir -r /tmp/requirements.txt
Collecting git+https://github.com/huggingface/spaces (from -r /tmp/requirements.txt (line 12))
  Cloning https://github.com/huggingface/spaces to /tmp/pip-req-build-samoca2r
  Running command git clone --filter=blob:none --quiet https://github.com/huggingface/spaces /tmp/pip-req-build-samoca2r
  fatal: could not read Username for 'https://github.com': No such device or address
  error: subprocess-exited-with-error
  
  × git clone --filter=blob:none --quiet https://github.com/huggingface/spaces /tmp/pip-req-build-samoca2r did not run successfully.
  │ exit code: 128
  ╰─> No available output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'git+https://github.com/huggingface/spaces' when git clone --filter=blob:none --quiet https://github.com/huggingface/spaces /tmp/pip-req-build-samoca2r

--> ERROR: process "/bin/sh -c pip install --no-cache-dir -r /tmp/requirements.txt" did not complete successfully: exit code: 1
1 Like

I have the same error when building my space. Any help on that?

1 Like

Due to pip’s limitations, the git+URL style in requirements.txt won’t work in this case.
Therefore, if installation from GitHub isn’t essential, you can work around this by using the pip version