Bug 2332500

Summary: netcdf4 needs to be rebuilt against NumPy 2.x
Product: [Fedora] Fedora Reporter: Sandro <gui1ty>
Component: netcdf4-pythonAssignee: Orion Poplawski <orion>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: orion, python-packagers-sig, scitech-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: netcdf4-python-1.7.2-2.fc42 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-12-15 23:40:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2332484    
Bug Blocks: 2332159    

Description Sandro 2024-12-15 20:27:50 UTC
Currently, importing netCDF4 results in:

>>> import netCDF4
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import netCDF4
  File "/usr/lib64/python3.13/site-packages/netCDF4/__init__.py", line 3, in <module>
    from ._netCDF4 import *
  File "src/netCDF4/_netCDF4.pyx", line 1, in init netCDF4._netCDF4
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject


Reproducible: Always

Comment 1 Sandro 2024-12-15 20:29:00 UTC
A simple bump and rebuild _after_ cftime has been rebuilt should fix it.

Comment 2 Fedora Update System 2024-12-15 23:37:26 UTC
FEDORA-2024-50e64ece19 (netcdf4-python-1.7.2-2.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-50e64ece19

Comment 3 Fedora Update System 2024-12-15 23:40:48 UTC
FEDORA-2024-50e64ece19 (netcdf4-python-1.7.2-2.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.