-
Notifications
You must be signed in to change notification settings - Fork 401
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
ImportError: cannot import name 'interp' from 'scipy' #691
Comments
I am also facing the same error. |
Thank you @haim-cohen-moonactive, I've added limit for |
any clue when requirements.txt file doesn't exist? |
@cmontesv Just install scipy==1.11.4. If inside a notebook: This will make mljar work again. |
it worked, thank you very much |
there is an error ImportError: cannot import name 'reshape' from 'scipy', my scipy version is 1.12.0, python version is 3.9, what version of scipy is suitable for me |
Please install scipy 1.11.4, I will fix it tomorrow and do new release. |
Getting same [ImportError: cannot import name 'interp' from 'scipy'] error even after installing scipy-1.11.4 |
Please update mljar-supervised to the latest version. |
Try replacing the line "from scipy import interp" to "from numpy import interp" in the files "metrics.py" and "plotters" below: The paths and names may be different in your installation. It worked for me. |
@pplonski @namelessperson0 @haim-cohen-moonactive ImportError: cannot import name 'interp' from 'scipy' I am not using mljar-supervised. may I ask you where can I find additionally: i checked the scipy version in terminal it shows scipy 1.11.4 but in jupyter where i get the error its scipy 1.13.1 i have 2 other environments in anaconda than BASE. on all the scipy version in terminal is 1.11.4 but in jupter i get 1.13.1. any one knows why is that? |
The issue is because scikit-plot depends on old version of scipy. To fix issue you can install mljar-scikit-plot it is fork maintained by me |
On January 20th, 2024 scypi released version 1.12.0 which broke its compatibility withthe old scikit-plot version 0.37, used by mljar-supervised. Since then, when importing AutoML (
from supervised.automl import AutoML
) you get the following error:It also happens on
Python 3.11.7
.WORKAROUND:
Add to requirements.txt
scipy==1.11.4
, which installs the previous version of scipy.@pplonski, long-term I guess replacing
scikit-plot
should take place, as it stopped developing on 2018. As a a quick fix for now, I would add the following to requirements.txtinstead of
scipy>=1.6.1
Thanks!
The text was updated successfully, but these errors were encountered: