Skip to content

Fixes deformable-body support being uninstallable on aarch64 - #6459

Merged
myurasov-nv merged 3 commits into
isaac-sim:developfrom
myurasov-nv:my-install-pytetwild
Jul 14, 2026
Merged

myurasov-nv merged 3 commits into
isaac-sim:developfrom
myurasov-nv:my-install-pytetwild

Conversation

@myurasov-nv

@myurasov-nv myurasov-nv commented Jul 10, 2026 •

Copy link
Copy Markdown
Member

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 #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:

    ./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

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • 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)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@github-actions github-actions Bot added isaac-lab Related to Isaac Lab team infrastructure labels Jul 10, 2026
@myurasov-nv

myurasov-nv commented Jul 11, 2026 •

Copy link
Copy Markdown
Member Author

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.

@myurasov-nv
myurasov-nv marked this pull request as ready for review July 11, 2026 03:46
@greptile-apps

greptile-apps Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR updates dependency handling for deformable-body installs on arm64. The main changes are:

  • Adds pytetwild[all] for aarch64 and arm64 installs.
  • Keeps the existing pytetwild==0.2.3 behavior on x86_64 and AMD64.
  • Relaxes Pillow from an exact pin to a bounded 12.x range.
  • Adds a changelog fragment for the install fix.

Confidence Score: 5/5

This looks safe to merge after small dependency-bounds cleanup.

  • No blocking issues found in the changed code.
  • The remaining comments are about dependency drift that can affect future or resolver-dependent installs.

pyproject.toml

Important Files Changed

Filename Overview
pyproject.toml Updates platform-gated pytetwild dependencies and relaxes Pillow to a 12.x range.
source/isaaclab/changelog.d/my-install-pytetwild.rst Adds release notes for the arm64 deformable-body install fix and Pillow range change.

Reviews (1): Last reviewed commit: "Merge branch 'develop' into my-install-p..." | Re-trigger Greptile

Comment thread pyproject.toml Outdated
"pytetwild==0.2.3 ; platform_machine in 'x86_64 AMD64'",
"pytetwild[all]>=0.3.0 ; platform_machine in 'aarch64 arm64'",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

Comment thread pyproject.toml Outdated
# 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",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@myurasov-nv
myurasov-nv force-pushed the my-install-pytetwild branch from 088090c to eebd9a4 Compare July 11, 2026 23:53
@myurasov-nv

Copy link
Copy Markdown
Member Author

The ARM CI failures are a runner network outage (PyPI unreachable during pip install), unrelated to this change.

Comment thread pyproject.toml
# 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'",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we use the same newer version for both x86 and aarch64? @mmichelis for viz as well.

@myurasov-nv
myurasov-nv merged commit 70603bf into isaac-sim:develop Jul 14, 2026
61 of 63 checks passed
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants