RaniaYian
(RaniaYian)
March 18, 2025, 9:17am
1
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?
mwestphal
(Mathieu Westphal (Kitware))
March 18, 2025, 10:03am
2
How did you install ParaView ? Which OS are you using ?
RaniaYian
(RaniaYian)
March 18, 2025, 10:13am
3
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.
mwestphal
(Mathieu Westphal (Kitware))
March 18, 2025, 10:15am
4
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 ?
RaniaYian
(RaniaYian)
March 18, 2025, 10:19am
5
Unfortunately, no. It gives me segmentation error.
mwestphal
(Mathieu Westphal (Kitware))
March 18, 2025, 10:26am
6
Please download the binary to use userspace from here: https://www.paraview.org/download/
And try with this version instead.
RaniaYian
(RaniaYian)
March 18, 2025, 12:02pm
7
But I have to do this as a sudoer?
mwestphal
(Mathieu Westphal (Kitware))
March 18, 2025, 1:18pm
10
Do you have anything in your PYTHONPATH ?
Do you have anything in ~/.local/lib/python*
?
mwestphal
(Mathieu Westphal (Kitware))
March 18, 2025, 2:44pm
12
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.
RaniaYian
(RaniaYian)
March 24, 2025, 11:33am
13
I have solved it by running pvpython -S instead, thank you.