[vtkusers] Does vtkXdmfReader python binding need specific compiling options?

Nicolas Cedilnik nicolas.cedilnik at inria.fr
Fri May 5 04:10:01 EDT 2017


Hi all,

I'm using VTK 7.0.0 python bindings from binary conda distribution 
(https://anaconda.org/conda-forge/vtk). However, it doesn't seem like 
there is a XdmfReader class inside it:

In [2]: a =vtk.vtkXdmfReader()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-2-9f39f3d3562c> in <module>()
----> 1 a =vtk.vtkXdmfReader()

AttributeError: module 'vtk' has no attribute 'vtkXdmfReader'

In [3]: a =vtk.vtkXdmf3Reader()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-3-9d096c12f15b> in <module>()
----> 1 a =vtk.vtkXdmf3Reader()

AttributeError: module 'vtk' has no attribute 'vtkXdmf3Reader'

Is it because it wasn't activated at compile time, or are python 
bindings for this class missing? Another way to ask this would be: is it 
worth trying to compile VTK myself?

Thanks,

-- Nicolas Cedilnik


More information about the vtkusers mailing list