To get isfepy to run I needed to change 3 files to satisfy mayavi installation on archlinux - really just the imports by stripping "enthought" and changing "traits.ui" to "traitsui".
My mayavi installation comprises the following community compiled modules:
python-enthought-mayavi 4.0.0-1 python-enthought-utils 4.0.0-1
Not sure if these issues are also in the mayavi git version. Anyway - here's the three files that change:
/sfepy/sfepy/postprocess/viewer.py """ from enthought.traits.api
import HasTraits, Instance, Button, Int, Bool, on_trait_change from enthought.traits.ui.api
import View, Item, Group, HGroup, spring from enthought.traits.ui.editors.range_editor import RangeEditor from enthought.tvtk.pyface.scene_editor import SceneEditor from enthought.mayavi.tools.mlab_scene_model import MlabSceneModel from enthought.mayavi.core.ui.mayavi_scene import MayaviScene """ from traits.api
import HasTraits, Instance, Button, Int, Bool, on_trait_change from traitsui.api
import View, Item, Group, HGroup, spring from traitsui.editors.range_editor import RangeEditor from tvtk.pyface.scene_editor import SceneEditor from mayavi.tools.mlab_scene_model import MlabSceneModel from mayavi.core.ui.mayavi_scene import MayaviScene/sfepy/sfepy/postprocess/dataset_manager.py """ from enthought.traits.api import (HasTraits, Instance, Array, Str, Property, Dict) from enthought.tvtk.api import tvtk from enthought.tvtk.array_handler import array2vtk """ from traits.api import (HasTraits, Instance, Array, Str, Property, Dict) from tvtk.api import tvtk from tvtk.array_handler import array2vtk
/sfepy/sfepy/postprocess/sources.py """ from enthought.tvtk.api import tvtk from enthought.mayavi.sources.vtk_data_source import VTKDataSource from enthought.pyface.timer.api import Timer """ from tvtk.api import tvtk from mayavi.sources.vtk_data_source import VTKDataSource from pyface.timer.api import Timer
Thanks for the bugreport and fix! I have Mayavi 3.4.1, so it seems they changed this in 4.0.0.
I updated the files to support both versions, could you verify it? [1]
Cheers, r.
[1] git clone git://github.com/rc/sfepy.git
On 07/26/11 21:08, freevryheid wrote:
To get isfepy to run I needed to change 3 files to satisfy mayavi installation on archlinux - really just the imports by stripping "enthought" and changing "traits.ui" to "traitsui".
My mayavi installation comprises the following community compiled modules:
python-enthought-mayavi 4.0.0-1 python-enthought-utils 4.0.0-1
Not sure if these issues are also in the mayavi git version. Anyway - here's the three files that change:
/sfepy/sfepy/postprocess/viewer.py """ from enthought.traits.api
import HasTraits, Instance, Button, Int, Bool, on_trait_change from enthought.traits.ui.api
import View, Item, Group, HGroup, spring from enthought.traits.ui.editors.range_editor import RangeEditor from enthought.tvtk.pyface.scene_editor import SceneEditor from enthought.mayavi.tools.mlab_scene_model import MlabSceneModel from enthought.mayavi.core.ui.mayavi_scene import MayaviScene """ from traits.api
import HasTraits, Instance, Button, Int, Bool, on_trait_change from traitsui.api
import View, Item, Group, HGroup, spring from traitsui.editors.range_editor import RangeEditor from tvtk.pyface.scene_editor import SceneEditor from mayavi.tools.mlab_scene_model import MlabSceneModel from mayavi.core.ui.mayavi_scene import MayaviScene/sfepy/sfepy/postprocess/dataset_manager.py """ from enthought.traits.api import (HasTraits, Instance, Array, Str, Property, Dict) from enthought.tvtk.api import tvtk from enthought.tvtk.array_handler import array2vtk """ from traits.api import (HasTraits, Instance, Array, Str, Property, Dict) from tvtk.api import tvtk from tvtk.array_handler import array2vtk
/sfepy/sfepy/postprocess/sources.py """ from enthought.tvtk.api import tvtk from enthought.mayavi.sources.vtk_data_source import VTKDataSource from enthought.pyface.timer.api import Timer """ from tvtk.api import tvtk from mayavi.sources.vtk_data_source import VTKDataSource from pyface.timer.api import Timer
participants (2)
-
freevryheid
-
Robert Cimrman