This post has NOT been accepted by the mailing list yet.
my code for converting the dicom images to nrrd formats runs on linux well but it gives error on windows. I'm using slicer python interactor for running it:
plugin = slicer.modules.dicomPlugins['DICOMScalarVolumePlugin']()
loadables = plugin.examine([file_names])
Traceback (most recent call last):
File "", line 1, in
File "C:\Program Files\Slicer 4.6.2\lib\Slicer-4.6\qt-scripted-modules\DICOMLib\DICOMPlugin.py", line 119, in examine
File "C:/Program Files/Slicer 4.6.2/lib/Slicer-4.6/qt-scripted-modules/DICOMScalarVolumePlugin.py", line 52, in examineForImport
loadablesForFiles = self.examineFiles(files)
File "C:/Program Files/Slicer 4.6.2/lib/Slicer-4.6/qt-scripted-modules/DICOMScalarVolumePlugin.py", line 67, in examineFiles
seriesUID = slicer.dicomDatabase.fileValue(files,self.tags['seriesUID'])
AttributeError: 'NoneType' object has no attribute 'fileValue'
first I thought the file path is the problem but slicer.util.loadVolume(file_names) can load the dicom images to the scene, so i guess the path is correct. Does anyone know what is happening here?
Thanks in advance