Skip to content

Add pin (pinocchio) to holosoma_inference install_requires#115

Open
kingb wants to merge 1 commit into
amazon-far:mainfrom
kingb:dev/kingbrnd/setup-py-pin
Open

Add pin (pinocchio) to holosoma_inference install_requires#115
kingb wants to merge 1 commit into
amazon-far:mainfrom
kingb:dev/kingbrnd/setup-py-pin

Conversation

@kingb
Copy link
Copy Markdown
Contributor

@kingb kingb commented May 22, 2026

Summary

holosoma_inference.policies.wbt_utils imports pinocchio as pin, making it a runtime dependency for the WBT policy code path. It's not currently declared in src/holosoma_inference/setup.py::install_requires, so any environment that relies on pip's dependency resolution to install holosoma_inference (rather than layering pinocchio in manually) hits an ImportError on the first WBT call.

Pinned to >=3.8.0 to match the API surface used in wbt_utils.py.

Why now

Came up in code review on a downstream Dockerfile that explicitly installs pin>=3.8.0 as a workaround. Adding it here removes the need for that workaround in every consumer.

Test plan

  • pip install -e src/holosoma_inference[unitree] in a clean Python 3.12 venv now resolves and installs pin automatically.
  • python -c "from holosoma_inference.policies.wbt_utils import *" no longer raises ModuleNotFoundError: No module named 'pinocchio' in a fresh install.

`holosoma_inference.policies.wbt_utils` imports `pinocchio as pin`,
making `pin` a runtime dependency for the WBT policy code path.
It's not currently declared in setup.py, so any environment that
relies on pip's dep resolution to install holosoma_inference (vs.
manually layering it in) hits an ImportError on first WBT use.

Pin to >=3.8.0 to match the API surface used in wbt_utils.
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.

1 participant