We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To create a minimal reproducer (I used Python 3.11.9):
python -m venv test_nc4 source test_nc4/bin/activate pip install netcdf4 python -c "import numpy;import warnings;warnings.filterwarnings('error');import netCDF4"
This will raise an error with: numpy.ndarray size changed, may indicate binary incompatibility. Expected 16 from C header, got 96 from PyObject
numpy.ndarray size changed, may indicate binary incompatibility. Expected 16 from C header, got 96 from PyObject
This isn't numpy 2.0 specific, pip install netcdf4 "numpy<2.0" will raise the same warning.
pip install netcdf4 "numpy<2.0"
To the best of my understanding this means that the numpy that was used during the netcdf4 build is incompatible with the numpy version I'm using.
netcdf4
I know that this is usually just a warning, but this means I've got to manually ignore these in my pytest suite.
It's also hard to gauge for a user whether this warning is problematic. Thus I'm wondering if this can be fixed on the netcdf4 side?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
To create a minimal reproducer (I used Python 3.11.9):
This will raise an error with:
numpy.ndarray size changed, may indicate binary incompatibility. Expected 16 from C header, got 96 from PyObject
This isn't numpy 2.0 specific,
pip install netcdf4 "numpy<2.0"
will raise the same warning.To the best of my understanding this means that the numpy that was used during the
netcdf4
build is incompatible with the numpy version I'm using.I know that this is usually just a warning, but this means I've got to manually ignore these in my pytest suite.
It's also hard to gauge for a user whether this warning is problematic. Thus I'm wondering if this can be fixed on the netcdf4 side?
The text was updated successfully, but these errors were encountered: