Project-MONAI / Project-MONAI/MONAILabel

qMRMLSegmentEditorWidget has no attribute named 'setSourceVolumeNode'

Open
#1,440 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
891
Forks
269
Avg merge
15h 41m
Merged PRs (30d)
1

Description

Describe the bug
with slicer 5.0.2:

Traceback (most recent call last):
  File "/Users/Documents/MONAILabel/plugins/slicer/MONAILabel/MONAILabel.py", line 1292, in onNextSampleButton
  File "/Users/Documents/MONAILabel/plugins/slicer/MONAILabel/MONAILabel.py", line 1315, in initSample
    self.ui.embeddedSegmentEditorWidget.setSegmentationNode(self._segmentNode)
AttributeError: qMRMLSegmentEditorWidget has no attribute named 'setSourceVolumeNode'

It seems setSourceVolumeNode is introduced since slicer 5.2 https://github.com/Slicer/Slicer/commit/5dfb6fb6945d3fb56320c2920571f3ffcc5b48fb

Upgrading slicer to version 5.2.2 addressed the issue.
Would be great to clarify the version requirements

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the Slicer compatibility information and the MONAILabel.py usage reported in the issue, starting with the failing setSegmentationNode call and the linked Slicer change. Update the version requirements so the minimum supported Slicer version is explicit, and confirm that the documented requirement reflects the reported fix in Slicer 5.2.2.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.