Skip to content

Fixes video recording crashing on installs that resolve moviepy 2.0.0.dev2 - #6454

Merged
ooctipus merged 3 commits into
isaac-sim:developfrom
myurasov-nv:my-moviepy-bound
Jul 13, 2026
Merged

ooctipus merged 3 commits into
isaac-sim:developfrom
myurasov-nv:my-moviepy-bound

Conversation

@myurasov-nv

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

Copy link
Copy Markdown
Member

Description

Installs that allow pre-releases (as the documented Isaac Sim pip install does) resolve the unbounded moviepy dependency to the broken 2.0.0.dev2 build, whose write_videofile drops the clip fps. Every RecordVideo write then fails with TypeError: must be real number, not NoneType, and --video runs exit 1. Bounding to moviepy>=1.0.3,<2.0.0.dev0 pins the 1.x line (stable 2.x cannot be used: it caps pillow below the version Isaac Lab requires, which is also what pushed prerelease resolvers down to dev2). Verified on a fresh source install: the cartpole smoke with --video crashed before and writes a playable mp4 with moviepy 1.0.3 after.

Before After
TypeError: must be real number, not NoneType at every RecordVideo write; run exits with code 1 mp4 written and playable; run exits with code 0

Reproduction

  1. On develop, install per the pip installation guide (its resolver flags allow pre-releases; moviepy resolves to 2.0.0.dev2).

  2. Run:

    ./isaaclab.sh -p scripts/reinforcement_learning/rsl_rl/train.py --task Isaac-Cartpole-Direct \
      --num_envs 16 presets=newton_mjwarp --max_iterations 5 --video --video_length 100
  3. Every video write fails with TypeError: must be real number, not NoneType in the ffmpeg writer, and the run exits with code 1.

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 changed the title Bound moviepy to avoid broken 2.0.0.dev2 resolution Fixes video recording crashing on installs that resolve moviepy 2.0.0.dev2 Jul 10, 2026
@myurasov-nv
myurasov-nv marked this pull request as ready for review July 11, 2026 05:30
@greptile-apps

greptile-apps Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR updates the video-recording dependency path. The main changes are:

  • Bounds moviepy to the 1.x line in pyproject.toml.
  • Explains the resolver and --video crash reason in an inline dependency comment.
  • Adds an Isaac Lab changelog fragment for the fix.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
pyproject.toml Replaces the unbounded moviepy dependency with moviepy>=1.0.3,<2.0.0.dev0.
source/isaaclab/changelog.d/my-moviepy-bound.rst Adds a patch changelog fragment describing the video recording crash fix.

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

hujc7 added a commit to hujc7/IsaacLab that referenced this pull request Jul 11, 2026
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.
@myurasov-nv

myurasov-nv commented Jul 12, 2026 •

Copy link
Copy Markdown
Member Author

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

@ooctipus
ooctipus merged commit 758af4e into isaac-sim:develop Jul 13, 2026
38 checks passed
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
….dev2 (isaac-sim#6454)

# Description

Installs that allow pre-releases (as the documented Isaac Sim pip
install does) resolve the unbounded `moviepy` dependency to the broken
`2.0.0.dev2` build, whose `write_videofile` drops the clip fps. Every
RecordVideo write then fails with `TypeError: must be real number, not
NoneType`, and `--video` runs exit 1. Bounding to
`moviepy>=1.0.3,<2.0.0.dev0` pins the 1.x line (stable 2.x cannot be
used: it caps pillow below the version Isaac Lab requires, which is also
what pushed prerelease resolvers down to dev2). Verified on a fresh
source install: the cartpole smoke with `--video` crashed before and
writes a playable mp4 with moviepy 1.0.3 after.

| Before | After |
| ------ | ----- |
| `TypeError: must be real number, not NoneType` at every RecordVideo
write; run exits with code 1 | mp4 written and playable; run exits with
code 0 |

## Reproduction

1. On develop, install per the pip installation guide (its resolver
flags allow pre-releases; `moviepy` resolves to `2.0.0.dev2`).
2. Run:

   ```bash
./isaaclab.sh -p scripts/reinforcement_learning/rsl_rl/train.py --task
Isaac-Cartpole-Direct \
--num_envs 16 presets=newton_mjwarp --max_iterations 5 --video
--video_length 100
   ```

3. Every video write fails with `TypeError: must be real number, not
NoneType` in the ffmpeg writer, and the run exits with code 1.

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