# Segment Statistics Module on 3D Slicer 5.6.2

**URL:** <https://discourse.slicer.org/t/segment-statistics-module-on-3d-slicer-5-6-2/40714>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [December 16, 2024, 2:00pm UTC](https://discourse.slicer.org/t/segment-statistics-module-on-3d-slicer-5-6-2/40714 "2024-12-16T14:00:37Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![imbeatriz](https://avatars.discourse-cdn.com/v4/letter/i/e8c25b/32.png) [@imbeatriz](https://discourse.slicer.org/u/imbeatriz)\
**Post date:** [December 16, 2024, 2:00pm UTC](https://discourse.slicer.org/t/segment-statistics-module-on-3d-slicer-5-6-2/40714/1 "2024-12-16T14:00:37Z")

</div>

Hi everyone!

I wanted to use the Segment Statistics module to validate the VOIs I segmented using Scalar Volume Statistic, but it doesn’t seem to be working in my 3D Slicer version 5.6.2.

Does anyone what this could be done to? What alternative could I use?

 ![tttt](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/c/6c1bd1f90292235560d7fc1c5c0ef6355e7ff21d.png)

Thank you!

Greetings,  
Beatriz

---

<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:** [December 16, 2024, 2:58pm UTC](https://discourse.slicer.org/t/segment-statistics-module-on-3d-slicer-5-6-2/40714/2 "2024-12-16T14:58:31Z")

</div>

What operating system do you use? Is there any error in the Python console or Error log after start-up?

---

<div class="post-metadata">

**Author:** ![imbeatriz](https://avatars.discourse-cdn.com/v4/letter/i/e8c25b/32.png) [@imbeatriz](https://discourse.slicer.org/u/imbeatriz)\
**Post date:** [December 16, 2024, 3:05pm UTC](https://discourse.slicer.org/t/segment-statistics-module-on-3d-slicer-5-6-2/40714/3 "2024-12-16T15:05:39Z")

</div>

I have Ubuntu 24.04 LTS system. On the python console it shows the following:

Python 3.9.10 (main, Apr 5 2024, 04:28:47)  
[GCC 7.3.1 20180303 (Red Hat 7.3.1-5)] on linux2

> > >

[Qt] Error(s):  
[Qt] Cannot load library /home/administrator/Software/Slicer-5.6.2-linux-amd64/slicer.org/Extensions-32448/SlicerRT/lib/Slicer-5.6/qt-loadable-modules/libqSlicerBeamsModule.so: (libvtkIECTransformLogic.so: cannot open shared object file: No such file or directory)  
[Qt] Error(s):  
[Qt] Cannot load library /home/administrator/Software/Slicer-5.6.2-linux-amd64/slicer.org/Extensions-32448/SlicerRT/lib/Slicer-5.6/qt-loadable-modules/libqSlicerDicomRtImportExportModule.so: (libvtkIECTransformLogic.so: cannot open shared object file: No such file or directory)  
[Qt] Error(s):  
[Qt] Cannot load library /home/administrator/Software/Slicer-5.6.2-linux-amd64/slicer.org/Extensions-32448/SlicerRT/lib/Slicer-5.6/qt-loadable-modules/libqSlicerDicomSroImportExportModule.so: (libvtkIECTransformLogic.so: cannot open shared object file: No such file or directory)  
[Qt] Error(s):  
[Qt] Cannot load library /home/administrator/Software/Slicer-5.6.2-linux-amd64/slicer.org/Extensions-32448/SlicerRT/lib/Slicer-5.6/qt-loadable-modules/libqSlicerDrrImageComputationModule.so: (libvtkIECTransformLogic.so: cannot open shared object file: No such file or directory)  
[Qt] Error(s):  
[Qt] Cannot load library /home/administrator/Software/Slicer-5.6.2-linux-amd64/slicer.org/Extensions-32448/SlicerRT/lib/Slicer-5.6/qt-loadable-modules/libqSlicerExternalBeamPlanningModule.so: (libvtkIECTransformLogic.so: cannot open shared object file: No such file or directory)  
[Qt] Error(s):  
[Qt] Cannot load library /home/administrator/Software/Slicer-5.6.2-linux-amd64/slicer.org/Extensions-32448/SlicerRT/lib/Slicer-5.6/qt-loadable-modules/libqSlicerPlmProtonDoseEngineModule.so: (libvtkIECTransformLogic.so: cannot open shared object file: No such file or directory)  
[Qt] Error(s):  
[Qt] Cannot load library /home/administrator/Software/Slicer-5.6.2-linux-amd64/slicer.org/Extensions-32448/SlicerRT/lib/Slicer-5.6/qt-loadable-modules/libqSlicerRoomsEyeViewModule.so: (libvtkIECTransformLogic.so: cannot open shared object file: No such file or directory)  
libvtkIECTransformLogic.so: cannot open shared object file: No such file or directory  
libvtkIECTransformLogic.so: cannot open shared object file: No such file or directory  
libvtkIECTransformLogic.so: cannot open shared object file: No such file or directory  
libvtkIECTransformLogic.so: cannot open shared object file: No such file or directory  
libvtkIECTransformLogic.so: cannot open shared object file: No such file or directory  
libvtkIECTransformLogic.so: cannot open shared object file: No such file or directory  
libvtkIECTransformLogic.so: cannot open shared object file: No such file or directory  
libvtkIECTransformLogic.so: cannot open shared object file: No such file or directory  
libvtkIECTransformLogic.so: cannot open shared object file: No such file or directory  
libvtkIECTransformLogic.so: cannot open shared object file: No such file or directory  
[Qt] When loading module “BatchStructureSetConversion” , the dependency “DicomRtImportExport” failed to be loaded.  
[Qt] When loading module “IGRTWorkflow\_SelfTest” , the dependency “DicomRtImportExport” failed to be loaded.  
Traceback (most recent call last):  
File “/home/administrator/Software/Slicer-5.6.2-linux-amd64/lib/Slicer-5.6/qt-scripted-modules/SegmentStatistics.py”, line 58, in setup  
self.logic = SegmentStatisticsLogic()  
File “/home/administrator/Software/Slicer-5.6.2-linux-amd64/lib/Slicer-5.6/qt-scripted-modules/SegmentStatistics.py”, line 394, in **init**  
self.reset()  
File “/home/administrator/Software/Slicer-5.6.2-linux-amd64/lib/Slicer-5.6/qt-scripted-modules/SegmentStatistics.py”, line 430, in reset  
params = self.getParameterNode()  
File “/home/administrator/Software/Slicer-5.6.2-linux-amd64/lib/Slicer-5.6/qt-scripted-modules/SegmentStatistics.py”, line 399, in getParameterNode  
self.setParameterNode(ScriptedLoadableModuleLogic.getParameterNode(self))  
File “/home/administrator/Software/Slicer-5.6.2-linux-amd64/lib/Slicer-5.6/qt-scripted-modules/SegmentStatistics.py”, line 409, in setParameterNode  
plugin.setParameterNode(parameterNode)  
File “/home/administrator/Software/Slicer-5.6.2-linux-amd64/lib/Slicer-5.6/qt-scripted-modules/SegmentStatisticsPlugins/SegmentStatisticsPluginBase.py”, line 124, in setParameterNode  
self.createDefaultOptionsWidget()  
File “/home/administrator/Software/Slicer-5.6.2-linux-amd64/lib/Slicer-5.6/qt-scripted-modules/SegmentStatisticsPlugins/SegmentStatisticsPluginBase.py”, line 164, in createDefaultOptionsWidget  
info = self.getMeasurementInfo(key)  
File “/home/administrator/Software/Slicer-5.6.2-linux-amd64/slicer.org/Extensions-32448/PET-IndiC/lib/Slicer-5.6/qt-scripted-modules/PETVolumeSegmentStatisticsPlugin/PETVolumeSegmentStatisticsPlugin.py”, line 106, in getMeasurementInfo  
self.createMeasurementInfo(name=“Mean”, description=“Mean uptake value”,  
TypeError: createMeasurementInfo() missing 1 required positional argument: ‘title’  
Traceback (most recent call last):  
File “/home/administrator/Software/Slicer-5.6.2-linux-amd64/lib/Slicer-5.6/qt-scripted-modules/SegmentStatistics.py”, line 170, in enter  
if self.parameterNodeSelector.currentNode() is None:  
AttributeError: ‘SegmentStatisticsWidget’ object has no attribute ‘parameterNodeSelector’  
Requirement already satisfied: pillow\<10.1 in ./lib/Python/lib/python3.9/site-packages (10.0.1)  
[Qt] libpng warning: iCCP: known incorrect sRGB profile  
Traceback (most recent call last):  
File “/home/administrator/Software/Slicer-5.6.2-linux-amd64/lib/Slicer-5.6/qt-scripted-modules/SegmentStatistics.py”, line 170, in enter  
if self.parameterNodeSelector.currentNode() is None:  
AttributeError: ‘SegmentStatisticsWidget’ object has no attribute 'parameterNodeSelector

---

<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:** [December 16, 2024, 3:13pm UTC](https://discourse.slicer.org/t/segment-statistics-module-on-3d-slicer-5-6-2/40714/4 "2024-12-16T15:13:10Z")

</div>

Thanks, this is very helpful!

First of all this means that the SlicerRT installation failed. I’ll look into this.

Second, the issue you posted about is probably due to the PET-IndiC extension, it seems that there was a change in the API that was not handled correctly. If you do not absolutely need the PET-IndiC extension, try uninstalling it and then probably the SegmentStatistics module will work.  
But in any case the owner of the extension should look into this.

Actually, Slicer 5.8 is around the corner. Can you try the latest Slicer preview version?

---

<div class="post-metadata">

**Author:** ![imbeatriz](https://avatars.discourse-cdn.com/v4/letter/i/e8c25b/32.png) [@imbeatriz](https://discourse.slicer.org/u/imbeatriz)\
**Post date:** [December 16, 2024, 3:24pm UTC](https://discourse.slicer.org/t/segment-statistics-module-on-3d-slicer-5-6-2/40714/5 "2024-12-16T15:24:22Z")

</div>

Thank you! I would really appreciate it if you could look into the SlicerRT installation issue cause I will need it.

I uninstalled PET-IndiC extension and the SegmentStatistics module works now.

Yeah I can try Slicer preview. Where can I find it tho?

---

<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:** [December 16, 2024, 3:26pm UTC](https://discourse.slicer.org/t/segment-statistics-module-on-3d-slicer-5-6-2/40714/6 "2024-12-16T15:26:22Z")

</div>

> **[Download 3D Slicer](https://download.slicer.org/)**
>
> 3D Slicer is a free, open source software for visualization, processing, segmentation, registration, and analysis of medical, biomedical, and other 3D images and meshes; and planning and navigating image-guided procedures.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/b/eb47df4ad9367828a974d5e8bb33d7ea46de6c1c.png)

---

<div class="post-metadata">

**Author:** ![imbeatriz](https://avatars.discourse-cdn.com/v4/letter/i/e8c25b/32.png) [@imbeatriz](https://discourse.slicer.org/u/imbeatriz)\
**Post date:** [December 16, 2024, 3:35pm UTC](https://discourse.slicer.org/t/segment-statistics-module-on-3d-slicer-5-6-2/40714/7 "2024-12-16T15:35:13Z")

</div>

It seems like the preview it’s not opening in my system 😕

---

<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:** [December 16, 2024, 3:40pm UTC](https://discourse.slicer.org/t/segment-statistics-module-on-3d-slicer-5-6-2/40714/8 "2024-12-16T15:40:11Z")

</div>

> [@imbeatriz](#):
>
> I would really appreciate it if you could look into the SlicerRT installation

One of the binaries is deployed in the incorrect folder. Please consider this folder:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/9/995138d2dea7635caaa90dfd85a9191318d07fcb.png)

There is an `.so` file in `vtkIECTransformLogic` that needs to be moved to `Slicer-5.7/qt-loadable-modules`. This is for the preview, for 5.6.2 it is obviously `Slicer-5.6`. I did that and then SlicerRT worked correctly. We’ll look into the code to fix deployment in upcoming packages.

---

<div class="post-metadata">

**Author:** ![imbeatriz](https://avatars.discourse-cdn.com/v4/letter/i/e8c25b/32.png) [@imbeatriz](https://discourse.slicer.org/u/imbeatriz)\
**Post date:** [December 16, 2024, 3:47pm UTC](https://discourse.slicer.org/t/segment-statistics-module-on-3d-slicer-5-6-2/40714/9 "2024-12-16T15:47:47Z")

</div>

Thank you so much! I did the same for Slicer 5.6.2 and it fixed the errors I was getting on the python console.

---

<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:** [December 16, 2024, 3:53pm UTC](https://discourse.slicer.org/t/segment-statistics-module-on-3d-slicer-5-6-2/40714/10 "2024-12-16T15:53:42Z")

</div>

No problem!

For reference, here’s the ticket to follow the resolution of the SlicerRT problem: [SlicerRT deployment fails on Linux · Issue #262 · SlicerRt/SlicerRT · GitHub](https://github.com/SlicerRt/SlicerRT/issues/262)

I added a new ticket in PET-IndiC as well (but not sure who will do it and when they will notice): [The extension breaks SegmentStatistics · Issue #8 · QIICR/PET-IndiC · GitHub](https://github.com/QIICR/PET-IndiC/issues/8)
