I am using a library that requires abydos/distance/_aline.py to be imported. But as can be seen from the source code, it uses the old np_float
:
25 from numpy import float as np_float
which throws an error
ImportError: cannot import name 'float' from 'numpy' (/usr/local/lib/python3.10/dist-packages/numpy/__init__.py)
I have seen this error before with old versions of packages, so upgrading them usually solves it. This is from the latest installation of the library (abydos==0.5.0). I don't really want to downgrade my numpy installation. Is there a way to get around this?
Found a github issue from abydos right after posting this. Installing v0.6.0b from source solves the issue:
!pip install git+https://github.com/chrislit/abydos.git
Hope this helps anyone trying to use the library. The 0.5.0 version requirement seems to be everywhere.