Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
efrainceh opened this issue Jul 13, 2023 · 5 comments
Open

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

efrainceh opened this issue Jul 13, 2023 · 5 comments

Comments

@efrainceh
Copy link

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

image

@gracevikman
Copy link

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)

@efrainceh
Copy link
Author

Ok, thanks!

@gracevikman
Copy link

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.

tony-res added a commit to tony-res/BioPhi that referenced this issue Jul 28, 2023
Fixing np.int bug. Merck#42

Numpy no longer aliases `np.int`. Instead it recommends just to use the built in `int` type.
@tony-res
Copy link
Contributor

I created a pull request to fix.

prihoda pushed a commit that referenced this issue Aug 8, 2023
Fixing np.int bug. #42

Numpy no longer aliases `np.int`. Instead it recommends just to use the built in `int` type.
@eliottpark
Copy link

eliottpark commented Jul 16, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants