Skip to content

Fix flatdict version pin to allow 4.1.0+ (develop) - #5181

Merged
AntoineRichard merged 5 commits into
developfrom
fix/flatdict-version-develop
Apr 8, 2026
Merged

AntoineRichard merged 5 commits into
developfrom
fix/flatdict-version-develop

Conversation

@kellyguo11

Copy link
Copy Markdown
Contributor

Description

Relaxes the flatdict version pin from ==4.0.0 to >=4.0.0 in source/isaaclab/setup.py.

Motivation

flatdict==4.0.0 (and 4.0.1) are source distributions (.tar.gz) that require pkg_resources during the build step. On modern Python (3.10+) with newer pip/setuptools, the build isolation environment often lacks pkg_resources, causing installation to fail with:

ModuleNotFoundError: No module named 'pkg_resources'
ERROR: Failed to build 'flatdict' when getting requirements to build wheel

flatdict 4.1.0 ships as a pre-built wheel (.whl) and installs cleanly without any build step.

Changes

  • source/isaaclab/setup.py: Changed flatdict==4.0.0 → flatdict>=4.0.0

Verification

The FlatDict API used in isaaclab (FlatDict(dict, delimiter='.') in simulation_context.py and test_simulation_render_config.py) is fully compatible across 4.0.0 → 4.1.0. Tested both the constructor and nested dict flattening.

Fixes #4576

flatdict==4.0.0 (and 4.0.1) are source distributions that require
pkg_resources during the build step. On modern Python (3.10+) with
newer pip/setuptools, the build isolation environment often lacks
pkg_resources, causing installation to fail with:

  ModuleNotFoundError: No module named 'pkg_resources'

flatdict 4.1.0 ships as a wheel and installs without build issues.
The FlatDict API used in isaaclab (FlatDict constructor with delimiter)
is fully compatible across 4.0.0 → 4.1.0.

Fixes #4576
@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Apr 6, 2026
@greptile-apps

greptile-apps Bot commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Relaxes the flatdict dependency pin from ==4.0.0 to >=4.0.0 in source/isaaclab/setup.py to fix installation failures on modern Python where pkg_resources is unavailable during the sdist build step. The fix is targeted and correct; flatdict 4.1.0 ships as a pre-built wheel and the FlatDict(dict, delimiter='.') API used in the codebase is stable across 4.x. source/isaaclab/docs/CHANGELOG.rst has not been updated; per project guidelines a new patch-version Fixed entry is expected for changes to source/ directories.

Confidence Score: 5/5

Safe to merge; both findings are P2 suggestions that do not affect runtime correctness or installation success.

The change is minimal and well-motivated — it unblocks installation on modern Python without breaking the existing API usage. The two remaining findings (missing upper bound and missing CHANGELOG entry) are P2 quality/process suggestions; neither blocks a correct install or introduces a functional defect.

No files require blocking attention; source/isaaclab/setup.py has two P2 style suggestions.

Important Files Changed

Filename Overview
source/isaaclab/setup.py Relaxes flatdict pin from ==4.0.0 to >=4.0.0 to fix pkg_resources build failure; two P2 suggestions (upper bound, CHANGELOG)

Sequence Diagram

sequenceDiagram
    participant pip
    participant PyPI
    participant isaaclab

    Note over pip,PyPI: Before fix (flatdict==4.0.0)
    pip->>PyPI: Request flatdict 4.0.0
    PyPI-->>pip: flatdict-4.0.0.tar.gz (sdist)
    pip->>pip: Build wheel (requires pkg_resources)
    pip-->>isaaclab: ModuleNotFoundError: pkg_resources

    Note over pip,PyPI: After fix (flatdict>=4.0.0)
    pip->>PyPI: Request flatdict >=4.0.0
    PyPI-->>pip: flatdict-4.1.0-py3-none-any.whl (pre-built)
    pip-->>isaaclab: Install success
Loading

Reviews (1): Last reviewed commit: "fix: relax flatdict version pin to >=4.0..." | Re-trigger Greptile

Comment thread source/isaaclab/setup.py Resolved
Comment thread source/isaaclab/setup.py Outdated
"coverage==7.6.1",
"debugpy>=1.8.20",
"flatdict==4.0.0",
"flatdict>=4.0.0",

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 CHANGELOG entry missing

Per project guidelines, every change targeting a source/<package>/ directory requires a new patch-version section in source/isaaclab/docs/CHANGELOG.rst. This PR modifies source/isaaclab/setup.py but no changelog entry was added. A new version (e.g. 4.5.26) with a Fixed bullet noting the relaxed flatdict pin is expected.

AntoineRichard and others added 2 commits April 7, 2026 13:19
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Signed-off-by: Antoine RICHARD <[email protected]>
@AntoineRichard
AntoineRichard merged commit 7588fa9 into develop Apr 8, 2026
24 of 29 checks passed
@AntoineRichard
AntoineRichard deleted the fix/flatdict-version-develop branch April 8, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants