# Error: DICOMSegmentationPlugin is not defined

**URL:** <https://discourse.slicer.org/t/error-dicomsegmentationplugin-is-not-defined/22624>\
**Category:** Support\
**Tags:** segmentation, extensions-manager, dicom, python\
**Created:** [March 21, 2022, 5:31pm UTC](https://discourse.slicer.org/t/error-dicomsegmentationplugin-is-not-defined/22624 "2022-03-21T17:31:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 21, 2022, 8:19pm UTC](https://discourse.slicer.org/t/error-dicomsegmentationplugin-is-not-defined/22624/2 "2022-03-21T20:19:42Z")

</div>

Yes for that example to work you have to have a Slicer extension installed. See the following thread about this:

> [@Import DICOMSegmentationPlugin does not work in preview release](https://discourse.slicer.org/t/import-dicomsegmentationplugin-does-not-work-in-preview-release/22289/6):
>
> 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. [image] @pieper This probably brings up a point that the Script Repository needs to make mentions of any dependent ex…

---

_[View the full topic](https://discourse.slicer.org/t/error-dicomsegmentationplugin-is-not-defined/22624)._
