Skip to content

Pin numpy < 2 to fix PyInstaller bundling#1065

Closed
bendichter wants to merge 2 commits intomainfrom
pin-numpy-below-2
Closed

Pin numpy < 2 to fix PyInstaller bundling#1065
bendichter wants to merge 2 commits intomainfrom
pin-numpy-below-2

Conversation

@bendichter
Copy link
Collaborator

Summary

  • Pin numpy < 2 in all 4 environment files
  • numpy 2.x reorganized internals from numpy.core to numpy._core, but PyInstaller 6.7.0 + pyinstaller-hooks-contrib 2024.6 doesn't bundle numpy._core._exceptions, causing ModuleNotFoundError at runtime in the built executable
  • This is a stopgap — a follow-up PR will upgrade PyInstaller to support numpy 2.x properly

Test plan

  • BuildTests pass on all platforms (windows-latest, macos-latest, macos-15-intel)

🤖 Generated with Claude Code

numpy 2.x reorganized internals from numpy.core to numpy._core.
PyInstaller 6.7.0 with pyinstaller-hooks-contrib 2024.6 doesn't
bundle numpy._core._exceptions, causing ModuleNotFoundError at
runtime in the built executable.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Conda's numpy < 2 constraint doesn't prevent pip from upgrading
numpy to 2.x when installing neuroconv dependencies.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bendichter bendichter closed this Mar 4, 2026
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