Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TVTK Error in Mayavi (Python)

Tags:

python

mayavi

vtk

I'm running a Fedora 17 (x64) machine, and I tried installing Mayavi for python via

yum install mayavi

which worked fine, except every time I write a code where I call a mayavi module (like mlab) :

from enthought.mayavi import mlab

it yells with the error

********************************************************************************
WARNING: Imported VTK version (5.8) does not match the one used
     to build the TVTK classes (5.6). This may cause problems.
     Please rebuild TVTK.
********************************************************************************

I've googled, but I don't know how to rebuild TVTK to match with the version of VTK. I suspect this is causing abnormal behaviour, but I can't be sure. How do you rebuild TVTK?

like image 715
Kitchi Avatar asked Feb 09 '13 08:02

Kitchi


1 Answers

Looks like the visualization toolkit (http://www.vtk.org/) on your machine is newer than the one used to build the classes that are packaged in mayavi. You'd need to rebuild/install visualization toolkit 5.6 (http://vtk.org/VTK/resources/software.html) or have you tried Mayavi2 (http://docs.enthought.com/mayavi/mayavi/installation.html) - that is probably more up to date, visualization toolkit is currently version 5.10.

like image 196
Glen Swinfield Avatar answered Oct 05 '22 19:10

Glen Swinfield