Skip to content

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

Open
@radlfabs

Description

@radlfabs

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions