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

ModuleNotFoundError: No module named 'scipy' #63

Open
abergsneider opened this issue Dec 11, 2020 · 2 comments
Open

ModuleNotFoundError: No module named 'scipy' #63

abergsneider opened this issue Dec 11, 2020 · 2 comments

Comments

@abergsneider
Copy link

abergsneider commented Dec 11, 2020

TL;DR: Should scipy be included under requirements.txt?

One day attempting to run the basic loading data command:

from starter_code.visualize import visualize

visualize("case_00123", '/Volumes/Extreme_SSD/kits19/dumping')

The terminal output displayed ModuleNotFoundError: No module named 'scipy'

Not sure why.. I have run this code previously and it worked.. so something might have happened with my packages. This got me thinking. Should scipy be included under requirements.txt?

@neheller
Copy link
Owner

The starter code has many problems :)

Among them is the fact that scipy has deprecated a lot (maybe all?) of the misc functions that I was using for visualization. I could try to find an old version of scipy and its dependencies with which the script will still work, but better yet I could remove scipy as a dependency entirely and fix some of the other problems the script has, like its intense memory usage for large cases. Since the 2021 Challenge is right around the corner and I have starter code in progress for that one, I'll plan to do the latter.

In the meantime, you should just be able to comment out the import scipy.misc line in visualize.py and visualizing in the axial plane should still work just fine.

Thanks for bringing this up, I'll plan to keep this issue open until I push a longer term solution. Please let me know if you run into any trouble with the workaround in the meantime.

@abergsneider
Copy link
Author

Thanks for the quick response @neheller ! I ended up running pip3 install scipy and it did it for me. But I'll try commenting it next time. And so excited for KiTS 2021! Take care.

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