Skip to content

[Fix] Stop docker installs downgrading pillow and breaking arm64 prebundles - #6437

Merged
kellyguo11 merged 3 commits into
isaac-sim:developfrom
hujc7:jichuanh/pillow-prebundle-floor
Jul 11, 2026
Merged

kellyguo11 merged 3 commits into
isaac-sim:developfrom
hujc7:jichuanh/pillow-prebundle-floor

Conversation

@hujc7

@hujc7 hujc7 commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Description

Follow-up to #6329, unblocks the nightly develop image publish (run 28990958659 failed its arm64 leg when the new post-install invariant caught the breakage).

1. Summary

  • The exact pillow==12.1.1 pin sits below the pillow 12.2.0 now prebundled by the Isaac Sim base image, so every docker install downgrades pillow. On aarch64 the deleted prebundled copy is the symlink-farm target in omni.kit.pip_archive, dangling PIL/__init__.py and breaking extension startup — the same failure class as the packaging<24 bound fixed in [Fix] Stop docker installs breaking Isaac Sim extension startup (prebundle deletion, pin-pink) #6329. Green nightlies were already doing this silently (Uninstalling pillow-12.2.0 appears in their logs); the invariant made it loud.
  • Fix: relax to a pillow>=12.1.1 floor. The prebundled version always satisfies it, so pip never touches the prebundle, and the pin doesn't need chasing on every base image bump (an exact ==12.2.0 would break again identically at the next bump).

2. Test plan

  • test_install.py + test_install_prebundle.py — 32 passed locally.
  • PR CI green.
  • After merge: dispatch Publish Docker Images on develop — tonight's failed run is the FAIL baseline; the arm64 leg passing post-fix is the validation, and the run publishes the latest-develop image needed to retest NVBug 6410989.

An exact pillow==12.1.1 pin below the version prebundled by the Isaac
Sim base image forces pip to downgrade during docker installs. On
aarch64 the deleted prebundled copy is the per-file symlink-farm target
in omni.kit.pip_archive, so the downgrade dangles PIL/__init__.py and
breaks extension startup — the failure mode the post-install invariant
now catches (it failed the nightly develop image build).

A >=12.1.1 floor is satisfied by whatever the base prebundles, so pip
never mutates the prebundle, and it does not need re-pinning on every
base image bump.

Fixes nvbugs 6410989 (arm64 leg).
@github-actions github-actions Bot added isaac-lab Related to Isaac Lab team infrastructure labels Jul 9, 2026
@greptile-apps

greptile-apps Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR changes Pillow dependency handling for Isaac Sim Docker installs. The main changes are:

  • Relaxed the root Pillow dependency from an exact pin to a minimum version.
  • Added an inline dependency comment explaining the prebundle downgrade issue.
  • Added a changelog fragment for the Docker prebundle fix.

Confidence Score: 4/5

The Docker prebundle fix looks mergeable after tightening the non-Docker Pillow version range.

  • The changed dependency floor avoids the reported Docker downgrade path.
  • The same floor can let local or CI installs pick a future incompatible Pillow release.
  • The changelog-only change is consistent with the dependency update.

pyproject.toml

Important Files Changed

Filename Overview
pyproject.toml Relaxes the Pillow requirement to avoid downgrading Isaac Sim's prebundled package during Docker installs.
source/isaaclab/changelog.d/jichuanh-pillow-prebundle-floor.rst Documents the Pillow prebundle downgrade fix.

Reviews (1): Last reviewed commit: "Relax pillow pin to a floor to stop preb..." | Re-trigger Greptile

Comment thread pyproject.toml
"pillow==12.1.1", # keep consistent with isaac sim
# pillow: floor, not exact — an exact pin below Isaac Sim's prebundled version forces a
# downgrade that deletes the prebundled copy other extensions symlink into (nvbugs 6410989).
"pillow>=12.1.1",

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 Pillow Versions

pillow>=12.1.1 lets non-Docker installs resolve any future Pillow major release because Pillow is not constrained elsewhere in the reviewed dependency metadata. If a local or CI install without the Isaac Sim prebundle picks a newer incompatible release, the existing PIL import paths can fail at import or image-processing time instead of staying on the known-good 12.x line.

@kellyguo11
kellyguo11 merged commit c01681b into isaac-sim:develop Jul 11, 2026
38 checks passed
myurasov-nv added a commit that referenced this pull request Jul 14, 2026
# 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:

   ```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]>
kellyguo11 pushed a commit that referenced this pull request Jul 14, 2026
…cker installs (#6467)

# Description

Cherry-pick of #6437 onto `release/3.0.0-beta2`, plus the `isaaclab_rl`
pillow floor that this branch's per-package install path additionally
needs. Unblocks the `Publish Docker Images` arm64 leg, which fails since
the #6436 post-install invariant landed (run
[29124274839](https://github.com/isaac-sim/IsaacLab/actions/runs/29124274839)).

## 1. Summary

- Root cause on this branch: `moviepy` (unpinned in `isaaclab_rl`)
resolves to 2.2.1, which caps `pillow<12.0`. The standalone
`isaaclab_rl` install batches do not have `isaaclab`'s pillow pin in
their resolution set, so pip downgrades pillow to 11.3.0 and uninstalls
the prebundled pillow 12.2.0 from `omni.kit.pip_archive` — on aarch64
that dangles the per-file symlink farm (228 links incl.
`PIL/__init__.py`) and breaks extension startup at runtime (nvbugs
6410989). Green builds before the invariant were already doing this
silently (run
[28493820266](https://github.com/isaac-sim/IsaacLab/actions/runs/28493820266)
shows the same `Uninstalling pillow-12.2.0`).
- `source/isaaclab_rl/setup.py`: added a `pillow>=12.1.1` floor — pip
then backs moviepy off to 1.0.3 instead of touching pillow.
- `source/isaaclab/setup.py`: relaxed the exact `pillow==12.2.0` pin to
`>=12.1.1` (the #6437 change), so a future Isaac Sim base-image bump
past the pinned version cannot force the same downgrade.
- `tools/wheel_builder/res/python_packages.toml`: mirrored both changes.
- `moviepy` bounded to `>=1.0.3,<2.0.0.dev0` (the #6454 change adapted
to this branch): with the floor excluding stable moviepy 2.x,
prerelease-allowing resolvers (uv with `prerelease = "allow"`) otherwise
fall through to the broken `2.0.0.dev2` build; the bound makes pip and
uv both resolve stable 1.0.3.

## 2. Backport adaptations vs #6437

- This branch predates the #6009 dependency centralization, so the floor
lands in the two `setup.py` files + the wheel spec instead of the root
`pyproject.toml`.
- The extra `isaaclab_rl` floor is beta2-specific: develop resolves
`isaaclab` + RL dependencies in one pip batch where the central floor is
in scope; this branch installs per package, so `isaaclab_rl`'s own
resolution needs the floor. An exact `pillow==12.2.0` in `isaaclab`
demonstrably did not protect it — the failing run shows `Uninstalling
pillow-12.2.0` during the `isaaclab_rl` batch with only a resolver
warning for the isaaclab pin.

## 3. Test plan

- [x] Resolver regression proof (py3.12 venv with pillow 12.2.0
preinstalled — the prebundle state — then `pip install --dry-run
--report` of `source/isaaclab_rl`):
- without fix: plans `pillow 11.3.0` + `moviepy 2.2.1` (the
prebundle-deleting downgrade)
- with fix: plans `moviepy 1.0.3` + `decorator 4.4.2`; pillow untouched
- [x] `source/isaaclab/test/cli` — 140 passed, 1 skipped locally.
- [x] pre-commit clean on all files.
- [ ] Local amd64 `docker build -f docker/Dockerfile.base` with the fix
(in progress).
- [ ] PR CI green (incl. Build Base Docker Image + ARM installation
tests).
- [x] arm64 proof: diagnostic PR #6469 ran the exact publish arm64 leg
(build-only) with this fix — green (run
[29134632249](https://github.com/isaac-sim/IsaacLab/actions/runs/29134632249)):
moviepy backtracks to 1.0.3, no pillow uninstall, post-install invariant
passes.
- [ ] After merge: the next `Publish Docker Images` run on
`release/3.0.0-beta2` validates the arm64 leg — run
[29124274839](https://github.com/isaac-sim/IsaacLab/actions/runs/29124274839)
is the FAIL baseline.
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
…undles (isaac-sim#6437)

# Description

Follow-up to isaac-sim#6329, unblocks the nightly develop image publish (run
28990958659 failed its arm64 leg when the new post-install invariant
caught the breakage).

## 1. Summary

- The exact `pillow==12.1.1` pin sits below the pillow **12.2.0** now
prebundled by the Isaac Sim base image, so every docker install
downgrades pillow. On aarch64 the deleted prebundled copy is the
symlink-farm target in `omni.kit.pip_archive`, dangling
`PIL/__init__.py` and breaking extension startup — the same failure
class as the `packaging<24` bound fixed in isaac-sim#6329. Green nightlies were
already doing this silently (`Uninstalling pillow-12.2.0` appears in
their logs); the invariant made it loud.
- Fix: relax to a `pillow>=12.1.1` floor. The prebundled version always
satisfies it, so pip never touches the prebundle, and the pin doesn't
need chasing on every base image bump (an exact `==12.2.0` would break
again identically at the next bump).

## 2. Test plan

- [x] `test_install.py` + `test_install_prebundle.py` — 32 passed
locally.
- [ ] PR CI green.
- [ ] After merge: dispatch `Publish Docker Images` on `develop` —
tonight's failed run is the FAIL baseline; the arm64 leg passing
post-fix is the validation, and the run publishes the `latest-develop`
image needed to retest NVBug 6410989.
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.

2 participants