Skip to content

[Fix] Cherry-pick pillow floor to stop arm64 prebundle deletion in docker installs - #6467

Merged
kellyguo11 merged 2 commits into
isaac-sim:release/3.0.0-beta2from
hujc7:jichuanh/cherrypick-6437-release-3.0.0-beta2
Jul 14, 2026
Merged

kellyguo11 merged 2 commits into
isaac-sim:release/3.0.0-beta2from
hujc7:jichuanh/cherrypick-6437-release-3.0.0-beta2

Conversation

@hujc7

@hujc7 hujc7 commented Jul 11, 2026 •

Copy link
Copy Markdown
Collaborator

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

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 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 [Fix] Stop docker installs downgrading pillow and breaking arm64 prebundles #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 Fixes video recording crashing on installs that resolve moviepy 2.0.0.dev2 #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 Update the central pyproject, remove subpackage specific dependencies #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

  • 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
  • source/isaaclab/test/cli — 140 passed, 1 skipped locally.
  • 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).
  • arm64 proof: diagnostic PR [TEST][DO-NOT-MERGE] Prove arm64 image build passes with the beta2 pillow floor #6469 ran the exact publish arm64 leg (build-only) with this fix — green (run 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 is the FAIL baseline.

Cherry-pick of isaac-sim#6437 onto release/3.0.0-beta2, plus the isaaclab_rl
floor the per-package install path on this branch needs.

The publish-images arm64 leg fails since the isaac-sim#6436 invariant landed:
moviepy 2.2.1 caps pillow<12.0, so the isaaclab_rl install batches
downgrade pillow to 11.3.0 and delete the prebundled pillow 12.2.0
from omni.kit.pip_archive, dangling its per-file symlink farm on
aarch64 (nvbugs 6410989). isaaclab's own pillow==12.2.0 pin is not in
scope of those batches, so it only produces a resolver warning.

- Relax isaaclab's exact pillow==12.2.0 pin to >=12.1.1 so a future
  base-image bump cannot force the same downgrade (mirrors isaac-sim#6437).
- Add pillow>=12.1.1 to isaaclab_rl so its standalone batches back
  moviepy off to 1.0.3 instead of downgrading pillow.
- Mirror both changes in tools/wheel_builder/res/python_packages.toml.
Mirror of isaac-sim#6454 adapted to this branch: with the pillow floor in
place, stable moviepy 2.x (pillow<12.0 cap) is excluded, and
prerelease-allowing resolvers (uv with prerelease=allow) fall through
to the broken 2.0.0.dev2 build whose write_videofile drops the clip
fps and crashes video recording. The explicit >=1.0.3,<2.0.0.dev0
bound makes pip and uv both resolve stable 1.0.3.
@hujc7
hujc7 marked this pull request as ready for review July 12, 2026 04:49
@greptile-apps

greptile-apps Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR updates packaging constraints to avoid deleting Isaac Sim's prebundled Pillow copy.

  • Relaxed the isaaclab Pillow pin to a minimum version.
  • Added the same Pillow floor to isaaclab_rl standalone installs.
  • Bounded moviepy to the stable 1.x line for RL video recording.
  • Mirrored the dependency changes in the wheel-builder metadata.
  • Added changelog entries for both packages.

Confidence Score: 5/5

This looks safe to merge after considering the dependency-boundary cleanup.

  • No blocking issues found in the changed code.
  • The remaining notes are future-version hardening around open-ended Pillow resolution.

Important Files Changed

Filename Overview
source/isaaclab/setup.py Replaces the exact Pillow pin with a floor to avoid resolver downgrades of Isaac Sim's prebundled copy.
source/isaaclab_rl/setup.py Adds the Pillow floor and bounds MoviePy to the stable 1.x line for standalone RL installs.
tools/wheel_builder/res/python_packages.toml Mirrors the setup dependency changes into the generated wheel metadata.
source/isaaclab/changelog.d/jichuanh-pillow-prebundle-floor.rst Documents the IsaacLab Pillow prebundle downgrade fix.
source/isaaclab_rl/changelog.d/jichuanh-pillow-prebundle-floor.rst Documents the standalone RL Pillow and MoviePy resolver fixes.

Reviews (1): Last reviewed commit: "Bound moviepy to the 1.x line" | Re-trigger Greptile

Comment thread source/isaaclab/setup.py
"pillow==12.2.0",
# 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 Future Pillow Major Floats In

With only pillow>=12.1.1, a fresh install can resolve to the next compatible Pillow major as soon as it is published, instead of staying on the Isaac Sim prebundle line this package is trying to protect. If Isaac Sim extensions still ship and test against Pillow 12.x, this can put the active environment and the prebundle on different major versions and break extension startup or image handling without another dependency change.

"pillow==12.2.0",
# 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 Wheel Pillow Major Floats In

The generated wheel receives the same open-ended pillow>=12.1.1 dependency. A standalone wheel install can therefore pick a future Pillow major automatically, even though this dependency is meant to stay compatible with the Isaac Sim prebundled Pillow line, so users can get a different major version at install time without changing IsaacLab.

@hujc7
hujc7 requested a review from kellyguo11 July 12, 2026 04:53
@kellyguo11
kellyguo11 merged commit 763cb1c into isaac-sim:release/3.0.0-beta2 Jul 14, 2026
52 of 59 checks passed
@hujc7
hujc7 deleted the jichuanh/cherrypick-6437-release-3.0.0-beta2 branch July 14, 2026 04:53
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