chrislit/abydos

Incompatible with Numpy 1.24

Opened this issue · 7 comments

Numpy 1.24 was released recently, and it looks like there is (at least one) deprecation that abydos relies on. Relevant stack trace snippet below.

Opening this for tracking purposes.

  File "/.venv/lib/python3.10/site-packages/abydos/distance/_aline.py", line 25, in <module>
    from numpy import float as np_float
ImportError: cannot import name 'float' from 'numpy' (/.venv/lib/python3.10/site-packages/numpy/__init__.py)

A fast solution to this would be to update the numpy version constraints in pyproject.toml/setup.py (this project has both and I don't know which is used for build) to also include <1.24.

Given last commit in Jan 2021, I wouldn't get my hopes up.

Thanks for letting me know. In that case, I'll give it a try and see if I can make a PR to fix it.

Hmm, actually, it looks like master is good already, just needs a new release.

Hi, are there any updates on this issue? I've installed abydos v0.5.0 (via PyPI) and v0.6.0 (via GIT) but i'm getting the above error with both versions.

bwo commented

it's been a year, if the problem is fixed on master can a new release be cut?

@joaodperes @bwo the issue seems to be fixed in 0.6.0b version which was merged to master. Use git to install the package or if you use poetry, use poetry add git+https://github.com/chrislit/abydos.git. It worked from my end :)