AttributeError while calling the OrbitalFieldMatric featurizer

I am trying to use the OrbitalFieldMatrix featurizer with the code below:

from matminer.featurizers.structure.matrix import OrbitalFieldMatrix

ofm = OrbitalFieldMatrix()

But am getting the following error from numpy

AttributeError                            Traceback (most recent call last)
Cell In[5], line 3
      1 from matminer.featurizers.structure.matrix import OrbitalFieldMatrix
----> 3 ofm = OrbitalFieldMatrix()

File ~\anaconda3\Lib\site-packages\matminer\featurizers\structure\matrix.py:292, in OrbitalFieldMatrix.__init__(self, period_tag, flatten)
    290 for Z in range(1, 95):
    291     el = Element.from_Z(Z)
--> 292     my_ohvs[Z] = self.get_ohv(el, period_tag)
    293     my_ohvs[Z] = np.matrix(my_ohvs[Z])
    294 self.ohvs = my_ohvs

File ~\anaconda3\Lib\site-packages\matminer\featurizers\structure\matrix.py:338, in OrbitalFieldMatrix.get_ohv(self, sp, period_tag)
    336     nume += curr_shell[2]
    337     shell_num += 1
--> 338 my_ohv = np.zeros(self.size, np.int)
    339 k = 0
    340 for j in range(4):

File ~\anaconda3\Lib\site-packages\numpy\__init__.py:305, in __getattr__(attr)
    300     warnings.warn(
    301         f"In the future `np.{attr}` will be defined as the "
    302         "corresponding NumPy scalar.", FutureWarning, stacklevel=2)
    304 if attr in __former_attrs__:
--> 305     raise AttributeError(__former_attrs__[attr])
    307 # Importing Tester requires importing all of UnitTest which is not a
    308 # cheap import Since it is mainly used in test suits, we lazy import it
    309 # here to save on the order of 10 ms of import time for most users
    310 #
    311 # The previous way Tester was imported also had a side effect of adding
    312 # the full `numpy.testing` namespace
    313 if attr == 'testing':

AttributeError: module 'numpy' has no attribute 'int'.
`np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

Hi @J0chin

Seems like you have an incompatible version of numpy installed. If you do a pip freeze | grep numpy in your environment, what does the version of numpy say?

I am running this on anaconda so I ran the command conda list instead. my numpy version is 1.24.3