BioPhi icon indicating copy to clipboard operation
BioPhi copied to clipboard

Error: module 'numpy' has no attribute 'int'

Open efrainceh opened this issue 2 years ago • 5 comments

I got this message while trying to Export a Full Table after humanization.

image

efrainceh avatar Jul 13 '23 14:07 efrainceh

Hi, I was using biophi from command line and also got this error. I fixed it by going to line 83 of biophi/humanization/methods/humanness.py:

curve = curve.astype(np.int64)

gracevikman avatar Jul 14 '23 23:07 gracevikman

Ok, thanks!

efrainceh avatar Jul 17 '23 19:07 efrainceh

No problem. I think it has to do with the version of numpy since I didn't have any issues when I set up the conda environment for biophi in the readme.

gracevikman avatar Jul 17 '23 19:07 gracevikman

I created a pull request to fix.

tony-res avatar Jul 28 '23 16:07 tony-res

Hi @tony-res & @prihoda,

I am building this package using conda and am still getting this same error.

I took a look at line 83 under the most up to date version tag (1.0.9) and it seems to still have the old np.int implementation. It looks like the latest version tag is not up to date with the main branch. Any chance you'd be able to release a new version from the current main branch and subsequently publish to bioconda?

Many thanks!

eliottpark avatar Jul 16 '24 22:07 eliottpark