# Python vtk tests on smtk master

**URL:** https://discourse.kitware.com/t/python-vtk-tests-on-smtk-master/344
**Category:** Software Process
**Created:** [November 14, 2019, 3:40pm UTC](https://discourse.kitware.com/t/python-vtk-tests-on-smtk-master/344 "2019-11-14T15:40:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![aron.helser](https://discourse.kitware.com/user_avatar/discourse.kitware.com/aron.helser/32/149_2.png) [@aron.helser](https://discourse.kitware.com/u/aron.helser)
#### Post date: [November 14, 2019, 3:40pm UTC](https://discourse.kitware.com/t/python-vtk-tests-on-smtk-master/344/1 "2019-11-14T15:40:50Z")

</div>

Ben, python install question for you…

There are some python tests failing on an smtk master build, on linux:

```
138 - elevateMeshOnStructuredGridPy (Failed)
139 - snapPointsToSurfacePy (Failed)
180 - iterateMultiBlockModelPy (Failed)
197 - loadSMTKPluginInParaViewPy (Failed)
238 - exoReadFilePy (Failed)

```

They are failing like this:

```
139: File "/home/aron.helser/projects/cmb/smtk/src/smtk/mesh/testing/python/snapPointsToSurface.py", line 16, in <module>
139: import smtk.extension.vtk.source
139: ImportError: No module named vtk.source

```

It seems that `stmk/extension/vtk/ __init__.py` is not being copied to site\_packages in the build directory. If I copy it, and then correct `stmk/extension/vtk/sources/ __init__.py`:

```
   -import vtkSMTKSourceExtPython
   +from smtk import vtkSMTKSourceExtPython

```

then 3 of the tests pass, and 2 fail trying to load GDAL.

I see there’s CMake code that should install `stmk/extension/vtk/ __init__.py` but it’s not doing it’s thing? The same issue occurs for `stmk/extension/paraview/ __init__.py`, too.

As an aside, these tests are failing because they can’t load GDAL:

```
  2 - resource-manager-state (Failed)
241 - cxx_first_steps (Failed)
242 - implement_an_operator (Failed)
```

---

<div class="post-metadata">

### Author: ![tj.corona](https://discourse.kitware.com/user_avatar/discourse.kitware.com/tj.corona/32/35_2.png) [@tj.corona](https://discourse.kitware.com/u/tj.corona)
#### Post date: [November 14, 2019, 3:48pm UTC](https://discourse.kitware.com/t/python-vtk-tests-on-smtk-master/344/2 "2019-11-14T15:48:01Z")

</div>

Ben and I are working on these just now.
