Error loading SlicerMorphRC.py

Hello,
I’m using 3D Slicer version 5.8.1 and have been working with the SlicerMorph extension for some time. Recently, I started receiving the following error:
“error loading SlicerMorphRC.py
module ‘slicer’ has no attribute ‘vtkMRMLVolumePropertyNode’
see Python console for stack trace”

I have tried the following steps without success:

  • Uninstalling and reinstalling the SlicerMorph extension
  • Uninstalling and reinstalling 3D Slicer itself

I would appreciate any help resolving this issue.

Thank you!

I can’t replicate this on my Mac. When I enable SlicerMorphRC.py, there is no error. What platform are you seeing this, and did you make any changes to the resource file (like editing and deleting things).

Also, if you can copy and paste the python console as the error suggest, it might be useful.

Hello,
Thank you for your quick response.
I don’t know if this is related, but this started happening after installing SlicerIGT extension, and I have tried deleting and reinstalling this as well - but no change.
The following is the python script when I open slicer:

Python 3.9.10 (main, Mar 2 2025, 20:55:00) [MSC v.1942 64 bit (AMD64)] on win32

Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\BEM-LAB-PC\AppData\Local\slicer.org\Slicer 5.8.1\lib\Python\Lib\imp.py”, line 169, in load_source
module = _exec(spec, sys.modules[name])
File “”, line 613, in _exec
File “”, line 850, in exec_module
File “”, line 228, in call_with_frames_removed
File “C:/Users/BEM-LAB-PC/AppData/Local/slicer.org/Slicer 5.8.1/slicer.org/Extensions-33241/Sandbox/lib/Slicer-5.8/qt-scripted-modules/ColorizeVolume.py”, line 16, in
from slicer import vtkMRMLScalarVolumeNode, vtkMRMLSegmentationNode, vtkMRMLSequenceBrowserNode, vtkMRMLVectorVolumeNode
ImportError: cannot import name ‘vtkMRMLSequenceBrowserNode’ from ‘slicer’ (C:\Users\BEM-LAB-PC\AppData\Local\slicer.org\Slicer 5.8.1\bin\Python\slicer_init
.py)
[Qt] loadSourceAsModule - Failed to load file “C:/Users/BEM-LAB-PC/AppData/Local/slicer.org/Slicer 5.8.1/slicer.org/Extensions-33241/Sandbox/lib/Slicer-5.8/qt-scripted-modules/ColorizeVolume.py” as module “ColorizeVolume” !
[Qt] Fail to instantiate module “ColorizeVolume”
[Qt] libpng warning: iCCP: profile ‘ICC Profile’: ‘CMYK’: invalid ICC profile color space
[Qt] libpng warning: iCCP: known incorrect sRGB profile
[Qt] libpng warning: iCCP: known incorrect sRGB profile
[Qt] The following modules failed to be instantiated:
[Qt] ColorizeVolume
Traceback (most recent call last):
File “C:/Users/BEM-LAB-PC/AppData/Local/slicer.org/Slicer 5.8.1/bin/../lib/Slicer-5.8/qt-scripted-modules/DataProbe.py”, line 60, in addView
self.infoWidget = DataProbeInfoWidget(parent)
File “C:/Users/BEM-LAB-PC/AppData/Local/slicer.org/Slicer 5.8.1/bin/../lib/Slicer-5.8/qt-scripted-modules/DataProbe.py”, line 98, in init
self._createSmall()
File “C:/Users/BEM-LAB-PC/AppData/Local/slicer.org/Slicer 5.8.1/bin/../lib/Slicer-5.8/qt-scripted-modules/DataProbe.py”, line 406, in _createSmall
self.sliceAnnotations = DataProbeLib.SliceAnnotations()
File “C:\Users\BEM-LAB-PC\AppData\Local\slicer.org\Slicer 5.8.1\lib\Slicer-5.8\qt-scripted-modules\DataProbeLib\SliceViewAnnotations.py”, line 109, in init
self.parameterNode = self.dataProbeUtil.getParameterNode()
File “C:\Users\BEM-LAB-PC\AppData\Local\slicer.org\Slicer 5.8.1\lib\Slicer-5.8\qt-scripted-modules\DataProbeLib\DataProbeUtil.py”, line 24, in getParameterNode
node = self._createParameterNode()
File “C:\Users\BEM-LAB-PC\AppData\Local\slicer.org\Slicer 5.8.1\lib\Slicer-5.8\qt-scripted-modules\DataProbeLib\DataProbeUtil.py”, line 45, in _createParameterNode
slicer.mrmlScene.AddNode(node)
TypeError: AddNode argument 1: method requires a VTK object
Traceback (most recent call last):
File “C:/Users/BEM-LAB-PC/AppData/Local/slicer.org/Slicer 5.8.1/slicer.org/Extensions-33241/SlicerMorph/lib/Slicer-5.8/qt-scripted-modules/MorphPreferences.py”, line 62, in loadPresetFile
exec(open(vrPresetPath).read(), globals())
File “”, line 11, in
AttributeError: module ‘slicer’ has no attribute ‘vtkMRMLVolumePropertyNode’
[Python] Error loading SlicerMorphRC.py
[Python] module ‘slicer’ has no attribute ‘vtkMRMLVolumePropertyNode’
[Python] See Python Console for Stack Trace
Traceback (most recent call last):
File “C:/Users/BEM-LAB-PC/AppData/Local/slicer.org/Slicer 5.8.1/slicer.org/Extensions-33241/Sandbox/lib/Slicer-5.8/qt-scripted-modules/UserStatistics.py”, line 66, in setup
self.logic = UserStatisticsLogic()
File “C:/Users/BEM-LAB-PC/AppData/Local/slicer.org/Slicer 5.8.1/slicer.org/Extensions-33241/Sandbox/lib/Slicer-5.8/qt-scripted-modules/UserStatistics.py”, line 271, in init
self.addObserver(slicer.mrmlScene, slicer.mrmlScene.NodeAddedEvent, self.onNodeAdded)
File “C:\Users\BEM-LAB-PC\AppData\Local\slicer.org\Slicer 5.8.1\bin\Python\slicer\util.py”, line 2822, in addObserver
tag = obj.AddObserver(event, method, priority)
AttributeError: ‘MRMLCorePython.vtkMRMLScene’ object has no attribute ‘AddObserver’
Traceback (most recent call last):
File “C:/Users/BEM-LAB-PC/AppData/Local/slicer.org/Slicer 5.8.1/slicer.org/Extensions-33241/Sandbox/lib/Slicer-5.8/qt-scripted-modules/UserStatistics.py”, line 42, in showUserConfirmationDialog
logic = slicer.modules.userstatistics.widgetRepresentation().self().logic
AttributeError: ‘UserStatisticsWidget’ object has no attribute ‘logic’
[Qt] libpng warning: iCCP: known incorrect sRGB profile
[Qt] Property ‘verbose’’ of object ‘qSlicerWebPythonProxy’ has no notify signal and is not constant, value updates in HTML will be broken!
[Qt] Property ‘verbose’’ of object ‘qSlicerWebPythonProxy’ has no notify signal and is not constant, value updates in HTML will be broken!
[Qt] Mixed Content: The page at ‘@KitwareMedical/slicer-extensions-webapp’ was loaded over HTTPS, but requested an insecure image ‘http://wiki.slicer.org/slicerWiki/images/f/f6/IntensitySegmenterIcon.png’. This content should also be served over HTTPS.
[Qt] A cookie associated with a cross-site resource at http://www.nitrc.org/ was set without the SameSite attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with SameSite=None and Secure. You can review cookies in developer tools under Application>Storage>Cookies and see more details at Chrome Platform Status and Chrome Platform Status.
[Qt] libpng warning: iCCP: known incorrect sRGB profile
[Qt] Property ‘verbose’’ of object ‘qSlicerWebPythonProxy’ has no notify signal and is not constant, value updates in HTML will be broken!
[Qt] Property ‘verbose’’ of object ‘qSlicerWebPythonProxy’ has no notify signal and is not constant, value updates in HTML will be broken!