# Problem with data loading

**URL:** <https://discourse.slicer.org/t/problem-with-data-loading/14208>\
**Category:** Support\
**Created:** [October 23, 2020, 3:50am UTC](https://discourse.slicer.org/t/problem-with-data-loading/14208 "2020-10-23T03:50:04Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![doc-xie](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@doc-xie](https://discourse.slicer.org/u/doc-xie)\
**Post date:** [October 23, 2020, 3:50am UTC](https://discourse.slicer.org/t/problem-with-data-loading/14208/1 "2020-10-23T03:50:04Z")

</div>

Hi everyone,  
How can kill the problem with data loading into Slicer. The information about the error was list below and the problem was the same between CT and MRI in DICOM:  
Imported a DICOM directory, checking for extensions  
Traceback (most recent call last):  
File “C:\Program Files\Slicer 4.10.2\lib\Slicer-4.10\qt-scripted-modules\DICOMLib\DICOMWidgets.py”, line 737, in getLoadablesFromFileLists  
loadablesByPlugin[plugin] = plugin.examine(fileLists)  
File “C:/Users/nzz/AppData/Roaming/NA-MIC/Extensions-28257/SlicerRT/lib/Slicer-4.10/qt-scripted-modules/DicomSroImportPlugin.py”, line 30, in examine  
examineInfo = slicer.vtkDICOMImportInfo()  
AttributeError: ‘module’ object has no attribute ‘vtkDICOMImportInfo’  
Warning: Plugin failed: DicomSroImportPlugin

See python console for error message.  
DICOM Plugin failed: ‘module’ object has no attribute ‘vtkDICOMImportInfo’  
Traceback (most recent call last):  
File “C:\Program Files\Slicer 4.10.2\lib\Slicer-4.10\qt-scripted-modules\DICOMLib\DICOMWidgets.py”, line 733, in getLoadablesFromFileLists  
loadablesByPlugin[plugin] = plugin.examineForImport(fileLists)  
File “C:/Users/nzz/AppData/Roaming/NA-MIC/Extensions-28257/SlicerRT/lib/Slicer-4.10/qt-scripted-modules/DicomRtImportExportPlugin.py”, line 41, in examineForImport  
slicer.modules.dicomrtimportexport.logic().ExamineForLoad(vtkFileList, loadablesCollection)  
AttributeError: ‘module’ object has no attribute ‘dicomrtimportexport’  
Warning: Plugin failed: DicomRtImportExportPlugin

See python console for error message.  
DICOM Plugin failed: ‘module’ object has no attribute ‘dicomrtimportexport’

ImportError: DLL load failed: ¾Ü¾ø·ÃÎÊ¡£  
Traceback (most recent call last):  
File “C:/Users/nzz/AppData/Roaming/NA-MIC/Extensions-28257/SegmentEditorExtraEffects/lib/Slicer-4.10/qt-scripted-modules/SegmentEditorWatershed.py”, line 30, in registerEditorEffect  
instance.self().register()  
AttributeError: ‘NoneType’ object has no attribute ‘register’  
Best wishes,  
Xie

---

<div class="post-metadata">

**Author:** ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)\
**Post date:** [October 23, 2020, 4:02am UTC](https://discourse.slicer.org/t/problem-with-data-loading/14208/2 "2020-10-23T04:02:07Z")

</div>

Can you try with the latest stable release and let us know if the issue still occurs?

---

<div class="post-metadata">

**Author:** ![doc-xie](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@doc-xie](https://discourse.slicer.org/u/doc-xie)\
**Post date:** [October 23, 2020, 7:40am UTC](https://discourse.slicer.org/t/problem-with-data-loading/14208/3 "2020-10-23T07:40:59Z")

</div>

Hi,  
I installed the newest preview version(4.13.0,2020-10-22). The DICOM data can not be loaded successfully. The error showed as following:  
Could not read scalar volume using GDCM approach. Error is: FileFormatError

Loading with imageIOName: DCMTK

Could not read scalar volume using DCMTK approach. Error is: FileFormatError

Could not load: 4: Unnamed Series as a Scalar Volume

Best wishes,  
Xie

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 23, 2020, 5:56pm UTC](https://discourse.slicer.org/t/problem-with-data-loading/14208/4 "2020-10-23T17:56:24Z")

</div>

> [@doc-xie](#):
>
> Could not read scalar volume using DCMTK approach. Error is: FileFormatError

This indicates that the file is corrupted. If you can upload it somewhere (make sure there is no patient health information in the file) and post the link here then we can confirm.

---

<div class="post-metadata">

**Author:** ![doc-xie](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@doc-xie](https://discourse.slicer.org/u/doc-xie)\
**Post date:** [October 26, 2020, 1:44am UTC](https://discourse.slicer.org/t/problem-with-data-loading/14208/5 "2020-10-26T01:44:09Z")

</div>

Hi Lassoan,  
After the data was converted into \*.nii format, it can be loaded into Slicer correctly and the size of the data was more bigger (448M)than the original data (261M). Here is the link of the data:  
Link:[https://pan.baidu.com/s/1d8kGMruZ1mGyitUIl3qBFw](https://pan.baidu.com/s/1d8kGMruZ1mGyitUIl3qBFw)  
PIN:sako  
But I am not sure whether you can download it successfully.  
Best wishes,  
Xie

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 26, 2020, 2:44am UTC](https://discourse.slicer.org/t/problem-with-data-loading/14208/6 "2020-10-26T02:44:18Z")

</div>

I could not download the file. The download page was all Chinese, I got it mostly translated in the browser but it wanted me to install something and register an account. Could you upload to anywhere else? Or somebody could help with downloading it and uploading to any file sharing service that allows direct download.

---

<div class="post-metadata">

**Author:** ![doc-xie](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@doc-xie](https://discourse.slicer.org/u/doc-xie)\
**Post date:** [October 26, 2020, 3:27am UTC](https://discourse.slicer.org/t/problem-with-data-loading/14208/7 "2020-10-26T03:27:11Z")

</div>

Hi Lassoan,  
I think it can be downloaded now for you.

> **[guoqiangxie](https://www.dropbox.com/sh/0gvgcaw88d09ts8/AADT4n6rFKRQ0zP_yOnKQGNVa?dl=0)**
>
> Shared with Dropbox

  
Best wishes,  
Xie

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 27, 2020, 2:45am UTC](https://discourse.slicer.org/t/problem-with-data-loading/14208/8 "2020-10-27T02:45:52Z")

</div>

Thank you I could open this nifti file and it looks good, but it does not help in determining what was the problem with the original file.

This nifti file uses “float” voxel type, which is the most probably reason why it uses 2x more space than the original (usually “short” type). If memory usage is a concern then you can cast the image back “short” using “Cast scalar volume” module and/or crop it to the relevant region using Crop volume module.

Have you converted from DICOM to nifti using dcm2niix? Maybe it is more tolerant to some DICOM format errors than DCMTK or GDCM (that Slicer uses for DICOM parsing by default). You can choose to use dcm2niix as DICOM image loader in Slicer by installing SlicerDcm2nii extension.

---

<div class="post-metadata">

**Author:** ![doc-xie](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@doc-xie](https://discourse.slicer.org/u/doc-xie)\
**Post date:** [October 27, 2020, 7:17am UTC](https://discourse.slicer.org/t/problem-with-data-loading/14208/9 "2020-10-27T07:17:33Z")

</div>

Hi Lassoan,  
The data can be loaded into Slicer normally from DICOM using dcm2niix and saved in .nhdr format. But I am not sure about the problem about the data and when the dcm2niix should be chose for data loading.  
Best wishes,  
Xie
