Skip to content

Upgrade PyInstaller to 6.14.2 for numpy 2.x support#1066

Merged
rly merged 1 commit intomainfrom
upgrade-pyinstaller
Mar 4, 2026
Merged

Upgrade PyInstaller to 6.14.2 for numpy 2.x support#1066
rly merged 1 commit intomainfrom
upgrade-pyinstaller

Conversation

@bendichter
Copy link
Collaborator

Summary

  • Upgrade PyInstaller from 6.7.0 to 6.14.2 across all 3 build environment files (MAC-apple-silicon, MAC-intel, Windows)
  • PyInstaller 6.11.0 modernized the numpy hook for numpy 1.24-2.x, and 6.14.1 added numpy 2.3.0 compatibility
  • This is the proper fix for the ModuleNotFoundError: No module named 'numpy._core._exceptions' that occurs when numpy 2.x is bundled with the old PyInstaller
  • Removes the pyinstaller-hooks-contrib==2024.6 pin on Windows, as PyInstaller 6.14.2 bundles compatible hooks that handle pydantic v2
  • Supersedes Pin numpy < 2 to fix PyInstaller bundling #1065 (which pins numpy < 2 as a stopgap)

Test plan

  • BuildTests pass on all platforms (windows-latest, macos-latest, macos-15-intel)
  • Verify bundled executable starts without numpy import errors

🤖 Generated with Claude Code

PyInstaller 6.11.0 modernized the numpy hook for numpy 1.24-2.x,
and 6.14.1 added numpy 2.3.0 compatibility. This fixes the
ModuleNotFoundError for numpy._core._exceptions when bundling with
numpy 2.x.

Also removes the pyinstaller-hooks-contrib==2024.6 pin on Windows,
as PyInstaller 6.14.2 bundles compatible hooks that handle pydantic v2.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bendichter bendichter enabled auto-merge March 4, 2026 17:39
@bendichter bendichter disabled auto-merge March 4, 2026 17:40
@bendichter bendichter requested a review from rly March 4, 2026 17:41
@rly rly merged commit 90305b5 into main Mar 4, 2026
47 of 49 checks passed
@rly rly deleted the upgrade-pyinstaller branch March 4, 2026 17:54
@rly
Copy link
Collaborator

rly commented Mar 4, 2026

Thanks @bendichter !

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