# Unable to run vmtksurfaceviewer

**URL:** <https://discourse.slicer.org/t/unable-to-run-vmtksurfaceviewer/17555>\
**Category:** VMTK\
**Created:** [May 10, 2021, 11:08pm UTC](https://discourse.slicer.org/t/unable-to-run-vmtksurfaceviewer/17555 "2021-05-10T23:08:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![banderies](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@banderies](https://discourse.slicer.org/u/banderies)\
**Post date:** [May 10, 2021, 11:08pm UTC](https://discourse.slicer.org/t/unable-to-run-vmtksurfaceviewer/17555/1 "2021-05-10T23:08:31Z")

</div>

I installed VMTK using Anaconda as the website describes. When I try to run vmtksurfaceviewer, I get the following error:

Unexpected error: \<class ‘ModuleNotFoundError’\>  
Traceback (most recent call last):  
File “/home/m166585/anaconda3/envs/vmtk/lib/python3.6/site-packages/vtk/vtkRenderingOpenGL2.py”, line 5, in   
from .vtkRenderingOpenGL2Python import \*  
ImportError: libOSMesa.so.8: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File “/home/m166585/anaconda3/envs/vmtk/bin/vmtksurfaceviewer”, line 20, in   
from vmtk import pypeserver  
File “/home/m166585/anaconda3/envs/vmtk/lib/python3.6/site-packages/vmtk/pypeserver.py”, line 16, in   
import vtk  
File “/home/m166585/anaconda3/envs/vmtk/lib/python3.6/site-packages/vtk/ **init**.py”, line 33, in   
from .vtkRenderingOpenGL2 import \*  
File “/home/m166585/anaconda3/envs/vmtk/lib/python3.6/site-packages/vtk/vtkRenderingOpenGL2.py”, line 9, in   
from vtkRenderingOpenGL2Python import \*  
ModuleNotFoundError: No module named ‘vtkRenderingOpenGL2Python’

I would appreciate any help!  
Thanks,  
Barrett

---

<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:** [May 11, 2021, 4:12am UTC](https://discourse.slicer.org/t/unable-to-run-vmtksurfaceviewer/17555/2 "2021-05-11T04:12:02Z")

</div>

[We are working on updating VMTK’s build infrastructure](https://github.com/vmtk/SlicerExtension-VMTK/issues/25), which should make it available on Windows/Linux/Mac on PyPI (and so in conda environments, too).

In the meantime, you can use VMTK in Slicer’s Python environment and use Slicer as a surface viewer.
