phac-nml / mob-suite

MOB-suite: Software tools for clustering, reconstruction and typing of plasmids from draft assemblies
Apache License 2.0
124 stars 33 forks source link

module 'numpy' has no attribute 'bool' #123

Closed yqy6611 closed 1 year ago

yqy6611 commented 1 year ago

Hi all, after updating numpy I encountered this error message:

AttributeError: module 'numpy' has no attribute 'bool', as well as

FutureWarning: In the future np.bool will be defined as the corresponding NumPy scalar. (This may have returned Python scalars in past versions.

Any ideas on how to fix this?

jchorl commented 1 year ago

Fwiw this appears to be the same as https://github.com/NVIDIA/TensorRT/issues/2557

Pinning to 1.23 should work. However it appears the README build process is broken at the moment, and I didn't have time to chase that down, so couldn't cut a PR.

jrober84 commented 1 year ago

I am preparing release v 3.1.1 which will restrict numpy version to < 1.23.5 to prevent this issue