mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-22 20:19:43 +00:00
fix(docker): create libero config.yaml for non-plus LIBERO builds
The generic libero benchmark case was falling through to the wildcard install path, which doesn't pre-create ~/.libero/config.yaml. This caused an interactive input() prompt that crashes in Docker (EOFError). Made-with: Cursor
This commit is contained in:
@@ -138,6 +138,17 @@ d = dict(benchmark_root=root, bddl_files=os.path.join(root,'bddl_files'), \
|
|||||||
init_states=os.path.join(root,'init_files'), datasets=os.path.join(root,'..','datasets'), \
|
init_states=os.path.join(root,'init_files'), datasets=os.path.join(root,'..','datasets'), \
|
||||||
assets=os.path.join(root,'assets')); \
|
assets=os.path.join(root,'assets')); \
|
||||||
cfg_dir = os.path.expanduser('~/.libero'); os.makedirs(cfg_dir, exist_ok=True); \
|
cfg_dir = os.path.expanduser('~/.libero'); os.makedirs(cfg_dir, exist_ok=True); \
|
||||||
|
yaml.dump(d, open(os.path.join(cfg_dir,'config.yaml'),'w')); print('libero config created')" \
|
||||||
|
&& /lerobot/.venv/bin/python -c "from libero.libero import benchmark, get_libero_path; print('libero OK')" ;; \
|
||||||
|
libero) \
|
||||||
|
uv pip install --no-cache ".[libero]" \
|
||||||
|
&& /lerobot/.venv/bin/python -c "\
|
||||||
|
import os, yaml, importlib.util; \
|
||||||
|
root = os.path.dirname(importlib.util.find_spec('libero.libero').origin); \
|
||||||
|
d = dict(benchmark_root=root, bddl_files=os.path.join(root,'bddl_files'), \
|
||||||
|
init_states=os.path.join(root,'init_files'), datasets=os.path.join(root,'..','datasets'), \
|
||||||
|
assets=os.path.join(root,'assets')); \
|
||||||
|
cfg_dir = os.path.expanduser('~/.libero'); os.makedirs(cfg_dir, exist_ok=True); \
|
||||||
yaml.dump(d, open(os.path.join(cfg_dir,'config.yaml'),'w')); print('libero config created')" \
|
yaml.dump(d, open(os.path.join(cfg_dir,'config.yaml'),'w')); print('libero config created')" \
|
||||||
&& /lerobot/.venv/bin/python -c "from libero.libero import benchmark, get_libero_path; print('libero OK')" ;; \
|
&& /lerobot/.venv/bin/python -c "from libero.libero import benchmark, get_libero_path; print('libero OK')" ;; \
|
||||||
*) \
|
*) \
|
||||||
|
|||||||
Reference in New Issue
Block a user