Common Installation Problems
I've started this little wiki page for people to capture problems and their solutions from the mailing list so they can be listed in a clear manner. Hopefully, over time, most questions should be answered here. I guess there are a lot of people who only use VTK to use MayaVi, so possibly some common VTK pitfalls could be addressed.
For VTK, check out BuildingVTKOnWin32, BuildingVTKOnOSX, and SourceInstallation.
'tuple' object has no attribute 'split'
This arises from a non-backward-compatible return value in Tkinter for Python versions 2.3.x and above. There should be no problems if one uses VTK from CVS or if one uses VTK version 4.2.5 or above. If you have the problem, an easy solution is to update the file /path/to/VTK/Wrapping/Python/vtk/tk/vtkLoadPythonTkWidgets.py or /path/to/site-packages/vtk_python/vtk/tk/vtkLoadPythonTkWidgets.py with the CVS version obtainable
here or alternatively edit the line:
for path in string.split(interp.getvar('auto_path')):
# code continues here...
in vtkLoadPythonTkWidgets.py with
try:
auto_paths = string.split(interp.getvar('auto_path'))
except AttributeError:
auto_paths = interp.getvar('auto_path')
for path in auto_paths:
# code continues here...
No rebuilding is necessary.
MayaVi Wiki