# ADIOS2VTXReader in vtk Python

**URL:** https://discourse.vtk.org/t/adios2vtxreader-in-vtk-python/15384
**Category:** Support
**Created:** [March 13, 2025, 1:51pm UTC](https://discourse.vtk.org/t/adios2vtxreader-in-vtk-python/15384 "2025-03-13T13:51:23Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![jorgensd](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jorgensd/32/8861_2.png) [@jorgensd](https://discourse.vtk.org/u/jorgensd)
#### Post date: [March 13, 2025, 1:51pm UTC](https://discourse.vtk.org/t/adios2vtxreader-in-vtk-python/15384/1 "2025-03-13T13:51:23Z")

</div>

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](https://gitlab.kitware.com/search?group_id=16&project_id=13&repository_ref=master&scope=blobs&search=vtkADIOS2VTXReader))

---

<div class="post-metadata">

### Author: ![lgivord](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lgivord/32/3543_2.png) [@lgivord](https://discourse.vtk.org/u/lgivord)
#### Post date: [March 14, 2025, 8:00am UTC](https://discourse.vtk.org/t/adios2vtxreader-in-vtk-python/15384/2 "2025-03-14T08:00:21Z")

</div>

Hi @jorgensd,

did you try to import it?

```python
from vtkmodules.vtkIOADIOS2 import vtkADIOS2VTXReader

```

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

FYI @caitlin.ross

---

<div class="post-metadata">

### Author: ![jorgensd](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jorgensd/32/8861_2.png) [@jorgensd](https://discourse.vtk.org/u/jorgensd)
#### Post date: [March 14, 2025, 8:35am UTC](https://discourse.vtk.org/t/adios2vtxreader-in-vtk-python/15384/3 "2025-03-14T08:35:30Z")

</div>

Hi Lucas,

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

```bash
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.

---

<div class="post-metadata">

### Author: ![lgivord](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lgivord/32/3543_2.png) [@lgivord](https://discourse.vtk.org/u/lgivord)
#### Post date: [March 17, 2025, 8:52am UTC](https://discourse.vtk.org/t/adios2vtxreader-in-vtk-python/15384/4 "2025-03-17T08:52:10Z")

</div>

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

 ![image](https://discourse.vtk.org/uploads/default/original/2X/9/9584bb7821df214dfe2f6ee79e5e1ebd40030642.png)

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

---

<div class="post-metadata">

### Author: ![jorgensd](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jorgensd/32/8861_2.png) [@jorgensd](https://discourse.vtk.org/u/jorgensd)
#### Post date: [March 17, 2025, 9:02am UTC](https://discourse.vtk.org/t/adios2vtxreader-in-vtk-python/15384/5 "2025-03-17T09:02:59Z")

</div>

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

---

<div class="post-metadata">

### Author: ![lgivord](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lgivord/32/3543_2.png) [@lgivord](https://discourse.vtk.org/u/lgivord)
#### Post date: [March 17, 2025, 9:34am UTC](https://discourse.vtk.org/t/adios2vtxreader-in-vtk-python/15384/6 "2025-03-17T09:34:48Z")

</div>

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](https://gitlab.kitware.com/vtk/vtk/-/blob/master/.gitlab/ci/configure_wheel.cmake?ref_type=heads#L47)

FYI @ben.boeckel

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [March 17, 2025, 12:37pm UTC](https://discourse.vtk.org/t/adios2vtxreader-in-vtk-python/15384/7 "2025-03-17T12:37:35Z")

</div>

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.
