8000 Issues with NumPy 2.0? · Issue #1338 · Unidata/netcdf4-python · GitHub
[go: up one dir, main page]

Skip to content 8000
Issues with NumPy 2.0? #1338
@mgrover1

Description

@mgrover1

Version: netCDF4-1.6.5
Environmental information: Mac, Linux, Windows

When building wheels for Py-ART, which relies on netCDF4-python, we run into the following error

  src/netCDF4/_netCDF4.pyx:1: in init netCDF4._netCDF4
      ???
  E   ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

This error appears every time netCDF is imported.

This can be reproduced by installing NumPy 2.0, building wheels, and running tests.

I included links to the failing CI system

As well as the failing builds on the netcdf4-python side (failing as of 10 hours ago)
https://github.com/Unidata/netcdf4-python/actions/runs/9542919364

Any suggestions how this could be resolved?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0