Skip to content

Conversation

@rsujeevan
Copy link
Contributor

@rsujeevan rsujeevan commented Dec 18, 2025

No description provided.

@rsujeevan rsujeevan self-assigned this Dec 18, 2025
The any_env.py and any_env2.py recipes were installing pandas==1.5.3 without
constraints, which caused pip to install numpy 2.4.1 (latest). This resulted
in binary incompatibility:

  ValueError: numpy.dtype size changed, may indicate binary incompatibility.
  Expected 96 from C header, got 88 from PyObject

Root Cause:
- Recipes have embedded create_data_popen() function that generates virtualenv
  creation scripts
- The pip install command for packages in modules_needed_by_name was:
    {env}/bin/pip install {pkg} --ignore-installed
- This doesn't constrain dependencies, so pandas pulls latest numpy (2.4.1)
- pandas 1.5.3 was compiled against numpy 1.x, incompatible with 2.x

Fix:
- Add req_constraints_deps.txt to pip install command:
    {env}/bin/pip install --use-deprecated=legacy-resolver -c {constraints} {pkg} --ignore-installed
- This ensures numpy 1.24.4 is used with pandas 1.5.3, maintaining binary compatibility

This matches the fix already applied to h2oaicore/utils.py in the main DAI repo.

Fixes: test_contrib.test_pools.test_repo_download_specific failure
@rsujeevan rsujeevan changed the title Update Pillow version to 12.0.0 Update Pillow version to 12.1.0 Jan 19, 2026
@rsujeevan rsujeevan marked this pull request as ready for review January 19, 2026 20:13
@rsujeevan rsujeevan merged commit 686cb99 into master Jan 19, 2026
2 checks passed
@rsujeevan rsujeevan deleted the sr/2.3.2-rc/update-pillow branch January 19, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant