# No module named 'SegmentEditorMaskVolumeLib'

**URL:** <https://discourse.slicer.org/t/no-module-named-segmenteditormaskvolumelib/24130>\
**Category:** Support\
**Tags:** python\
**Created:** [July 1, 2022, 6:04am UTC](https://discourse.slicer.org/t/no-module-named-segmenteditormaskvolumelib/24130 "2022-07-01T06:04:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmhuie](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jmhuie/32/7086_2.png) [@jmhuie](https://discourse.slicer.org/u/jmhuie)\
**Post date:** [July 1, 2022, 6:04am UTC](https://discourse.slicer.org/t/no-module-named-segmenteditormaskvolumelib/24130/1 "2022-07-01T06:04:54Z")

</div>

Until recently, my extension [SegmentGeometry](https://github.com/jmhuie/Slicer-SegmentGeometry) imported the SegmentEditorMaskVolumeLib from the SegmentEditor with no problem. However, I recently updated Slicer on my computer along with the extensions and now it no longer works. When I try to execute the SegmentGeometry module, I get an error that says ‘No module named ‘SegmentEditorMaskVolumeLib’’. Was this module deprecated recently? Any help would be appreciated.

Thanks

---

<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:** [July 1, 2022, 10:46am UTC](https://discourse.slicer.org/t/no-module-named-segmenteditormaskvolumelib/24130/2 "2022-07-01T10:46:26Z")

</div>

Is your SegmentGeometry extension still expecting that the MaskVolume effect is in the experimental set of effects of the SegmentEditorExtraEffects extension? As of January 30th, 2021 the MaskVolume effect was [moved into Slicer core](https://github.com/Slicer/Slicer/commit/12f40a20e73bc2703fdafc710603a9e4a5dc0766) code after it was determined to be mature enough. That specific import you mentioned is a type of import for the SegmentEditorExtraEffects extension which is outdated since MaskVolume is in Slicer core.

> <https://github.com/Slicer/ExtensionsIndex/blob/4ebd40cdd1f222ac2dc08d3a75720da7cdf46ae6/SegmentGeometry.s4ext#L15>

---

<div class="post-metadata">

**Author:** ![jmhuie](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jmhuie/32/7086_2.png) [@jmhuie](https://discourse.slicer.org/u/jmhuie)\
**Post date:** [July 1, 2022, 2:04pm UTC](https://discourse.slicer.org/t/no-module-named-segmenteditormaskvolumelib/24130/3 "2022-07-01T14:04:39Z")

</div>

Ah yes, looks like it had to do with that but the problem didn’t become apparent until Slicer 5.0.2. Anyhow, I managed to make the quick fix by importing “SegmentEditorEffects” instead of “SegmentEditorMaskVolumeLib”. Thanks for your help!

---

<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:** [July 1, 2022, 2:41pm UTC](https://discourse.slicer.org/t/no-module-named-segmenteditormaskvolumelib/24130/4 "2022-07-01T14:41:29Z")

</div>

The SegmentEditorExtraEffects extension still included MaskVolume up until recently in [Remove Slicer4 support · lassoan/SlicerSegmentEditorExtraEffects@afb7e22 · GitHub](https://github.com/lassoan/SlicerSegmentEditorExtraEffects/commit/afb7e22630ae2d36405f57305eb0a9da84e0e457) for backwards compatibility of older versions that did not have it in Slicer core. This is why it had still worked for you.
