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

ImportError: cannot import name 'interp' from 'scipy' #112

Open
kopeckylukas opened this issue Feb 26, 2024 · 2 comments
Open

ImportError: cannot import name 'interp' from 'scipy' #112

kopeckylukas opened this issue Feb 26, 2024 · 2 comments

Comments

@kopeckylukas
Copy link

kopeckylukas commented Feb 26, 2024

Importing nPYc with scipy version 1.12.0 results in following error

ImportError: cannot import name 'interp' from 'scipy'

more information:
mljar/mljar-supervised#691
https://stackoverflow.com/questions/78008260/importerror-unable-to-import-interp-from-scipy-module#:~:text=The%20specific%20error%20message%20is,function%20within%20the%20SciPy%20library.

This scipy version was released on 20/01/2024 hence all new installations of nPYc toolbox will result in this error, especially for unexperienced Python users.

@misch91
Copy link
Contributor

misch91 commented Mar 15, 2024

As perfectly outlined in your attached thread, this should be resolved by changing the respective requirement.txt file line to scipy==1.11.4 and/or changing the setup.py

I also noticed some change in seaborn violin plot arguments (dropna is no longer an argument in those). A specific versioning here would probably help, too.

@misch91
Copy link
Contributor

misch91 commented Apr 11, 2024

FYI:
Now, there is another package (networkx) that hinders importing the nPYc module.
The latest running version for me was 3.2.1, therefore I suggest changing the respective lines in requirement.txt & setup.py files to:
'networkx==3.2.1'

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

2 participants