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

Bug: Failing to import Scikitplot fails due to ImportError #119

Open
radlfabs opened this issue Jan 22, 2024 · 4 comments
Open

Bug: Failing to import Scikitplot fails due to ImportError #119

radlfabs opened this issue Jan 22, 2024 · 4 comments

Comments

@radlfabs
Copy link

Hey @reiinakano,

first, your work was a great addition to the open-source ML community and is still used. 👍
Unfortunately, importing a freshly installed scikit-plot now fails with the following ImportErrror:

import scikitplot
print("Hello World")

import scikitplot
Traceback (most recent call last):
File "", line 1, in
File "D:\test-scikitplot\skplot\Lib\site-packages\scikitplot_init_.py", line 2, in
from . import metrics, cluster, decomposition, estimators
File "D:\test-scikitplot\skplot\Lib\site-packages\scikitplot\metrics.py", line 27, in
from scipy import interp
ImportError: cannot import name 'interp' from 'scipy' (D:\test-scikitplot\skplot\Lib\site-packages\scipy_init_.py)

So what fails is

from scipy import interp

The interp-function can be imported from numpy instead.
This bug is severe, because it affects all packages trying to import scikit-plot at the moment.
I would highly appreciate you looking into this! Thanks a lot and best wishes!

@akosmaroy
Copy link

is there a workaround for this in the meantime?

@pplonski
Copy link

pplonski commented Mar 4, 2024

Please install scipy==1.11.4 to fix this issue.

@linviaz
Copy link

linviaz commented Mar 18, 2024

A bit late in the conversation, but I created a pull request here to fix the issue: #120

@pplonski
Copy link

I created a fork with @linviaz PR, I will maintain it https://github.com/mljar/mljar-scikit-plot

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

No branches or pull requests

4 participants