New release to prepare for numpy 2
MuellerSeb opened this issue · 5 comments
Since the first release candidate of numpy 2 is out (numpy 2.0.0rc1) and the ABI is stable with that, packages start building against numpy 2 (e.g. scipy) to have a smooth transition once the release is out.
Since #510 is merge and #509 is solved, it would be good to have a release of emcee that is ready for numpy 2 so dependent packages like GSTools can also start building against numpy 2 and also test it.
Could you create such a release in the near future or are there any other things blocking a new release of emcee?
ATM we have to use a hack to install the current develop version of emcee to test our package in the CI (link)
Thanks!
Done: https://pypi.org/project/emcee/3.1.5/
Please report back if there are any issues!
Hi team, I haven't looked into the details yet, but emcee v3.1.5
seems to conflict with numpy v1.24.4
(the highest numpy version under python 3.8). I get the following error message under the mentioned version:
AttributeError: module 'numpy' has no attribute 'exceptions'
Is there any possible fix (e.g. specifying emcee v3.1.5
to only require numpy >= 2
, or do I have to just wait for numpy to officially release the new major version?
You can install the numpy 2.0.0 release candidate from pypi, but only for python>=3.9.
You need at least numpy 1.25.0: https://numpy.org/doc/1.25/release/1.25.0-notes.html#numpy-now-has-an-np-exceptions-namespace
There should be a workaround to support earlier versions. Will do a PR.
@dfm this should get another bug fix release, since emcee 3.1.5 unintentionally dropped support for a lot of numpy versions.