-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
FMod Bug on Windows
Sebastian Berg edited this page Nov 7, 2020
·
13 revisions
There is a Bug with fmod
on windows, see https://tinyurl.com/y3dm3h86
To prevent unexpected runtime behavior, opencv contains a Check for this:
try:
a = arange(13 * 13, dtype= float64).reshape(13, 13)
a = a % 17 # calls fmod
linalg.eig(a)
except Exception:
raise RuntimeError("The current Numpy installation (...) fails to pass a sanity check due to a bug in the windows runtime. ...
See Pull Request https://github.com/numpy/numpy/pull/17553
This is a windows issue and has to be fixed by Microsoft, however, a fix has not arrived for several weeks now.
-
Pinning against NumPy 1.19.3 should help (it uses a newer OpenBLAS version, but this caused other problems).
-
32bit Python does not have these issues
-
In principle you could revert the buggy windows update or deactivate the
_win_os_check
in NumPy (if you are lucky, your code is unaffected by the bug).