Skip to content

bug: RuntimeWarning: numpy.ndarray size changed, may indicate binary incompatibility #4

Open
@jmp75

Description

@jmp75

Description of the bug

Running unit tests (pytest) from the command line tasker, unit tests fail (some expected to at this stage) but not for the right reason.

To Reproduce

at commit 0c8ccba

make test causes errors.

Curiously, running the unit tests from the VSCode debugger does not fail or show any runtime warning.

Full traceback



  ....F                                                                    [100%]
  ==================================== ERRORS ====================================
  ______________________ ERROR collecting test_read_file.py ______________________
  tests/test_read_file.py:6: in <module>
      from efts_io.wrapper import EftsDataSet
  src/efts_io/wrapper.py:11: in <module>
      from efts_io.conventions import (
  src/efts_io/conventions.py:6: in <module>
      import netCDF4 as nc
  .venvs/3.12/lib/python3.12/site-packages/netCDF4/__init__.py:3: in <module>
      from ._netCDF4 import *
  src/netCDF4/_netCDF4.pyx:1: in init netCDF4._netCDF4
      ???
  E   RuntimeWarning: numpy.ndarray size changed, may indicate binary incompatibility. Expected 16 from C header, got 96 from PyObject```

Possible fix

xarray/issues/7259

Metadata

Metadata

Assignees

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