Import DICOMSegmentationPlugin does not work in preview release

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’

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.

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

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

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

Are you trying to replicate this example?

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.


@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.

1 Like

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)

(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’?

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.

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.

1 Like