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

Fixing Numpy requirements to exclude 2.0 #7859

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

ericspod
Copy link
Member

@ericspod ericspod commented Jun 17, 2024

Description

This fixes the version of Numpy to be less than 2.0 so that we can get a working setup guaranteed. Numpy 2.0 isn't supported yet by MONAI and will need a number of changes to be compatible.

This is only sometimes a problem because a number of dependencies we have require Numpy<2.0. When these are absent however, such as with minimal installs, Numpy 2.0 can be installed and causes problems. This is a temporary fix until we have worked out an update that's compatible with versions before and after 2.0.

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

@ericspod ericspod requested review from Nic-Ma and KumoLiu June 17, 2024 15:50
@ericspod ericspod mentioned this pull request Jun 17, 2024
7 tasks
@ericspod
Copy link
Member Author

@wyli @pxLi @YanxuanLiu @KumoLiu @Nic-Ma I need one of you to initiate the Blossom tests to let this through. Other PRs can't pass because certain tests are failing if they install Numpy 2.0. We should update things to be compatible but this is the temporary fix we need for now.

@Nic-Ma
Copy link
Contributor

Nic-Ma commented Jun 18, 2024

/build

@Nic-Ma Nic-Ma merged commit 08d5728 into Project-MONAI:dev Jun 19, 2024
28 checks passed
KumoLiu pushed a commit to KumoLiu/MONAI that referenced this pull request Jun 24, 2024
### Description

This fixes the version of Numpy to be less than 2.0 so that we can get a
working setup guaranteed. Numpy 2.0 isn't supported yet by MONAI and
will need a number of changes to be compatible.

This is only sometimes a problem because a number of dependencies we
have require Numpy<2.0. When these are absent however, such as with
minimal installs, Numpy 2.0 can be installed and causes problems. This
is a temporary fix until we have worked out an update that's compatible
with versions before and after 2.0.

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

Signed-off-by: Eric Kerfoot <[email protected]>
MrGranddy pushed a commit to MrGranddy/MONAI that referenced this pull request Jun 25, 2024
### Description

This fixes the version of Numpy to be less than 2.0 so that we can get a
working setup guaranteed. Numpy 2.0 isn't supported yet by MONAI and
will need a number of changes to be compatible.

This is only sometimes a problem because a number of dependencies we
have require Numpy<2.0. When these are absent however, such as with
minimal installs, Numpy 2.0 can be installed and causes problems. This
is a temporary fix until we have worked out an update that's compatible
with versions before and after 2.0.

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

Signed-off-by: Eric Kerfoot <[email protected]>
MrGranddy pushed a commit to MrGranddy/MONAI that referenced this pull request Jun 25, 2024
### Description

This fixes the version of Numpy to be less than 2.0 so that we can get a
working setup guaranteed. Numpy 2.0 isn't supported yet by MONAI and
will need a number of changes to be compatible.

This is only sometimes a problem because a number of dependencies we
have require Numpy<2.0. When these are absent however, such as with
minimal installs, Numpy 2.0 can be installed and causes problems. This
is a temporary fix until we have worked out an update that's compatible
with versions before and after 2.0.

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

Signed-off-by: Eric Kerfoot <[email protected]>
Signed-off-by: MrGranddy <[email protected]>
KumoLiu added a commit that referenced this pull request Jun 25, 2024
### Description


### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

---------

Signed-off-by: Eric Kerfoot <[email protected]>
Signed-off-by: Eric Kerfoot <[email protected]>
Co-authored-by: Eric Kerfoot <[email protected]>
Co-authored-by: Eric Kerfoot <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants