Does vtkXdmfReader python binding need specific compiling options?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Does vtkXdmfReader python binding need specific compiling options?

Nicolas Cedilnik
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/opensource/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
Reply | Threaded
Open this post in threaded view
|

Re: Does vtkXdmfReader python binding need specific compiling options?

David E DeMarle
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" <[hidden email]> 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/opensource/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

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/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