Repository navigation
[Fix] Stop docker installs downgrading pillow and breaking arm64 prebundles - #6437
Merged
kellyguo11 merged 3 commits intoJul 11, 2026
Merged
Conversation
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).
Contributor
Greptile SummaryThis PR changes Pillow dependency handling for Isaac Sim Docker installs. The main changes are:
Confidence Score: 4/5The Docker prebundle fix looks mergeable after tightening the non-Docker Pillow version range.
pyproject.toml Important Files Changed
Reviews (1): Last reviewed commit: "Relax pillow pin to a floor to stop preb..." | Re-trigger Greptile |
| "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", |
Contributor
There was a problem hiding this comment.
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.
7 tasks
4 of 7 tasks
kellyguo11
approved these changes
Jul 11, 2026
This was referenced Jul 11, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
pillow==12.1.1pin 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 inomni.kit.pip_archive, danglingPIL/__init__.pyand breaking extension startup — the same failure class as thepackaging<24bound 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.0appears in their logs); the invariant made it loud.pillow>=12.1.1floor. 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.0would break again identically at the next bump).2. Test plan
test_install.py+test_install_prebundle.py— 32 passed locally.Publish Docker Imagesondevelop— tonight's failed run is the FAIL baseline; the arm64 leg passing post-fix is the validation, and the run publishes thelatest-developimage needed to retest NVBug 6410989.