Skip to content

Docker looks for non-existent huggingface/lerobot commit ID #313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hypercosmac opened this issue Feb 18, 2025 · 7 comments
Closed

Docker looks for non-existent huggingface/lerobot commit ID #313

hypercosmac opened this issue Feb 18, 2025 · 7 comments
Assignees

Comments

@hypercosmac
Copy link

hypercosmac commented Feb 18, 2025

Command:
$ openpi % docker compose -f examples/aloha_sim/compose.yml up --build

Error:
Caused by: Failed to download and build lerobot @ git+https://github.com/huggingface/lerobot@6674e368249472c91382eb54bb8501c94c7f0c56

failed to solve: process "/bin/sh -c GIT_LFS_SKIP_SMUDGE=1 uv sync --frozen --no-install-project --no-dev" did not complete successfully: exit code: 2

This commit doesn't exist anymore - https://github.com/huggingface/lerobot/6674e368249472c91382eb54bb8501c94c7f0c56
I've tried updating reference in pyproject.toml but it still fails

Full Output:

[+] Building 34.8s (11/12)                                 docker:desktop-linux
[+] Building 34.9s (11/12)                                 docker:desktop-linux
[+] Building 35.1s (11/12)                                 docker:desktop-linux
[+] Building 77.7s (12/12) FINISHED                        docker:desktop-linux
 => [openpi_server internal] load build definition from serve_policy.Dock  0.0s
 => => transferring dockerfile: 1.59kB                                     0.0s
 => [openpi_server internal] load metadata for docker.io/nvidia/cuda:12.2  2.9s
 => [openpi_server internal] load metadata for ghcr.io/astral-sh/uv:0.5.1  2.0s
 => [openpi_server internal] load .dockerignore                            0.0s
 => => transferring context: 63B                                           0.0s
 => [openpi_server] FROM ghcr.io/astral-sh/uv:0.5.1@sha256:190cbcca15602b  0.0s
 => [openpi_server internal] load build context                            0.0s
 => => transferring context: 1.48kB                                        0.0s
 => [openpi_server stage-0 1/6] FROM docker.io/nvidia/cuda:12.2.2-cudnn8-  0.0s
 => CACHED [openpi_server stage-0 2/6] COPY --from=ghcr.io/astral-sh/uv:0  0.0s
 => CACHED [openpi_server stage-0 3/6] WORKDIR /app                        0.0s
 => CACHED [openpi_server stage-0 4/6] RUN apt-get update && apt-get inst  0.0s
 => CACHED [openpi_server stage-0 5/6] RUN uv venv --python 3.11.9 /.venv  0.0s
 => ERROR [openpi_server stage-0 6/6] RUN --mount=type=cache,target=/roo  74.7s
------                                                                          
 > [openpi_server stage-0 6/6] RUN --mount=type=cache,target=/root/.cache/uv     --mount=type=bind,source=uv.lock,target=uv.lock     --mount=type=bind,source=pyproject.toml,target=pyproject.toml     --mount=type=bind,source=packages/openpi-client/pyproject.toml,target=packages/openpi-client/pyproject.toml     --mount=type=bind,source=packages/openpi-client/src,target=packages/openpi-client/src     GIT_LFS_SKIP_SMUDGE=1 uv sync --frozen --no-install-project --no-dev:
74.63 error: Failed to prepare distributions
74.63   Caused by: Failed to download and build `lerobot @ git+https://github.com/huggingface/lerobot@6674e368249472c91382eb54bb8501c94c7f0c56`
74.63   Caused by: Git operation failed
74.63   Caused by: failed to fetch into: /root/.cache/uv/git-v0/db/b2400a7a62d6a7cf
74.63   Caused by: failed to fetch commit `6674e368249472c91382eb54bb8501c94c7f0c56`
74.63   Caused by: process didn't exit successfully: `/usr/bin/git fetch --force --update-head-ok 'https://github.com/huggingface/lerobot' '+6674e368249472c91382eb54bb8501c94c7f0c56:refs/commit/6674e368249472c91382eb54bb8501c94c7f0c56'` (exit status: 128)
74.63 --- stderr
74.63 error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
74.63 error: 2833 bytes of body are still expected
74.63 fetch-pack: unexpected disconnect while reading sideband packet
74.63 fatal: early EOF
74.63 fatal: fetch-pack: invalid index-pack output
------
failed to solve: process "/bin/sh -c GIT_LFS_SKIP_SMUDGE=1 uv sync --frozen --no-install-project --no-dev" did not complete successfully: exit code: 2
@uzhilinsky
Copy link
Collaborator

I am unable to reproduce the issue but we'll discuss this with our friends at LeRobot and try to figure out a better way to pull the LeRobot dependencies into this codebase.

@aliberts
Copy link

aliberts commented Feb 20, 2025

I've looked into it, commit still exists at huggingface/lerobot@6674e36

The url works again when preprending the commit SHA with commit/, I'm not sure why, perhaps a change from github itself but I couldn't find any reference online. EDIT: actually I'm not sure you could ever refer to a commit SHA without commit/ before.

https://github.com/huggingface/lerobot/commit/6674e368249472c91382eb54bb8501c94c7f0c56
                                       ⌃⌃⌃⌃⌃⌃⌃

@aliberts
Copy link

figure out a better way to pull the LeRobot dependencies into this codebase.

We're working towards a proper package release on pypi as fast as possible, hopefully in the coming months. In the meantime, locking lerobot version with a commit hash is probably the best way to do it.

@uzhilinsky
Copy link
Collaborator

Thanks @aliberts !

@hypercosmac , are you still running into this issue?

@uzhilinsky uzhilinsky self-assigned this Feb 21, 2025
@hypercosmac
Copy link
Author

Thanks all, @uzhilinsky I no longer have the issue, not sure what caused it.

@kimsooyoung
Copy link

If someone encountered this issue, Don't forget to execute GIT_LFS_SKIP_SMUDGE=1 uv sync before running scripts. ;)

@jamlu614
Copy link

jamlu614 commented Feb 28, 2025

I have the same problem, running this command causes it to appear.
docker compose -f examples/aloha_sim/compose.yml up --build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants