Closed Rakshith-Manandi closed 5 years ago
@Rakshith-Manandi Would you be able to post the exact error log from your console?
I have this same issue. AttributeError: module 'mritopng' has no attribute 'convert_folder'
. Does anyone know how to solve this?
@cmarshall10450 Can you please provide the code that you're trying to run and the detailed error from the console?
@danishm Thanks for the quick reply.
import mritopng
mritopng.convert_folder("/media/s3/dicom-images/", "/media/s3/dicom-pngs/")
AttributeError Traceback (most recent call last)
<ipython-input-3-2804e5e3a71c> in <module>()
----> 1 mritopng.convert_folder("/media/s3/dicom-images/", "/media/s3/dicom-pngs/")
AttributeError: module 'mritopng' has no attribute 'convert_folder'
Any help is appreciated.
I see you're using iPython. Can you show me the output of the following commands?
dir(mritopng)
print mritopng.__file__
Also, can you confirm if you actually installed mritopng
using python setup.py install
as mentioned in the installation instructions in the README.md
Closing due to inactivity
After I installed the package successfully I'm able to import mritopng into python but when I try to run
mritopng.convert_folder('/Users/rakshith/Desktop/Internship Task/Training Data/Lean M10', '/Users/rakshith/Desktop/Internship Task/Training Data/Lean M10/PNG')
I get mritopng doesn't have convert_folder attribute. I tried it for a single file and it didn't work too.