-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
Compiling Fails due to sklearn/metrics/pairwise.py #29757
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
Comments
This comment was marked as spam.
This comment was marked as spam.
This is not related to #29754. The latter issue is related the wheels building and fail for Windows while you are under MacOS. The error that you witness is related to numpy/numpy#26710. I'm a bit confused why you get it with the development version. Normally, the error is triggered when you have NumPy 2.0+ with an older version of scikit-learn that is not compatible with NumPy 2.0+. Could you retry to clean and rebuild from source with shown dependencies. |
Thank you @glemaitre I have rebuild from source and getting the same issue.
When compiling I get warning:
|
It's hard to tell what is happening but I am pretty sure that this should go away if you rebuild from scratch. Try something like this before rebuilding:
|
Don't worry about the warning, this should not be an issue. We have a several PRs that tries to reduce the number of warnings in the past. |
It seems this fixed it. Thank you all |
Great to hear that 🎉. It can happen to be in weird situations like this and the rebuild from scratch is the first thing to try ... It's a bit hard at the beginning but after a bit of time you will get some intuition whether something is likely due to scikit-learn or to your local setup somehow. In this particular case, we have tests running on each commit on a variety of platforms so it was quite unlikely that it was a scikit-learn issue or we would likely have noticed. Having said that, it can happen that In your particular case, I am guessing that what happened is that you built with |
I am using windows for installing goldenverba, and encountered the following similar error with preparing the meta data:
Steps/Code to Reproduce
Expected No errors: a successful installation. Actual Result:
Would you like to check to see if this issue could be resolved or reproduced? |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
This may be a duplicate of 29754.
Having merged from upstream, the imports in
sklearn/metrics/pairwise.py
do not compile.I am getting error:
"sklearn/metrics/_dist_metrics.pyx", line 1, in init sklearn.metrics._dist_metrics"
I have tried rebuilding my conda environment and sklearn.
Steps/Code to Reproduce
$ python -m sklearn.kernel_approximation
Expected Results
not an error
Actual Results
Versions
The text was updated successfully, but these errors were encountered: