# VMTK vessel filtering not working

**URL:** <https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263>\
**Category:** Support\
**Created:** [October 23, 2017, 1:36am UTC](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263 "2017-10-23T01:36:51Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Keno\_Mentor](https://avatars.discourse-cdn.com/v4/letter/k/0ea827/32.png) [@Keno\_Mentor](https://discourse.slicer.org/u/Keno_Mentor)\
**Post date:** [October 23, 2017, 1:36am UTC](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263/1 "2017-10-23T01:36:51Z")

</div>

Operating system: macOS  
Slicer version: 4.5  
Expected behavior:  
Actual behavior:

Hello again,

Trying to use the VMTK module which I recently downloaded. When I select the vessel filtering option I get a “failure to load VMTK libraries” error message. The other options seem to work fine.

Any ideas?

Keno

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [October 23, 2017, 2:20pm UTC](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263/2 "2017-10-23T14:20:07Z")

</div>

Version 4.5 is very old. Please try with the latest release 4.8.

---

<div class="post-metadata">

**Author:** ![Keno\_Mentor](https://avatars.discourse-cdn.com/v4/letter/k/0ea827/32.png) [@Keno\_Mentor](https://discourse.slicer.org/u/Keno_Mentor)\
**Post date:** [October 24, 2017, 10:08am UTC](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263/3 "2017-10-24T10:08:22Z")

</div>

Thanks for the reply Steve.

I’ve tried with 4.8 and the latest 4.9 version - same behavior.

When I use the Segmentation module, the options load but the ‘Start’ button  
is disabled. I add all the details I can as well as seeding the vascular  
tree on the image but it remains greyed out…

Does the Mac version generally have more problems than the windows version?

---

<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:** [October 24, 2017, 1:07pm UTC](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263/4 "2017-10-24T13:07:37Z")

</div>

Could you please copy here a screenshot (make sure no patient name and ID is displayed in slice views) and check if there are any error messages printed in the Python console (Ctrl+3)?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [October 24, 2017, 1:22pm UTC](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263/5 "2017-10-24T13:22:35Z")

</div>

I just tried the vmtk extension on mac with Slicer 4.8 and confirmed it isn’t working.

There’s an issue with the python library:

```auto
>>> import vtkvmtkSegmentationPython as vtkvmtkSegmentation
Traceback (most recent call last):
  File "<console>", line 1, in <module>
ImportError: dlopen(/Applications/Slicer-4.8.0.app/Contents/Extensions-26489/SlicerVMTK/lib/Slicer-4.8/qt-loadable-modules/Python/vtkvmtkSegmentationPython.so, 2): Library not loaded: libvtkvmtkSegmentationPythonD.dylib
  Referenced from: /Applications/Slicer-4.8.0.app/Contents/Extensions-26489/SlicerVMTK/lib/Slicer-4.8/qt-loadable-modules/Python/vtkvmtkSegmentationPython.so
  Reason: image not found

```

---

<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:** [October 24, 2017, 1:24pm UTC](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263/6 "2017-10-24T13:24:53Z")

</div>

@jcfr Could you have a look? I think this worked before (but maybe just on Windows and Linux).

---

<div class="post-metadata">

**Author:** ![Keno\_Mentor](https://avatars.discourse-cdn.com/v4/letter/k/0ea827/32.png) [@Keno\_Mentor](https://discourse.slicer.org/u/Keno_Mentor)\
**Post date:** [October 24, 2017, 1:26pm UTC](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263/7 "2017-10-24T13:26:39Z")

</div>

Hi Andras,

Images below: before scrolling down the module window:

 ![](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/1X/0b2cafd0f26779115a4e024d5492b1d6214f7e4d.png)

After scrolling down to the start button

 ![](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/1X/25582c4bd2eca05679f6ba73db15238fe1511b27.png)

---

<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:** [October 25, 2017, 1:56am UTC](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263/8 "2017-10-25T01:56:07Z")

</div>

@pieper confirmed this is a building/packaging error on MacOS. We are working on releasing a new stable version, so most likely we cannot fix this issue in the next 2 weeks. You can track its status by watching this issue: [https://github.com/vmtk/SlicerExtension-VMTK/issues/11](https://github.com/vmtk/SlicerExtension-VMTK/issues/11)

Until the problem is fixed, you can run a Windows version of Slicer (using Parallels) or try to use VMTK directly, using command-line tools (see [http://www.vmtk.org/](http://www.vmtk.org/)).

---

<div class="post-metadata">

**Author:** ![Keno\_Mentor](https://avatars.discourse-cdn.com/v4/letter/k/0ea827/32.png) [@Keno\_Mentor](https://discourse.slicer.org/u/Keno_Mentor)\
**Post date:** [October 25, 2017, 5:36am UTC](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263/9 "2017-10-25T05:36:33Z")

</div>

Thanks for the update Andras. I’ll try the windows or linux version

---

<div class="post-metadata">

**Author:** ![Fernando](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fernando/32/5640_2.png) [@Fernando](https://discourse.slicer.org/u/Fernando)\
**Post date:** [November 17, 2017, 7:46pm UTC](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263/10 "2017-11-17T19:46:07Z")

</div>

This is still not working, I just had the same issue.

---

<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 18, 2017, 7:10am UTC](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263/11 "2017-11-18T07:10:40Z")

</div>

Latest nightly works for me on both Windows and Linux. Haven’t tested Mac.

---

<div class="post-metadata">

**Author:** ![Fernando](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fernando/32/5640_2.png) [@Fernando](https://discourse.slicer.org/u/Fernando)\
**Post date:** [November 18, 2017, 5:41pm UTC](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263/12 "2017-11-18T17:41:16Z")

</div>

> [@lassoan](#):
>
> Haven’t tested Mac.

Seems to be ok with latest build on Mac too.

---

<div class="post-metadata">

**Author:** ![MBJS](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@MBJS](https://discourse.slicer.org/u/MBJS)\
**Post date:** [December 4, 2017, 9:19pm UTC](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263/13 "2017-12-04T21:19:56Z")

</div>

@Fernando - VMTK doesn’t appear in the Extension Manager in Slicer 4.9 Nightly 4/Dec/17 on MacOS X 10.13.

Am I missing something obvious?

---

<div class="post-metadata">

**Author:** ![Fernando](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fernando/32/5640_2.png) [@Fernando](https://discourse.slicer.org/u/Fernando)\
**Post date:** [December 5, 2017, 11:11am UTC](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263/14 "2017-12-05T11:11:52Z")

</div>

> [@MBJS](#):
>
> Am I missing something obvious?

@MBJS I’m not sure what you mean. I can see VMTK on the Extensions Manager (on macOS 10.12.6).

---

<div class="post-metadata">

**Author:** ![MBJS](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@MBJS](https://discourse.slicer.org/u/MBJS)\
**Post date:** [December 5, 2017, 11:29am UTC](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263/15 "2017-12-05T11:29:03Z")

</div>

That’s interesting.  
When I search in Slicer 4.8.0, VMTK is in the Extension Manager.  
When I search in Slicer 4.9 Nightly, it does not appear there.

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [December 5, 2017, 2:06pm UTC](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263/16 "2017-12-05T14:06:48Z")

</div>

Sometimes nightly build fails for certain extensions, so the nightlies are not always perfect. Unfortunately in this case it seems that VMTK build fails consistently:  
[http://slicer.cdash.org/index.php?project=Slicer4&display=project&filtercombine=or&filtercount=1&showfilters=1&field1=buildname&compare1=63&value1=VMTK](http://slicer.cdash.org/index.php?project=Slicer4&display=project&filtercombine=or&filtercount=1&showfilters=1&field1=buildname&compare1=63&value1=VMTK)  
This was the last successful build, on November 19:  
[http://slicer.cdash.org/index.php?project=Slicer4&date=2017-11-19&filtercount=1&showfilters=1&field1=buildname&compare1=63&value1=VMTK](http://slicer.cdash.org/index.php?project=Slicer4&date=2017-11-19&filtercount=1&showfilters=1&field1=buildname&compare1=63&value1=VMTK)

The logs show a linking error when trying to find vtkCommonExecutionModelPython.

---

<div class="post-metadata">

**Author:** ![MBJS](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@MBJS](https://discourse.slicer.org/u/MBJS)\
**Post date:** [December 5, 2017, 6:33pm UTC](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263/17 "2017-12-05T18:33:37Z")

</div>

Awesome! Thanks for hunting the down @cpinter! Much appreciated

---

<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:** [December 5, 2017, 7:30pm UTC](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263/18 "2017-12-05T19:30:20Z")

</div>

The culprit is this commit in VMTK: [https://github.com/vmtk/vmtk/commit/58c882900cacb66a1f6e5bd26f248b937a362ee8](https://github.com/vmtk/vmtk/commit/58c882900cacb66a1f6e5bd26f248b937a362ee8)

I update the git hash in VMTK extension to use the last working version until we fix the VMTK master. So, VMTK should be available in the nightly build again from tomorrow.

---

<div class="post-metadata">

**Author:** ![MBJS](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@MBJS](https://discourse.slicer.org/u/MBJS)\
**Post date:** [December 6, 2017, 9:46am UTC](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263/19 "2017-12-06T09:46:16Z")

</div>

Thanks @lassoan ! I’ll wait for the next mac nightly build.  
Just downloaded the 4/12/17 Nightly, and its still to show up.

---

<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:** [December 6, 2017, 3:19pm UTC](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263/20 "2017-12-06T15:19:55Z")

</div>

Probably you’ve tried it too early in the morning (US time). It should be available now on Windows and Linux.

[Next page](https://discourse.slicer.org/t/vmtk-vessel-filtering-not-working/1263.md?page=2)
