BiomedicalMachineLearning / stLearn

A novel machine learning pipeline to analyse spatial transcriptomics data
Other
176 stars 23 forks source link

st.tl.cci.run "AttributeError: module 'numpy' has no attribute 'int'." #265

Closed skim245 closed 7 months ago

skim245 commented 7 months ago

Dear stLearn,

I'm getting an attribute error with stlearn == 0.4.11 numpy ==1.26.0 and below is the error message I get.

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:

any suggestions ?

duypham2108 commented 7 months ago

You can install the numpy 1.22 by pip install numpy==1.22 and do not need to worry about the version warning if it shows up.

skim245 commented 7 months ago

@duypham2108 great it works without error!