Description
Describe the issue:
I'm just wanted to use h5py package from MSYS2 distro.
$ python3 -c "import h5py"
D:/msys32/mingw32/lib/python3.10/site-packages/numpy/core/getlimits.py:492: UserWarning: Signature b'\x00\xd0\xcc\xcc\xcc\xcc\xcc\xcc\xfb\xbf\xe2\x04' for <class 'numpy.float96'> does not match any known type: falling back to type probe function
machar = _get_machar(dtype)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:/msys32/mingw32/lib/python3.10/site-packages/h5py/__init__.py", line 45, in <module>
from ._conv import register_converters as _register_converters, \
File "h5py/_conv.pyx", line 1, in init h5py._conv
File "h5py/h5t.pyx", line 278, in init h5py.h5t
File "h5py/h5t.pyx", line 273, in h5py.h5t._get_available_ftypes
File "D:/msys32/mingw32/lib/python3.10/site-packages/numpy/core/getlimits.py", line 485, in __new__
obj = object.__new__(cls)._init(dtype)
File "D:/msys32/mingw32/lib/python3.10/site-packages/numpy/core/getlimits.py", line 512, in _init
self._str_smallest_normal = machar._str_smallest_normal.strip()
AttributeError: 'MachAr' object has no attribute '_str_smallest_normal'. Did you mean: 'smallest_normal'?
Looks like problem with float96
type.
Reproduce the code example:
import numpy as np
np.core.getlimits.finfo(np.float96)
Error message:
D:/msys32/mingw32/lib/python3.10/site-packages/numpy/core/getlimits.py:492: UserWarning: Signature b'\x00\xd0\xcc\xcc\xcc\xcc\xcc\xcc\xfb\xbf\xdc\x04' for <class 'numpy.float96'> does not match any known type: falling back to type probe function
machar = _get_machar(dtype)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:/msys32/mingw32/lib/python3.10/site-packages/numpy/core/getlimits.py", line 485, in __new__
obj = object.__new__(cls)._init(dtype)
File "D:/msys32/mingw32/lib/python3.10/site-packages/numpy/core/getlimits.py", line 512, in _init
self._str_smallest_normal = machar._str_smallest_normal.strip()
AttributeError: 'MachAr' object has no attribute '_str_smallest_normal'. Did you mean: 'smallest_normal'?
NumPy/Python version information:
1.22.4 3.10.5 (main, Jun 18 2022, 01:33:07) [GCC 12.1.0 32 bit]