Datasets:
ArXiv:
License:
Fix build: inline LD_LIBRARY_PATH in mujoco-py precompile (.env not visible during build); split image layers
Browse files21 unmodified lines2223242526272822 unmodified lines515253545556575859606162636421 unmodified lines- gym 0.18.3 (authors' pin) caps Pillow<=8.2.0; imageio>=2.10.5 floorspillow>=8.3.2. Fix: imageio==2.9.0 — the last release without a pillow pin,and the version the authors' `anaconda` metapackage (py3.8.5, 2021) shipped.- Two failed builds from this conflict are archived in logs/failed/."""import modal22 unmodified lines"/opt/conda/bin/conda tos accept --override-channels ""--channel https://repo.anaconda.com/pkgs/main --channel https://repo.anaconda.com/pkgs/r || true","/opt/conda/bin/conda create -y -n stbr python=3.8.5","/opt/conda/envs/stbr/bin/pip install --upgrade pip==24.0 setuptools==59.5.0 wheel==0.37.1","/opt/conda/envs/stbr/bin/pip install torch==2.4.1 --index-url https://download.pytorch.org/whl/cu121","/opt/conda/envs/stbr/bin/pip install numpy==1.23.5 gym==0.18.3 'cython<3' mujoco-py==2.1.2.14 ""pyyaml==5.4.1 coolname==1.1.0 termcolor==1.1.0 tensorboard==2.7.0 protobuf==3.17.3 ""tqdm==4.61.2 imageio==2.9.0 h5py==3.8.0 click cloudpickle==1.6.0 pyglet==1.5.0 ""scipy matplotlib==3.7.5 gymnasium==0.29.1 mujoco==2.3.7 imageio-ffmpeg",f"/opt/conda/envs/stbr/bin/pip install --no-deps "f"git+https://github.com/rail-berkeley/d4rl.git@{D4RL_COMMIT}",f"{PY} -c \"import mujoco_py; print('mujoco-py OK', mujoco_py.__version__)\"",).env({21 unmodified lines222324252627282922 unmodified lines5253545556575859606162636465666768697071727374757621 unmodified lines- gym 0.18.3 (authors' pin) caps Pillow<=8.2.0; imageio>=2.10.5 floorspillow>=8.3.2. Fix: imageio==2.9.0 — the last release without a pillow pin,and the version the authors' `anaconda` metapackage (py3.8.5, 2021) shipped.- .env() variables are NOT visible inside Modal build steps, so the mujoco-pyprecompile sets LD_LIBRARY_PATH inline."""import modal22 unmodified lines"/opt/conda/bin/conda tos accept --override-channels ""--channel https://repo.anaconda.com/pkgs/main --channel https://repo.anaconda.com/pkgs/r || true","/opt/conda/bin/conda create -y -n stbr python=3.8.5",).run_commands("/opt/conda/envs/stbr/bin/pip install --upgrade pip==24.0 setuptools==59.5.0 wheel==0.37.1","/opt/conda/envs/stbr/bin/pip install torch==2.4.1 --index-url https://download.pytorch.org/whl/cu121",).run_commands(# core deps from the authors' conda_env.yml (+ imageio 2.9.0, see notes)"/opt/conda/envs/stbr/bin/pip install numpy==1.23.5 gym==0.18.3 'cython<3' mujoco-py==2.1.2.14 ""pyyaml==5.4.1 coolname==1.1.0 termcolor==1.1.0 tensorboard==2.7.0 protobuf==3.17.3 ""tqdm==4.61.2 imageio==2.9.0 h5py==3.8.0 click cloudpickle==1.6.0 pyglet==1.5.0 ""scipy matplotlib==3.7.5",# modern gymnasium + mujoco: Step-3 MP4 rendering ONLY, never used by training"/opt/conda/envs/stbr/bin/pip install gymnasium==0.29.1 mujoco==2.3.7 imageio-ffmpeg",f"/opt/conda/envs/stbr/bin/pip install --no-deps "f"git+https://github.com/rail-berkeley/d4rl.git@{D4RL_COMMIT}",).run_commands(# precompile mujoco-py (LD_LIBRARY_PATH inline: .env() is not visible at build time)"LD_LIBRARY_PATH=/root/.mujoco/mujoco210/bin:/usr/lib/x86_64-linux-gnu "f"{PY} -c \"import mujoco_py; print('mujoco-py OK', mujoco_py.__version__)\"",).env({
code/modal_app.py+14-2