Skip to content

MNT Avoid np.lib.arraysetops which is private in numpy 2 - #27297

Merged
jeremiedbb merged 2 commits into
scikit-learn:mainfrom
lesteve:remove-np-lib-arraysetops
Sep 5, 2023
Merged

jeremiedbb merged 2 commits into
scikit-learn:mainfrom
lesteve:remove-np-lib-arraysetops

Conversation

@lesteve

@lesteve lesteve commented Sep 5, 2023

Copy link
Copy Markdown
Member

Seen in https://dev.azure.com/scikit-learn/scikit-learn/_build/results?buildId=58641&view=logs&j=dfe99b15-50db-5d7b-b1e9-4105c42527cf&t=ef785ae2-496b-5b02-9f0e-07a6c3ab3081&l=682

AttributeError: `np.lib.arraysetops` is now private. If you are using a public function, it should be available in the main numpy namespace, otherwise check the NumPy 2.0 migration guide.

@lesteve lesteve added Quick Review For PRs that are quick to review No Changelog Needed labels Sep 5, 2023
@github-actions

github-actions Bot commented Sep 5, 2023

Copy link
Copy Markdown

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 2fbb4fc. Link to the linter CI: here

@jeremiedbb jeremiedbb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. The remainging failure in scipy-dev looks unrelated

@jeremiedbb
jeremiedbb merged commit 64cb5a3 into scikit-learn:main Sep 5, 2023
@lesteve
lesteve deleted the remove-np-lib-arraysetops branch September 5, 2023 11:03
@lesteve

lesteve commented Sep 5, 2023 •

Copy link
Copy Markdown
Member Author

FYI, the last failure in scipy-dev is due to scipy/scipy#18929 (comment)

glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Sep 5, 2023
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Sep 18, 2023
REDVM pushed a commit to REDVM/scikit-learn that referenced this pull request Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants