-
Notifications
You must be signed in to change notification settings - Fork 117
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 'miscnn.data_loading.interfaces.dicom_io' #100
Comments
Hello @marcmorcos, sounds an incorrect Python environment was loaded, in which MIScnn is not installed. Please verify if your pip is connected to the Python 3.9.1 environment you are using. In older linux OS environments pip is connected to Python 2.7 instead of 3.X, which can lead to installation mistakes. Another way to install Python packages with pip is by calling pip directly from your Python environment like
Cheers, |
Thank you @muellerdo. I've had a few different types of issues installing as well. They seem related to dependency mismatches with required packages (i.e. numpy 1.19.2 not compatible with pillow and/or tensorflow if I recall correctly; similar issue with pydicom). Is this something you have encountered? |
Mhm, have not encountered it before, sadly. Could you try it in a fresh Python 3.7 or Python 3.8 environment?
Could you please attach the (error) log of the installation here? |
Sure here's the output after a fresh environment on Windows 10.
No install errors w/ Python3.7 on Win10. Will report back on Linux install errors when on my other PC.
Same error when calling "import miscnn". Thanks for your help. Will report back from the Linux install. |
From linux computing cluster.
We get the following:
The first error seems like a dependency version mismatch. The second error may be due to a missing libjpeg on the cluster. I get similar error (first error) on my personal linux laptop. |
For Windows, this issue seems to be resolved by downgrading batchgenerators to 0.21 after pip installing miscnn |
Thanks for the error logs! Could you please try downloading this git repository (master branch) and try out the following
Also I successfully tested the installation & pytest of the current master branch with Python 3.8 in a Ubuntu:18.04 docker container without errors anymore. Including our CI / automatic GitHub Action building system for Python 3.7 & Python 3.8.
This resulted due to the newest batchgenerators version (0.23) changed some functionality. Temporarily, I have now fixed the batchgenerators version to the latest functional version (0.21). Updated package dependency list:
Mhm. Since we are working with images and pillow is one of the few foundation packages for image processing in Python, it is probably necessary to install Zlib & libjpeg on your cluster. Could you please try to install the newest version 1.2.1 of miscnn via pip and to have a look if it's working, now? Cheers, |
Also having same problem. I'm not seeing version 1.2.1 on pip, though. |
Hey @adleberg, my mistake. Didn't publish the 1.2.1v on PyPI. Cheers, |
Hello,
I'm following the example for the LCTSC_DICOM.
I have installed miscnn using pip (python 3.9.1, pydicom 2.1.2).
The following gives me an error:
from miscnn.data_loading.interfaces.dicom_io import DICOM_interface
Have you encountered this before?
The text was updated successfully, but these errors were encountered: