Skip to content

Conversation

@adamjtaylor
Copy link
Collaborator

Summary

  • Pin numpy version to >=1.23.0,<2.0 in Docker environment

Problem

The zarr library uses np.PINF which was removed in NumPy 2.0. Pip installs in the Dockerfile can upgrade numpy beyond the conda-pinned version, causing this error:

AttributeError: `np.PINF` was removed in the NumPy 2.0 release. Use `np.inf` instead.

This blocks all CI tests including PR #37 (H&E RGB thumbnail generation).

Fix

Changed from exact pin numpy=1.23.0 to range numpy>=1.23.0,<2.0 to prevent any numpy 2.x installation while allowing patch updates.

Testing

Once merged, Docker container will rebuild automatically. This unblocks testing for PR #37.

🤖 Generated with Claude Code

The zarr library uses np.PINF which was removed in NumPy 2.0.
This constraint prevents pip installs from upgrading numpy beyond 1.x.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@adamjtaylor adamjtaylor merged commit 834f510 into main Jan 16, 2026
1 of 2 checks passed
@adamjtaylor adamjtaylor deleted the fix/numpy-version-constraint branch January 16, 2026 12:30
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.

2 participants