docs(install): fix required system libs, replay size, and library-ins…#2320
docs(install): fix required system libs, replay size, and library-ins…#2320KrishnaH96 wants to merge 6 commits into
Conversation
…tall noise (#2119) - ubuntu.md: add libgl1/libegl1 — OpenGL runtime for the always-installed open3d + rerun-sdk core deps (matches scripts/install.sh); without them the visualizer fails at runtime with "libGL.so.1: cannot open shared object file" on minimal/headless/Docker installs. Drop pre-commit (a dev dependency-group tool, irrelevant to library users). - osx.md: drop pre-commit. - ubuntu.md/osx.md: note the inline `export PATH` is session-only (uv persists via the shell profile; open a new terminal). - go2/index.md: correct replay first-run download to ~85 MB LFS / ~220 MB SQLite DB (was "~2.4 GB of LiDAR/video"), resolving the README vs go2 inconsistency. Validated by hand on Ubuntu 24.04 per #2119.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…#2119) - ubuntu.md: mention optional graphviz for blueprint-graph visualization (dimos logs "graphviz not found, skipping blueprint graph" without it; everything else still works). - go2/index.md: note the first MuJoCo sim run also clones mujoco_menagerie and pulls a ~60 MB mujoco_sim asset bundle from LFS (one-time).
…issing (#2119) Agentic blueprints use OpenAI for text-to-speech (SpeakSkill) and, by default, the LLM agent. Without OPENAI_API_KEY the run previously crashed deep in start_all_modules with an opaque ExceptionGroup (a SpeakSkill.start failure), after already deploying modules and downloading assets. Add an openai_api_key_set blueprint requirement check (mirroring ollama_installed) on _common_agentic, so a missing key now fails at blueprint build with a clear, actionable message + key link — before any modules deploy. This also makes the OpenAI dependency of the -ollama variant explicit (it uses OpenAI TTS even with a local LLM).
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
| # install dependencies | ||
| brew install gnu-sed gcc portaudio git-lfs libjpeg-turbo python pre-commit | ||
| brew install gnu-sed gcc portaudio git-lfs libjpeg-turbo python |
There was a problem hiding this comment.
in both os install instructions pre-commit is used if using as a git-checkout
| sudo apt-get install -y curl g++ portaudio19-dev git-lfs libturbojpeg python3-dev pre-commit | ||
| # Required system libraries. libturbojpeg + portaudio19-dev cover image/audio; libgl1 + | ||
| # libegl1 are the OpenGL runtime for open3d and rerun-sdk (both always-installed core deps). | ||
| # Without libgl1/libegl1 the visualizer fails at runtime with |
| # SpeakSkill (OpenAI TTS) needs OPENAI_API_KEY — fail fast at blueprint build with a | ||
| # clear message instead of an ExceptionGroup deep in start_all_modules. Mirrors the | ||
| # ollama_installed gate used by the -ollama variant. | ||
| openai_api_key_set, |
There was a problem hiding this comment.
@Dreamsorcerer if we put this key as required config value for a module, will we be able to auto-crash? not to have a special case here
There was a problem hiding this comment.
Yes, so it can either be a key for the module specifically, or we could add it to the global config and link to it.
Roughly:
openai_key: str = Field(default_factory=lambda d: d["g"].openai_key)
The global config openai_key can still be str | None.
You might also need to add validate_default=True to the pydantic config (maybe add it to BaseConfig or ModuleConfig to apply everywhere?)
| # NOTE: the `export` above only affects the current shell. Open a new terminal (or run | ||
| # `source ~/.bashrc`) so `uv` is on PATH in later sessions — the installer also adds it there. |
There was a problem hiding this comment.
I don't think this comment is necessary. Are there cases where uv is not accessible in other terminals after installation?
Part of #2119 (validate README / install examples). Small, hand-validated install-doc fixes (tested on Ubuntu 24.04).
Changes
ubuntu.md— addlibgl1 libegl1(OpenGL runtime for the always-installedopen3d+rerun-sdkcore deps; matchesscripts/install.sh). Without them the visualizer fails at runtime withlibGL.so.1: cannot open shared object fileon minimal/headless/Docker installs. Also droppre-commit(a dev[dependency-groups]tool, not needed by library users).osx.md— droppre-commit.ubuntu.md/osx.md— note the inlineexport PATHis session-only (uv persists via the shell profile; open a new terminal).go2/index.md— correct the replay first-run download to ~85 MB LFS / ~220 MB SQLite DB (was "~2.4 GB of LiDAR/video"), resolving the README-vs-go2size inconsistency raised on Validate readme/install examples #2119.Notes
Draft — description to be expanded. Broader #2119 findings (agentic-runfile import crash on the PyPI wheel,
base[unitree]pulling torch, dev-install command divergence) will be summarized separately.Contributor License Agreement