# Import DICOMSegmentationPlugin does not work in preview release

**URL:** https://discourse.slicer.org/t/import-dicomsegmentationplugin-does-not-work-in-preview-release/22289
**Category:** Support
**Created:** [March 3, 2022, 3:52pm UTC](https://discourse.slicer.org/t/import-dicomsegmentationplugin-does-not-work-in-preview-release/22289 "2022-03-03T15:52:53Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![koeglfryderyk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/koeglfryderyk/32/14638_2.png) [@koeglfryderyk](https://discourse.slicer.org/u/koeglfryderyk)
#### Post date: [March 3, 2022, 3:52pm UTC](https://discourse.slicer.org/t/import-dicomsegmentationplugin-does-not-work-in-preview-release/22289/1 "2022-03-03T15:52:53Z")

</div>

Slicer version 4.13.0, revision 30670, built 2022-03-03, MacOS

`import DICOMSegmentationPlugin`  
does not work, gives the following error:

> ModuleNotFoundError: No module named ‘DICOMSegmentationPlugin’

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [March 3, 2022, 10:04pm UTC](https://discourse.slicer.org/t/import-dicomsegmentationplugin-does-not-work-in-preview-release/22289/2 "2022-03-03T22:04:28Z")

</div>

Usually this means there was an error during module discovery and there should be info in the logs. It’s probably a python syntax issue.

---

<div class="post-metadata">

### Author: ![koeglfryderyk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/koeglfryderyk/32/14638_2.png) [@koeglfryderyk](https://discourse.slicer.org/u/koeglfryderyk)
#### Post date: [March 3, 2022, 11:09pm UTC](https://discourse.slicer.org/t/import-dicomsegmentationplugin-does-not-work-in-preview-release/22289/3 "2022-03-03T23:09:33Z")

</div>

That’s the entire log (there’s only the previously mentioned error there):

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/9/59b4f777d0690094a61fa3186b956adbf4d2ebc7.jpeg)

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [March 3, 2022, 11:37pm UTC](https://discourse.slicer.org/t/import-dicomsegmentationplugin-does-not-work-in-preview-release/22289/4 "2022-03-03T23:37:53Z")

</div>

The error probably happened during module discovery as startup, so higher up the log.

---

<div class="post-metadata">

### Author: ![koeglfryderyk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/koeglfryderyk/32/14638_2.png) [@koeglfryderyk](https://discourse.slicer.org/u/koeglfryderyk)
#### Post date: [March 3, 2022, 11:45pm UTC](https://discourse.slicer.org/t/import-dicomsegmentationplugin-does-not-work-in-preview-release/22289/5 "2022-03-03T23:45:10Z")

</div>

That’s the entire log - I don’t see any errors higher up

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/a/5add40fda452c4748a1ee88cfd491116038de348.jpeg)

---

<div class="post-metadata">

### Author: ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)
#### Post date: [March 4, 2022, 12:04am UTC](https://discourse.slicer.org/t/import-dicomsegmentationplugin-does-not-work-in-preview-release/22289/6 "2022-03-04T00:04:08Z")

</div>

Are you trying to replicate this example?  
[https://slicer.readthedocs.io/en/latest/developer\_guide/script\_repository.html#export-a-segmentation-to-dicom-segmentation-object](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#export-a-segmentation-to-dicom-segmentation-object)

According to this statement in Slicer core, the “DICOMSegmentationPlugin” comes from a Slicer extension. You would need to install Quantitative Reporting before being able to `import DICOMSegmentationPlugin`.

> <https://github.com/Slicer/Slicer/blob/7cef1fff130116376f81882470bd314c22199fdf/Modules/Scripted/DICOMPlugins/DICOMScalarVolumePlugin.py#L269-L270>

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/d/fd7299bb8ec6e597ba09bbf44a229810355558c9.png)

@pieper This probably brings up a point that the Script Repository needs to make mentions of any dependent extensions that are required for various examples.

---

<div class="post-metadata">

### Author: ![koeglfryderyk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/koeglfryderyk/32/14638_2.png) [@koeglfryderyk](https://discourse.slicer.org/u/koeglfryderyk)
#### Post date: [March 4, 2022, 12:16am UTC](https://discourse.slicer.org/t/import-dicomsegmentationplugin-does-not-work-in-preview-release/22289/7 "2022-03-04T00:16:48Z")

</div>

Yes, I am!

However, I’m not able to to install this extension.

I’m not sure if I’m doing something wrong, but when I search for it in the Extension Manager nothing is found (in the preview release 2022-03-02, macOS)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/5/f57d0b6dae2729e68b9f42678d7c038b6f846d52.png)

(I can install the extension in the stable Slicer release (4.11.20210226)

Also, shouldn’t I then get the warning ‘Please install Quantitative Reporting extension to enable loading of DICOM Segmentation objects’?

---

<div class="post-metadata">

### Author: ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)
#### Post date: [March 4, 2022, 12:23am UTC](https://discourse.slicer.org/t/import-dicomsegmentationplugin-does-not-work-in-preview-release/22289/8 "2022-03-04T00:23:58Z")

</div>

For the latest Slicer Preview, Quantitative Reporting extension is currently only building successfully on Windows which is why it is missing on macOS and Linux.

[https://slicer.cdash.org/index.php?project=SlicerPreview&date=2022-03-03&filtercount=1&showfilters=1&field1=buildname&compare1=63&value1=QuantitativeReporting](https://slicer.cdash.org/index.php?project=SlicerPreview&date=2022-03-03&filtercount=1&showfilters=1&field1=buildname&compare1=63&value1=QuantitativeReporting)

That logged warning about the missing DICOMSegmentationPlugin is currently only designed to be logged when using the DICOM module UI and is not currently designed to be logged when attempting to do `import DICOMSegmentationPlugin` from code.
