ADIOS2VTXReader in vtk Python

Hi everyone,
Is there a way of reading VTX files from ADIOS2 in the VTK Python-API?
As far as I can tell, it is only possible in the C++ interface (https://gitlab.kitware.com/search?group_id=16&project_id=13&repository_ref=master&scope=blobs&search=vtkADIOS2VTXReader)

Hi @jorgensd,

did you try to import it?

from vtkmodules.vtkIOADIOS2 import vtkADIOS2VTXReader

if it fails then it means that this reader isn’t wrapped

FYI @caitlin.ross

Hi Lucas,

I did, at least in my vtk installation vtkIOADIOS2 is not a submodule of vtkmodules.

In [2]: from vtkmodules.vtkIOADIOS2 import vtkADIOS2VTXReader
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[2], line 1
----> 1 from vtkmodules.vtkIOADIOS2 import vtkADIOS2VTXReader

ModuleNotFoundError: No module named 'vtkmodules.vtkIOADIOS2'

This is with vtkmodules version 9.3.1.

hum it should be available, I try it locally with my own vtk installation and I have this modules

are you sure the ADIOS2 vtk module has been build before the installation ?

I’ve not built vtk from scratch here, but using the pip binary wheels, which I guess does not include ADIOS2?

ah got it, indeed it’s not enabled: https://gitlab.kitware.com/vtk/vtk/-/blob/master/.gitlab/ci/configure_wheel.cmake?ref_type=heads#L47

FYI @ben.boeckel

Not much we can do there as the policy is that the official wheels have no external dependencies other than “standard” things like OpenGL or X11 libraries.