Skip to content

console extra: declare viser + mj-viser deps (#162) - #163

Merged
siddhss5 merged 2 commits into
mainfrom
fix/162-declare-viser-deps
May 28, 2026
Merged

console extra: declare viser + mj-viser deps (#162)#163
siddhss5 merged 2 commits into
mainfrom
fix/162-declare-viser-deps

Conversation

@siddhss5

@siddhss5 siddhss5 commented May 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

Two related fixes to make the CLI work on a fresh clone:

  1. viser + mj-viserconsole.py soft-imports them when viser=True, but neither was declared. mj-viser was also an orphan workspace member (nothing depended on it).
  2. py_trees promotedprimitives.py top-level imports py_trees, and primitives is part of the public API exposed by start_console(). So py_trees is a hard runtime requirement, not an optional [bt] extra. The [bt] extra is removed (no external consumers reference it in this workspace).

Fixes #162

Test plan

  • uv sync --extra console --package mj-manipulator installs viser + mj_viser (editable from workspace) and py_trees.
  • uv run --package mj-manipulator python -c "import viser, mj_viser, py_trees" works.
  • Verified end-to-end via the ada_mj feeding CLI: viser binds :8080, banner prints, REPL launches cleanly. See companion PRs:

mj_manipulator/console.py soft-imports `viser` and `mj_viser` when
`viser=True` is passed to start_console(), but neither was declared.
Fresh `uv sync` skipped them — `--viser` failed with ModuleNotFoundError.

Adds both to the [console] extra (the only entry point that triggers
the soft import) and registers `mj-viser` as a workspace source so
local dev resolves to the editable workspace member.

Fixes #162
mj_manipulator/primitives.py top-level imports `py_trees`, and
primitives is part of the public API exposed by start_console() and
elsewhere. So py_trees is a hard runtime requirement, not an optional
extra.

Moves `py_trees>=2.2` from the [bt] extra to main `dependencies`, and
removes the [bt] extra entirely (no external consumers reference it
in this workspace). Drops the redundant `mj-manipulator[bt]`
self-reference from the [console] extra.

Refs #162
@siddhss5
siddhss5 merged commit c6d1754 into main May 28, 2026
3 checks passed
@siddhss5
siddhss5 deleted the fix/162-declare-viser-deps branch May 28, 2026 17:41
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

Successfully merging this pull request may close these issues.

CLI --viser flag fails on fresh clone: viser/mj-viser not declared as deps

1 participant