Repository navigation
Fixes deformable-body support being uninstallable on aarch64 - #6459
Conversation
|
Update: the earlier arm-ci failure (pillow prebundle replacement) was addressed here, then superseded by the upstream fix in #6437; this branch is rebased onto it. |
Greptile SummaryThis PR updates dependency handling for deformable-body installs on arm64. The main changes are:
Confidence Score: 5/5This looks safe to merge after small dependency-bounds cleanup.
pyproject.toml Important Files Changed
Reviews (1): Last reviewed commit: "Merge branch 'develop' into my-install-p..." | Re-trigger Greptile |
| "pytetwild==0.2.3 ; platform_machine in 'x86_64 AMD64'", | ||
| "pytetwild[all]>=0.3.0 ; platform_machine in 'aarch64 arm64'", |
There was a problem hiding this comment.
Unbounded Tetrahedralizer Version
On aarch64, fresh installs can resolve any future pytetwild release because this dependency has no upper bound. If a later release changes the tetrahedralize import or keyword arguments used by the deformable volume path, the install still succeeds but spawning a volume deformable can fail at runtime.
There was a problem hiding this comment.
Dear Greptile! Fixed: bounded to pytetwild[all]>=0.3.0,<0.4 on aarch64, mirroring the exact-pin caution used on x86_64 (commit b39c0cb).
| # Range, not an exact pin: Isaac Sim images prebundle pillow (12.1.1 or 12.2.0 depending | ||
| # on the image); an exact pin makes pip replace the prebundled copy when a dependency | ||
| # (e.g. pyvista) re-resolves pillow, deleting it through the extension symlink farms. | ||
| "pillow>=12.1.1,<13", |
There was a problem hiding this comment.
Prebundle Version Can Still Drift
This range allows resolvers to pick any later Pillow 12.x release, even when the Isaac Sim image prebundles only 12.1.1 or 12.2.0. In a full install where another dependency re-resolves Pillow, pip or uv can still install a different matching version and hit the same prebundle replacement path this change is trying to avoid.
There was a problem hiding this comment.
Dear Greptile! This pillow change is no longer part of this PR: it was superseded by the upstream fix in #6437 and dropped when rebasing onto it, so the drift concern now applies to the upstream line rather than this diff.
64441e7 to
088090c
Compare
088090c to
eebd9a4
Compare
|
The ARM CI failures are a runner network outage (PyPI unreachable during pip install), unrelated to this change. |
| # aarch64 wheels; it imports pyvista at import time but only declares it in its | ||
| # [all] extra, so depend on that extra there. | ||
| "pytetwild==0.2.3 ; platform_machine in 'x86_64 AMD64'", | ||
| "pytetwild[all]>=0.3.0,<0.4 ; platform_machine in 'aarch64 arm64'", |
There was a problem hiding this comment.
could we use the same newer version for both x86 and aarch64? @mmichelis for viz as well.
…im#6459) # Description `pytetwild` is platform-gated to x86_64 in the central pyproject, dating from when it had no Linux aarch64 wheel, so deformable-body support is uninstallable on aarch64: the deformables demo and the spawn_prims tutorial fail with `ModuleNotFoundError` after a full install. pytetwild 0.3.0 now ships manylinux aarch64 wheels; this installs it there with its `[all]` extra, since it imports `pyvista` at import time but declares that dependency only in the extra. Verified on a DGX Spark: the deformables demo runs, and the full install CI suite passes (37 passed, 0 failed, including both cartpole training tests). A pillow-pin interaction this PR originally worked around was fixed upstream in isaac-sim#6437; the pillow change has been dropped from this branch after rebasing onto it. | Before | After | | ------ | ----- | | `ModuleNotFoundError: No module named 'pytetwild'` when spawning deformables | demo runs; soft bodies deform and settle | ## Reproduction 1. Full install per the pip installation guide on Linux aarch64. 2. Run: ```bash ./isaaclab.sh -p scripts/demos/deformables.py ``` 3. The demo fails with `ModuleNotFoundError: No module named 'pytetwild'`. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump `extension.toml` — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Co-authored-by: Mikhail Yuraaov <[email protected]>
Description
pytetwildis platform-gated to x86_64 in the central pyproject, dating from when it had no Linux aarch64 wheel, so deformable-body support is uninstallable on aarch64: the deformables demo and the spawn_prims tutorial fail withModuleNotFoundErrorafter a full install. pytetwild 0.3.0 now ships manylinux aarch64 wheels; this installs it there with its[all]extra, since it importspyvistaat import time but declares that dependency only in the extra. Verified on a DGX Spark: the deformables demo runs, and the full install CI suite passes (37 passed, 0 failed, including both cartpole training tests).A pillow-pin interaction this PR originally worked around was fixed upstream in #6437; the pillow change has been dropped from this branch after rebasing onto it.
ModuleNotFoundError: No module named 'pytetwild'when spawning deformablesReproduction
Full install per the pip installation guide on Linux aarch64.
Run:
The demo fails with
ModuleNotFoundError: No module named 'pytetwild'.Type of change
Checklist
pre-commitchecks with./isaaclab.sh --formatsource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bumpextension.toml— CI handles that)CONTRIBUTORS.mdor my name already exists there