Open haim-cohen-moonactive opened 5 months ago
I am also facing the same error.
ImportError: cannot import name 'interp' from 'scipy'
Thank you @haim-cohen-moonactive, I've added limit for scipy
version. I will take a look at scikit-plot
as well.
any clue when requirements.txt file doesn't exist? thanks
any clue when requirements.txt file doesn't exist? thanks
@cmontesv Just install scipy==1.11.4. If inside a notebook:
%pip install scipy==1.11.4
This will make mljar work again.
any clue when requirements.txt file doesn't exist? thanks
@cmontesv Just install scipy==1.11.4. If inside a notebook:
%pip install scipy==1.11.4
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 then i change my scipy version to 1.6.1, an new error:ImportError: cannot import name 'expm2' from 'scipy.linalg' Thank!
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: conda/envs/scipy/lib/python3.10/site-packages/scikitplot/metrics.py conda/envs/scipy/lib/python3.10/site-packages/scikitplot/plotters.py
The paths and names may be different in your installation.
It worked for 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!