Closed jakobtroidl closed 10 months ago
The latest numpy has a bunch of deprecations expiring. np.bool
was deprecated in 1.20 in favour of python's native bool
(which is interpreted by numpy to a different type with a different implementation, which can be referred to using np.bool_
, but that's another matter...). https://numpy.org/devdocs/release/1.20.0-notes.html#using-the-aliases-of-builtin-types-like-np-int-is-deprecated
tl;dr we just need to replace all references to np.bool
with bool
, I think!
The fix, replacing the np.bool
reference with a plain bool
, seems to already have been implemented in master https://github.com/navis-org/navis/commit/da2c0b33f2fb916087740e8e844775b2d0a2585b so all will be fine on the next release.
Amazing, I'll look out for the new release. Thanks for letting me know ;)
Thanks for the digging, Jakob! I did remove np.bool
a while back but we also haven't had a new release in almost 6 months and we're overdue for one. I'll check if anything needs wrapping up before we do but for now you could install navis
from Github to get a working version:
$ pip3 install git+https://github.com/navis-org/navis@master
I just released navis
version 1.4.0
which should fix the issues with numpy
. Let us know if this does the trick! Please see the change log for other changes.
Closing assuming this is solved.
Hi @schlegelp,
I just spent some time debugging and thought this might be helpful for some other users.
It seems like Navis is incompatible with
numpy v1.24.0
. However, everything works fine withnumpy v1.23.5
. Forv1.24.0
version, I get the following error message.Let me know if I should provide more details. Best, Jakob