Pvpython for paraview 5.13 and python3.10.12 gives me segmentation fault

Hi all,

I am trying to automate a process for many .vtk files. The problem is that I cannot make my script work since when i run

pvpython myscript.py

from terminal, the line

from paraview.simple import *

gives me segmentation fault. I am running on a server through SSH. Any thoughts?

How did you install ParaView ? Which OS are you using ?

The machine I ssh into has Ubuntu 22.04.5 LTS
Paraview on that machine was installed using ParaView-5.13.2-MPI-Linux-Python3.10-x86_64/bin/paraview
If you need any other information let me know.
It was not installed by me and I don’t have sudo priviledges on that server.

Please try the following:

  • Connect to your server
  • run ParaView-5.13.2-MPI-Linux-Python3.10-x86_64/bin/pvpython
  • from paraview.simple import *

Does this work ?

Unfortunately, no. It gives me segmentation error.

Please download the binary to use userspace from here: https://www.paraview.org/download/

And try with this version instead.

But I have to do this as a sudoer?

No

It still does not work.

Do you have anything in your PYTHONPATH ?
Do you have anything in ~/.local/lib/python* ?

echo $PYTHONPATH

returns nothing and

~/.local/lib/python*

returns

-bash: /home/raniayian/.local/lib/python3.10: Is a directory

You may hit this issue: https://gitlab.kitware.com/paraview/paraview/-/issues/22384

You can remove/rename /home/raniayian/.local/lib/python3.10 to fix it.

I have solved it by running pvpython -S instead, thank you.