From 496f0041393ab861f56a6f3aeb43e31f732e322f Mon Sep 17 00:00:00 2001 From: Pepijn Date: Tue, 14 Apr 2026 14:42:33 +0200 Subject: [PATCH] fix(docker): use uv pip to install robocasa in benchmark image MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The huggingface/lerobot-gpu base image uses `uv` with a venv at /lerobot/.venv — `pip` is not on PATH, so `pip install` fails with "pip: not found". Switch to `uv pip install` which installs into the existing venv. Also drop the @v1.0.0 tag pin from the robocasa git URL since the upstream repo may not have that tag; use default branch instead. Co-Authored-By: Claude Opus 4.6 (1M context) --- docker/Dockerfile.benchmark.robocasa | 8 +++++--- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile.benchmark.robocasa b/docker/Dockerfile.benchmark.robocasa index 81f036438..bb93b8236 100644 --- a/docker/Dockerfile.benchmark.robocasa +++ b/docker/Dockerfile.benchmark.robocasa @@ -21,9 +21,11 @@ FROM huggingface/lerobot-gpu:latest -# Install robocasa and its dependencies -RUN pip install --no-cache-dir \ - "robocasa @ git+https://github.com/robocasa/robocasa.git@v1.0.0" \ +# Install robocasa and its dependencies into the existing venv via uv pip. +# The base image uses uv with a venv at /lerobot/.venv (PATH already set), +# so `pip` is not available — use `uv pip install` instead. +RUN uv pip install --no-cache \ + "robocasa @ git+https://github.com/robocasa/robocasa.git" \ "robosuite @ git+https://github.com/ARISE-Initiative/robosuite.git" # Set up robocasa macros and download kitchen assets diff --git a/pyproject.toml b/pyproject.toml index 83277b503..ab0b8de42 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -206,7 +206,7 @@ aloha = ["lerobot[dataset]", "gym-aloha>=0.1.2,<0.2.0", "lerobot[scipy-dep]"] pusht = ["lerobot[dataset]", "gym-pusht>=0.1.5,<0.2.0", "pymunk>=6.6.0,<7.0.0"] # TODO: Fix pymunk version in gym-pusht instead libero = ["lerobot[dataset]", "lerobot[transformers-dep]", "hf-libero>=0.1.3,<0.2.0; sys_platform == 'linux'", "lerobot[scipy-dep]"] metaworld = ["lerobot[dataset]", "metaworld==3.0.0", "lerobot[scipy-dep]"] -robocasa = ["lerobot[dataset]", "robocasa @ git+https://github.com/robocasa/robocasa.git@v1.0.0", "robosuite @ git+https://github.com/ARISE-Initiative/robosuite.git", "lerobot[scipy-dep]"] +robocasa = ["lerobot[dataset]", "robocasa @ git+https://github.com/robocasa/robocasa.git", "robosuite @ git+https://github.com/ARISE-Initiative/robosuite.git", "lerobot[scipy-dep]"] # All all = [