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

David E DeMarle dave.demarle at kitware.com
Fri May 5 06:02:54 EDT 2017


The first one is surprising to me as the xdmf2 reader is on by default in
vtk so it should be present in most distributions. Xdmf3 is less so.  It's
added boost dependency makes it off by default. Both are wrappable.

On May 5, 2017 4:10 AM, "Nicolas Cedilnik" <nicolas.cedilnik at inria.fr>
wrote:

> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> rce/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170505/49ab4b3e/attachment.html>


More information about the vtkusers mailing list