# Unable to import the SlicerVmtk libraries\` in	Slicer4.7, macOS

**URL:** <https://discourse.slicer.org/t/unable-to-import-the-slicervmtk-libraries-in-slicer4-7-macos/128>\
**Category:** Support\
**Created:** [April 17, 2017, 1:28pm UTC](https://discourse.slicer.org/t/unable-to-import-the-slicervmtk-libraries-in-slicer4-7-macos/128 "2017-04-17T13:28:49Z")\
**Posts on this page:** 2\
**Page:** 1

<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 17, 2017, 1:28pm UTC](https://discourse.slicer.org/t/unable-to-import-the-slicervmtk-libraries-in-slicer4-7-macos/128/1 "2017-04-17T13:28:49Z")

</div>

I am using vmtk as an extension in 3D Slicer4.7. It works fine on Windows,  
but fails to import dynamic libraries in macOS by reporting `Unable to import the SlicerVmtk libraries`.

`qt-scripted-modules` can be accessed, but `qt-loadable-modules` can not be  
found. It seems that rpath is incorrect. Anybody knows how to solve it?

Errors in Python interactor:

```auto
>>> [VMTK 04/17/2017 12:53:06] DEBUG: Starting Level Set Segmentation..
Unable to import the SlicerVmtk libraries
Traceback (most recent call last):
  File
"/Applications/Slicer.app/Contents/Extensions-25933/SlicerExtension-VMTK/lib/Slicer-4.7/qt-scripted-modules/LevelSetSegmentation.py",
line 342, in onRefreshButtonClicked
    self.start( True )
  File
"/Applications/Slicer.app/Contents/Extensions-25933/SlicerExtension-VMTK/lib/Slicer-4.7/qt-scripted-modules/LevelSetSegmentation.py",
line 622, in start
    'collidingfronts' ) )
  File
"/Applications/Slicer.app/Contents/Extensions-25933/SlicerExtension-VMTK/lib/Slicer-4.7/qt-scripted-modules/SlicerVmtkCommonLib/LevelSetSegmentationLogic.py",
line 64, in performInitialization
    collidingFronts =
vtkvmtkSegmentation.vtkvmtkCollidingFrontsImageFilter()

```

---

<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 17, 2017, 1:30pm UTC](https://discourse.slicer.org/t/unable-to-import-the-slicervmtk-libraries-in-slicer4-7-macos/128/2 "2017-04-17T13:30:09Z")

</div>

Please try the latest nightly version.
