bnlearn icon indicating copy to clipboard operation
bnlearn copied to clipboard

Google colab install and import error

Open dirknbr opened this issue 9 months ago • 2 comments

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

dirknbr avatar Jun 09 '25 10:06 dirknbr

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


erdogant avatar Jun 16 '25 18:06 erdogant

seems to be fixed

3.10.0
0.1.25
1.26.4
0.11.1

dirknbr avatar Jun 17 '25 10:06 dirknbr

I am closing this issue. Let me know if something still breaks on your machine.

erdogant avatar Aug 31 '25 12:08 erdogant