bnlearn
bnlearn copied to clipboard
Google colab install and import error
Importing bnlearn generates this error
[/usr/local/lib/python3.11/dist-packages/numpy/random/_pickle.py](https://localhost:8080/#) in <module>
----> 1 from .mtrand import RandomState
2 from ._philox import Philox
3 from ._pcg64 import PCG64, PCG64DXSM
4 from ._sfc64 import SFC64
5
numpy/random/mtrand.pyx in init numpy.random.mtrand()
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
Can you check the following versions?
# Version matplotlib should be >= 3.3.4
import matplotlib
print(matplotlib.__version__)
3.10.0
# Version pgmpy
import pgmpy
print(pgmpy.__version__)
0.1.25
# Latest version numpy
import numpy as np
print(np.__version__)
1.26.4
# Latest version bnlearn
import bnlearn as bn
print(bn.__version__)
0.11.1
seems to be fixed
3.10.0
0.1.25
1.26.4
0.11.1
I am closing this issue. Let me know if something still breaks on your machine.