Can't write a vtk file using SaveData() (pvpython/pvbatch)

Hello all,

I am dealing with an error which I can’t solve. It is a simple case: read a binary, extract a slice, write the slice to disk in a vtk file. Same problem with pvbatch and pvpython as expected.

The setup is the following: a box in plt format is read (VisItTecplotBinaryReader). Then a slice is created using Slice(…). Pipelines updated and when I try to write the file I get:

(  27.121s) [pvbatch         ] vtkSMWriterFactory.cxx:344    ERR| vtkSMWriterFactory (0x24079f0): No matching writer found for extension: vtk
Traceback (most recent call last):
  File "", line 58, in <module>
    SaveData(os.path.join(path, 'slice.vtk'), proxy=slice1)
  File "/p/software/stages/2020/software/ParaView/5.9.1-gpsmkl-2021-Python-3.8.5/lib64/python3.8/site-packages/paraview/", line 1166, in SaveData
    writer = CreateWriter(filename, proxy, **extraArgs)
  File "/p/software/stages/2020/software/ParaView/5.9.1-gpsmkl-2021-Python-3.8.5/lib64/python3.8/site-packages/paraview/", line 1152, in CreateWriter

The same error occurs with Paraview 5.10.0 (the latest version available on the system).

However, if I change the file extension to .csv or .txt it works without issue. I think the VTKWriter is not available, but I can’t figure out how to add it. Looked through the plugins directory, nothing there that could give a clue. Some plugins and the xml file containing their names.

Any tips on what to do or to guide my investigation are appreciated.

Sorry for not sharing the code, but I don’t have authorization to share it.


Vitor Silva