abydos icon indicating copy to clipboard operation
abydos copied to clipboard

Incompatible with Numpy 1.24

Open js-truework opened this issue 2 years ago • 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.

js-truework avatar Dec 19 '22 17:12 js-truework

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

mgorny avatar Dec 22 '22 14:12 mgorny

Apologies. I’m working on it but having some difficulty with GitHub at the moment. Hoping to have packages out with support for current Pythons & supportiing packages (e.g. NumPy) by year’s end.

On Thu, Dec 22, 2022 at 6:31 AM Michał Górny @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/chrislit/abydos/issues/283#issuecomment-1362907881, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALNF5V23OF4I2HHA5OBIUDWORQ4TANCNFSM6AAAAAATDTC4VE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

chrislit avatar Dec 22 '22 14:12 chrislit

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.

mgorny avatar Dec 22 '22 15:12 mgorny

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

mgorny avatar Dec 22 '22 15:12 mgorny

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.

joaodperes avatar Mar 08 '23 12:03 joaodperes

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

bwo avatar Sep 27 '23 16:09 bwo

@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 :)

ma7dev avatar Feb 05 '24 14:02 ma7dev