# 'NoneType' object has no attribute 'GetPointData' error in exporting RTSTRUCT object into DICOM-SEG

**URL:** <https://discourse.slicer.org/t/nonetype-object-has-no-attribute-getpointdata-error-in-exporting-rtstruct-object-into-dicom-seg/31193>\
**Category:** Support\
**Tags:** slicerrt\
**Created:** [August 17, 2023, 7:56am UTC](https://discourse.slicer.org/t/nonetype-object-has-no-attribute-getpointdata-error-in-exporting-rtstruct-object-into-dicom-seg/31193 "2023-08-17T07:56:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HJY](https://avatars.discourse-cdn.com/v4/letter/h/85e7bf/32.png) [@HJY](https://discourse.slicer.org/u/HJY)\
**Post date:** [August 17, 2023, 7:56am UTC](https://discourse.slicer.org/t/nonetype-object-has-no-attribute-getpointdata-error-in-exporting-rtstruct-object-into-dicom-seg/31193/1 "2023-08-17T07:56:47Z")

</div>

Hi everyone,

 ![Screen-shot of 3D Slicer (DICOM Export-1)](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/9/a97531ad34b120ee901f82790fcd9b5998a4d089.png)  
 ![Screen-shot of 3D Slicer (display)](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/f/afe8d1a79655725fd006078c25cda11d736e2eec.jpeg)  
![Screen-shot of 3D Slicer (DICOM Export-2)|533x499]  
 ![Screen-shot of 3D Slicer (display)](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/f/afe8d1a79655725fd006078c25cda11d736e2eec.jpeg)  
(upload://nUHM4oyIkkUDF76n6Fw9f15xgfA.png)

I am having trouble saving/exporting RTSTRUCT object into DICOM-SEG format. The RTSTRUCT loads up and displays correctly in Slicer (attached ‘display’) and also is properly associated w/ the CT series in which the segmentation was performed.

I have both DCMQI and QuantitativeReporting extensions installed and see the option for ‘DICOMSegmentation’ under ‘Select export type’ menu available when I click on the study or RTSTRUCT node (attached ‘DICOM Export’). However, I get a segmentation object export failure error message that says ‘NoneType’ object has no attribute ‘GetPointData’.

I have tried both the stable version of Slicer 5.2.2 as well as 5.3.0 to no avail. This particular RTSTRUCT can be correctly open/displayed in platform other than Slicer (i.e., MiM). Any ideas as to what could be causing this error?

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [August 17, 2023, 11:54am UTC](https://discourse.slicer.org/t/nonetype-object-has-no-attribute-getpointdata-error-in-exporting-rtstruct-object-into-dicom-seg/31193/2 "2023-08-17T11:54:38Z")

</div>

When you get the error you mentioned you get a complete call stack. It starts with ‘Traceback:’. Can you please paste the whole thing?

---

<div class="post-metadata">

**Author:** ![HJY](https://avatars.discourse-cdn.com/v4/letter/h/85e7bf/32.png) [@HJY](https://discourse.slicer.org/u/HJY)\
**Post date:** [August 17, 2023, 5:10pm UTC](https://discourse.slicer.org/t/nonetype-object-has-no-attribute-getpointdata-error-in-exporting-rtstruct-object-into-dicom-seg/31193/3 "2023-08-17T17:10:17Z")

</div>

Here it is:

Traceback (most recent call last):  
File “C:/Users/hjyu2/Downloads/3D Slicer/Slicer 5.3.0-2023-08-12/slicer.org/Extensions-31925/QuantitativeReporting/lib/Slicer-5.3/qt-scripted-modules/DICOMSegmentationPlugin.py”, line 367, in export  
exporter.export(exportable.directory, segFileName, metadata)  
File “C:/Users/hjyu2/Downloads/3D Slicer/Slicer 5.3.0-2023-08-12/slicer.org/Extensions-31925/QuantitativeReporting/lib/Slicer-5.3/qt-scripted-modules/DICOMSegmentationPlugin.py”, line 504, in export  
nonEmptySegmentIDs = self.getNonEmptySegmentIDs(segmentIDs)  
File “C:/Users/hjyu2/Downloads/3D Slicer/Slicer 5.3.0-2023-08-12/slicer.org/Extensions-31925/QuantitativeReporting/lib/Slicer-5.3/qt-scripted-modules/DICOMSegmentationPlugin.py”, line 582, in getNonEmptySegmentIDs  
return [segmentID for segmentID in segmentIDs if not self.isSegmentEmpty(segmentation.GetSegment(segmentID))]  
File “C:/Users/hjyu2/Downloads/3D Slicer/Slicer 5.3.0-2023-08-12/slicer.org/Extensions-31925/QuantitativeReporting/lib/Slicer-5.3/qt-scripted-modules/DICOMSegmentationPlugin.py”, line 582, in   
return [segmentID for segmentID in segmentIDs if not self.isSegmentEmpty(segmentation.GetSegment(segmentID))]  
File “C:/Users/hjyu2/Downloads/3D Slicer/Slicer 5.3.0-2023-08-12/slicer.org/Extensions-31925/QuantitativeReporting/lib/Slicer-5.3/qt-scripted-modules/DICOMSegmentationPlugin.py”, line 588, in isSegmentEmpty  
imagescalars = r.GetPointData().GetArray(“ImageScalars”)  
AttributeError: ‘NoneType’ object has no attribute ‘GetPointData’
