We are developing a Slicer Extension for aligning 3D shapes.
We have previously created our module and it runs like a charm, but because the algorithm is bit time consuming we wanted to parallelize the algorithm.
Because vtk objects cannot be pickled (which is needed for the multiprocessing), we successfully replaced the vtk with tvtk in our independent python module, and everything is looking good.
However, when I try to connect it to our Slicer module, upon opening Slicer I get the error
WARNING: Imported VTK version (8.2) does not match the one used
to build the TVTK classes (8.1). This may cause problems.
Please rebuild TVTK.
and the algorithm fails. Am running Ubuntu 18.04 with Slicer 4.11.0-2019-07-27 r28412, but we would of course like the extension work on all OS.
Is there a way I can rebuild the tvtk in Slicer, as the prompt suggests? Or should I try something completely else? Any pointers greatly appreciated, am hitting a wall here pretty badly.