# Cannot found attribute 'vtkMRMLSegmentEditorNode'

**URL:** <https://discourse.slicer.org/t/cannot-found-attribute-vtkmrmlsegmenteditornode/11355>\
**Category:** Development\
**Created:** [April 29, 2020, 8:54pm UTC](https://discourse.slicer.org/t/cannot-found-attribute-vtkmrmlsegmenteditornode/11355 "2020-04-29T20:54:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![quabug](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/quabug/32/6726_2.png) [@quabug](https://discourse.slicer.org/u/quabug)\
**Post date:** [April 29, 2020, 8:54pm UTC](https://discourse.slicer.org/t/cannot-found-attribute-vtkmrmlsegmenteditornode/11355/1 "2020-04-29T20:54:17Z")

</div>

I’ve compile and running the latest version “06e327” of slicer on Mac.  
But there’s always an error when I ‘Switch to module: “SegmentEditor”’, and no tool icons show’s up under panel of “Help & Acknowlegement”.  
Traceback (most recent call last):  
File “/Users/quabug/proj/slicer/cmake-build-debug/Slicer-build/lib/Slicer-4.11/qt-scripted-modules/SegmentEditor.py”, line 130, in enter  
self.selectParameterNode()  
File “/Users/quabug/proj/slicer/cmake-build-debug/Slicer-build/lib/Slicer-4.11/qt-scripted-modules/SegmentEditor.py”, line 86, in selectParameterNode  
segmentEditorNode = slicer.vtkMRMLSegmentEditorNode()  
AttributeError: module ‘slicer’ has no attribute ‘vtkMRMLSegmentEditorNode’

Is there something I’m missing during compile?  
mac 10.15.4  
qt 5.14.2 from brew

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [April 29, 2020, 8:55pm UTC](https://discourse.slicer.org/t/cannot-found-attribute-vtkmrmlsegmenteditornode/11355/2 "2020-04-29T20:55:42Z")

</div>

It seems that your build did not succeed. Start a build in Slicer-build folder and see if there are any error messages.

---

<div class="post-metadata">

**Author:** ![quabug](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/quabug/32/6726_2.png) [@quabug](https://discourse.slicer.org/u/quabug)\
**Post date:** [April 30, 2020, 12:12pm UTC](https://discourse.slicer.org/t/cannot-found-attribute-vtkmrmlsegmenteditornode/11355/3 "2020-04-30T12:12:11Z")

</div>

There’s no error while building slicer in `Slicer-build`.  
And just few irrelevant warnings on building the whole project.

I’ve tested 3 different cmake config today, they all have this issue.

```auto
# CLion debug
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DQt5_DIR=/usr/local/Cellar/qt/5.14.2/lib/cmake/Qt5 -G "CodeBlocks - Unix Makefiles" /Users/quabug/proj/slicer

```

```auto
# CLion release
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DQt5_DIR=/usr/local/Cellar/qt/5.14.2/lib/cmake/Qt5 -G "CodeBlocks - Unix Makefiles" /Users/quabug/proj/slicer

```

```auto
# ccmake
ccmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DQt5_DIR=/usr/local/Cellar/qt/5.14.2/lib/cmake/Qt5 ../

```

```auto
# build command
SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk cmake --build . --target Slicer -- -j 16

```

cmake 3.17.1

I am gonna test recommend version of QT next, and will update the result after testing.

---

<div class="post-metadata">

**Author:** ![quabug](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/quabug/32/6726_2.png) [@quabug](https://discourse.slicer.org/u/quabug)\
**Post date:** [May 5, 2020, 12:08pm UTC](https://discourse.slicer.org/t/cannot-found-attribute-vtkmrmlsegmenteditornode/11355/4 "2020-05-05T12:08:09Z")

</div>

Nevermind, I am able to build windows version without any issue, and my target platform is windows, so would not bother mac anymore.
