# Cross-section analysis ImportError on Mac

**URL:** <https://discourse.slicer.org/t/cross-section-analysis-importerror-on-mac/32849>\
**Category:** VMTK\
**Created:** [November 15, 2023, 10:51pm UTC](https://discourse.slicer.org/t/cross-section-analysis-importerror-on-mac/32849 "2023-11-15T22:51:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![urethralking](https://avatars.discourse-cdn.com/v4/letter/u/f04885/32.png) [@urethralking](https://discourse.slicer.org/u/urethralking)\
**Post date:** [November 15, 2023, 10:51pm UTC](https://discourse.slicer.org/t/cross-section-analysis-importerror-on-mac/32849/1 "2023-11-15T22:51:02Z")

</div>

Hi everyone, I installed Slicer VMTK using the extensions module on my Mac M1 and successfully extracted a centerline of a urethra using the module. However, when I try to use Cross-section Analysis, I keep getting the following error:

“File “/Applications/Slicer.app/Contents/Extensions-31938/SlicerVMTK/lib/Slicer-5.4/qt-scripted-modules/CrossSectionAnalysis.py”, line 995, in updateOutputTable  
import vtkSlicerCrossSectionAnalysisModuleLogicPython as vtkSlicerCrossSectionAnalysisModuleLogic  
ImportError: Failed to load vtkSlicerCrossSectionAnalysisModuleLogicPython: No module named vtkSlicerShapeModuleMRMLPython”

Under “Browse cross-sections”, for cross-section area I keep seeing 'N/A (input lumen not specified) even though I entered my segmentation as the input lumen surface.

I’ve successfully run Cross-section analysis on a Windows PC before and would appreciate help understanding why this error is occurring now. Thank you!

---

<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:** [November 15, 2023, 10:52pm UTC](https://discourse.slicer.org/t/cross-section-analysis-importerror-on-mac/32849/2 "2023-11-15T22:52:14Z")

</div>

@chir.set can you help with this?

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [November 16, 2023, 9:59am UTC](https://discourse.slicer.org/t/cross-section-analysis-importerror-on-mac/32849/3 "2023-11-16T09:59:26Z")

</div>

> [@urethralking](#):
>
> No module named vtkSlicerShapeModuleMRMLPython

The library ‘vtkSlicerShapeModuleMRMLPython’ is not being found while importing ‘vtkSlicerCrossSectionAnalysisModuleLogicPython’.

This means that your must install the ‘ExtraMarkups’ extension using the extensions manager; this extension provides the ‘vtkSlicerShapeModuleMRMLPython’ library.

It’s weird because ‘ExtraMarkups’ is a dependency of ‘SlicerVMTK’ and it is installed together with ‘SlicerVMTK’. Are you using an old version of ‘SlicerVMTK’ or an old version of Slicer itself? Try with the latest stable or preview versions.

---

<div class="post-metadata">

**Author:** ![urethralking](https://avatars.discourse-cdn.com/v4/letter/u/f04885/32.png) [@urethralking](https://discourse.slicer.org/u/urethralking)\
**Post date:** [November 16, 2023, 1:06pm UTC](https://discourse.slicer.org/t/cross-section-analysis-importerror-on-mac/32849/4 "2023-11-16T13:06:23Z")

</div>

Thank you both so much! I was running the latest stable release (5.4.0) but the issue resolved when I switched to the preview (5.5.0).
