Hello professor,
i tried to uninstall mayavi and reinstalling mayavi with the two commands you suggested.
(pysph_env) siddy@siddy-VirtualBox:~$ pip install mayavi
Collecting mayavi
Requirement already satisfied: traits in ./pysph_env/lib/python2.7/site-packages (from mayavi)
Requirement already satisfied: apptools in ./pysph_env/lib/python2.7/site-packages (from mayavi)
Requirement already satisfied: traitsui in ./pysph_env/lib/python2.7/site-packages (from mayavi)
Requirement already satisfied: configobj in ./pysph_env/lib/python2.7/site-packages (from apptools->mayavi)
Requirement already satisfied: pyface in ./pysph_env/lib/python2.7/site-packages (from traitsui->mayavi)
Requirement already satisfied: six in ./pysph_env/lib/python2.7/site-packages (from configobj->apptools->mayavi)
Requirement already satisfied: pygments in ./pysph_env/lib/python2.7/site-packages (from pyface->traitsui->mayavi)
Installing collected packages: mayavi
Successfully installed mayavi-4.5.0
However still i still get the following warning.
(pysph_env) siddy@siddy-VirtualBox:~$ python mayavi_viewer.py
********************************************************************************
WARNING: Imported VTK version (5.1) does not match the one used
to build the TVTK classes (6.2). This may cause problems.
Please rebuild TVTK.
********************************************************************************
Traceback (most recent call last):
File "mayavi_viewer.py", line 1128, in <module>
main()
File "mayavi_viewer.py", line 1124, in main
m.configure_traits()
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/traits/has_traits.py", line 2172, in configure_traits
kind, handler, id, scrollable, args )
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/traitsui/qt4/toolkit.py", line 213, in view_application
id, scrollable, args )
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/traitsui/qt4/view_application.py", line 83, in view_application
scrollable, args ).ui.result
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/traitsui/qt4/view_application.py", line 134, in __init__
args = self.args )
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/traitsui/view.py", line 433, in ui
ui.ui( parent, kind )
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/traitsui/ui.py", line 221, in ui
self.rebuild( self, parent )
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/traitsui/qt4/toolkit.py", line 155, in ui_live
ui_live.ui_live( ui, parent )
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/traitsui/qt4/ui_live.py", line 39, in ui_live
_ui_dialog(ui, parent, BaseDialog.NONMODAL)
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/traitsui/qt4/ui_live.py", line 59, in _ui_dialog
BaseDialog.display_ui(ui, parent, style)
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/traitsui/qt4/ui_base.py", line 482, in display_ui
ui.owner.init(ui, parent, style)
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/traitsui/qt4/ui_live.py", line 177, in init
self.add_contents(panel(ui), bbox)
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/traitsui/qt4/ui_panel.py", line 255, in panel
panel = _GroupPanel(content[0], ui).control
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/traitsui/qt4/ui_panel.py", line 545, in __init__
self._add_splitter_items(content, splitter)
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/traitsui/qt4/ui_panel.py", line 623, in _add_splitter_items
panel = _GroupPanel(item, self.ui, suppress_label=True).control
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/traitsui/qt4/ui_panel.py", line 592, in __init__
layout = self._add_items(content, inner)
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/traitsui/qt4/ui_panel.py", line 860, in _add_items
editor.prepare(inner)
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/traitsui/editor.py", line 156, in prepare
self.init( parent )
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/tvtk/pyface/ui/qt4/scene_editor.py", line 49, in init
self._create_scene()
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/tvtk/pyface/ui/qt4/scene_editor.py", line 88, in _create_scene
self._scene = factory.scene_class(self.control)
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/tvtk/pyface/ui/qt4/decorated_scene.py", line 59, in __init__
super(DecoratedScene, self).__init__(parent, **traits)
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/tvtk/pyface/ui/qt4/scene.py", line 325, in __init__
self.picker = picker.Picker(self)
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/tvtk/pyface/picker.py", line 260, in __init__
configure_input(self.p_mapper, self.p_source)
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/tvtk/common.py", line 88, in configure_input
inp.input = op.output
File "/home/siddy/pysph_env/local/lib/python2.7/site-packages/traits/trait_handlers.py", line 104, in _read_only
name, class_of( object ) )
traits.trait_errors.TraitError: The 'input' trait of a PolyDataMapper instance is 'read only'.
And, running the pysph view command results in the same previous error.
(pysph_env) siddy@siddy-VirtualBox:~$ pysph view shocktube_output
Traceback (most recent call last):
File "/home/siddy/.local/bin/pysph", line 11, in <module>
load_entry_point('PySPH==1.0a4', 'console_scripts', 'pysph')()
File "/home/siddy/.local/lib/python2.7/site-packages/pysph/tools/cli.py", line 70, in main
args.func(extra)
File "/home/siddy/.local/lib/python2.7/site-packages/pysph/tools/cli.py", line 11, in run_viewer
from pysph.tools.mayavi_viewer import main
File "/home/siddy/.local/lib/python2.7/site-packages/pysph/tools/mayavi_viewer.py", line 22, in <module>
from enthought.etsconfig.api import ETSConfig
ImportError: No module named enthought.etsconfig.api
I tried to follow your previous commands regarding vtk which you have given me in your previous emails but it does not have any effect on the output of the command, python mayavi_viewer.py
sudo apt-get remove mayavi2 python-vtk6
sudo apt-get install python-vtk
I don't understand the source of the problem.
Siddharth