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

RuntimeWarning "invalid value encountered in reciprocal" when running tests on macOS #21395

Closed
ogrisel opened this issue Oct 22, 2021 · 1 comment · Fixed by #21396
Closed

Comments

@ogrisel
Copy link
Member

ogrisel commented Oct 22, 2021

This test is unexpectedly raised when running test_linear_model_normalize_deprecation_message when numpy is compiled with a recent but not too recent versions of clang on macOS.

This use to make the tests fail only on Apple Silicon M1 machine but now it also happens with macOS Intel machines on the CI for some reason.

The problem was already reported upstream as and fixed in numpy (fix to be released in numpy 1.22.0):

Example failure on our CI:

https://dev.azure.com/scikit-learn/scikit-learn/_build/results?buildId=33848&view=logs&j=97641769-79fb-5590-9088-a30ce9b850b9&t=4dc8e08b-9a37-5d92-b6d2-246a6a63d51e

I can reproduce locally. Will work on a workaround to make those tests XFAIL on macos.

@ogrisel ogrisel changed the title RuntimeWarning "invalid value encountered in reciprocal" when running tests on macos RuntimeWarning "invalid value encountered in reciprocal" when running tests on macOS Oct 22, 2021
@ogrisel ogrisel added this to the 1.0.1 milestone Oct 22, 2021
@ogrisel
Copy link
Member Author

ogrisel commented Oct 22, 2021

We might need to backport this to 1.0.X to make it possible to release macos packages on conda-forge without test failures.

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

Successfully merging a pull request may close this issue.

1 participant