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

Pin numpy<1.24 to mitigate incompatibility with pystrum==0.2 #3981

Merged

Conversation

joshuacwnewton
Copy link
Member

@joshuacwnewton joshuacwnewton commented Dec 19, 2022

Description

Numpy 1.24 was released recently, bringing with it the removal of the np.bool alias.

One of our upstream dependencies, voxelmorph, depends on neurite, which in turn depends on pystrum. Pystrum's most recent PyPI version still uses np.bool. (See adalca/pystrum#9.)

Until pystrum fixes this issue, we can pin numpy<1.24 to keep our test suite from failing.

Linked issues

Fixes #3980.

@joshuacwnewton joshuacwnewton added bug category: fixes an error in the code upstream Issue caused by software dependencies labels Dec 19, 2022
@joshuacwnewton joshuacwnewton added this to the 6.0 milestone Dec 19, 2022
Copy link
Member

@mguaypaq mguaypaq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a really great comment you added; it gives the reason for the change, and conditions for sunsetting the version pin. Thanks!

@joshuacwnewton joshuacwnewton merged commit 6ee1907 into master Dec 20, 2022
@joshuacwnewton joshuacwnewton deleted the jn/3980-downgrade-numpy-to-fix-pystrum-incompatibility branch December 20, 2022 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug category: fixes an error in the code upstream Issue caused by software dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AttributeError: module 'numpy' has no attribute 'bool' in scheduled CI tests
2 participants