I am using mayavi2 on Linux platform.

Even though creating parametric surface and builtin images seem to work,
loading a vtk or vtu file gives errors and nothing is displayed.
Here is a typical log after loading heart.vtk (the example file):

WARNING|2009-05-01 16:35:57,798|plugin
<enthought.plugins.text_editor.text_editor_plugin.TextEditorPlugin object at
0xb93f7ac> has no Id - using
<enthought.plugins.text_editor.text_editor_plugin.TextEditorPlugin>
WARNING|2009-05-01 16:35:58,040|could not restore editor [TVTK Scene 1]
INFO|2009-05-01 16:35:58,276|LoggerView.create_control()
INFO|2009-05-01 16:35:58,336| self.widget =
<enthought.logger.widget.logger_widget.LoggerWidget; proxy of <Swig Object
of type 'wxPanel *' at 0xbc2b558> >
WARNING|2009-05-01 16:35:58,436|view
<enthought.plugins.python_shell.view.namespace_view.NamespaceView object at
0xbb925cc> has no Id - using
<enthought.plugins.python_shell.view.namespace_view.NamespaceView>
ERROR|2009-05-01 16:36:07,356|Exception occurred in traits notification
handler for object: <enthought.mayavi.sources.vtk_file_reader.VTKFileReader
object at 0xb9f308c>, trait: file_path, old value: , new value:
/home/dwende/Desktop/data/heart.vtk
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/enthought/traits/trait_notifiers.py",
line 353, in call_2
self.handler( object, new )
File
"/usr/lib/python2.6/site-packages/enthought/mayavi/sources/vtk_file_reader.py",
line 76, in _file_path_changed
self.update_data()
File
"/usr/lib/python2.6/site-packages/enthought/mayavi/sources/vtk_xml_file_reader.py",
line 236, in update_data
pnt_attr, cell_attr = get_all_attributes(self.reader.output)
File
"/usr/lib/python2.6/site-packages/enthought/mayavi/sources/vtk_xml_file_reader.py",
line 82, in get_all_attributes
point_attr = get_attribute_list(obj.point_data)
AttributeError: 'NoneType' object has no attribute 'point_data'

Any help appreciated.
-- 
David
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to