Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New release to prepare for numpy 2 #515

Closed
MuellerSeb opened this issue Apr 16, 2024 · 5 comments
Closed

New release to prepare for numpy 2 #515

MuellerSeb opened this issue Apr 16, 2024 · 5 comments

Comments

@MuellerSeb
Copy link
Contributor

MuellerSeb commented Apr 16, 2024

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!

@dfm
Copy link
Owner

dfm commented Apr 16, 2024

Done: https://pypi.org/project/emcee/3.1.5/

Please report back if there are any issues!

@dfm dfm closed this as completed Apr 16, 2024
@jwhhh
Copy link

jwhhh commented Apr 19, 2024

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?

@andyfaff
Copy link
Contributor

You can install the numpy 2.0.0 release candidate from pypi, but only for python>=3.9.

@MuellerSeb
Copy link
Contributor Author

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.

@MuellerSeb
Copy link
Contributor Author

@dfm this should get another bug fix release, since emcee 3.1.5 unintentionally dropped support for a lot of numpy versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants