Skip to content

setup.sh: wipe stale per-package .venv dirs before uv sync (#62)#63

Merged
siddhss5 merged 1 commit into
mainfrom
fix/wipe-stale-per-package-venvs
May 28, 2026
Merged

setup.sh: wipe stale per-package .venv dirs before uv sync (#62)#63
siddhss5 merged 1 commit into
mainfrom
fix/wipe-stale-per-package-venvs

Conversation

@siddhss5
Copy link
Copy Markdown
Collaborator

Summary

  • uv run inside a workspace member with its own .venv/ directory uses that local venv instead of the shared workspace one. Per-package venvs can be missing transitive deps that the workspace uv sync would install — silently producing ModuleNotFoundError.
  • This was the root cause that masked the dep-declaration bugs fixed in personalrobotics/mj_manipulator#163, personalrobotics/ada_mj#38, and personalrobotics/geodude#195.
  • Adds a wipe step before uv sync. Idempotent.

Fixes #62

Test plan

  • Ran setup.sh-equivalent locally: wiped ada_mj/.venv, ada_assets/.venv, mj_manipulator_ros/.venv, re-synced, launched python -m ada_mj --demo feeding --viser cleanly.
  • After fresh clone, ./setup.sh should not leave any per-package .venv and all CLIs should work with --viser.

Out of scope

  • setup.sh doesn't clone ada_assets / ada_mj even though they're workspace members. Worth filing separately.

`uv run` inside a workspace member with its own .venv directory uses
that local venv instead of the shared workspace one. Per-package venvs
can be missing transitive deps that the workspace sync would install —
silently producing ModuleNotFoundError. This was the root cause that
masked the dep-declaration bugs fixed in mj_manipulator#163,
ada_mj#38, and geodude#195.

Idempotent: re-running setup.sh just deletes any per-package venvs
that have re-appeared.

Fixes #62
@siddhss5 siddhss5 merged commit 3748c4e into main May 28, 2026
1 of 3 checks passed
@siddhss5 siddhss5 deleted the fix/wipe-stale-per-package-venvs branch May 28, 2026 17:43
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.

setup.sh leaves stale per-package .venv dirs that override workspace venv

1 participant