BiomedicalMachineLearning / stLearn

A novel machine learning pipeline to analyse spatial transcriptomics data
Other
201 stars 26 forks source link

module 'numpy' has no attribute 'int'. #290

Closed Rafael-Silva-Oliveira closed 3 months ago

Rafael-Silva-Oliveira commented 7 months ago

I have stlearn 0.4.12 installed and numpy 1.25.2 and when running "st.tl.cci.run()" I keep getting the error:

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:

Anyone else with the same error?

duypham2108 commented 7 months ago

We recommend installing the master branch version.

pip uninstall stlearn --yes
git clone https://github.com/BiomedicalMachineLearning/stLearn.git
cd stLearn
python setup.py install