danishm / mritopng

A simple python module to make it easy to batch convert DICOM files to PNG images.
MIT License
137 stars 48 forks source link

No attribute convert_file/folder #19

Closed Rakshith-Manandi closed 5 years ago

Rakshith-Manandi commented 6 years ago

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.

danishm commented 6 years ago

@Rakshith-Manandi Would you be able to post the exact error log from your console?

cmarshall10450 commented 5 years ago

I have this same issue. AttributeError: module 'mritopng' has no attribute 'convert_folder'. Does anyone know how to solve this?

danishm commented 5 years ago

@cmarshall10450 Can you please provide the code that you're trying to run and the detailed error from the console?

cmarshall10450 commented 5 years ago

@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.

danishm commented 5 years ago

I see you're using iPython. Can you show me the output of the following commands?

  1. dir(mritopng)
  2. 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

danishm commented 5 years ago

Closing due to inactivity