CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] How to overcome 'Failed to load vtkClientServerPython'? (https://www.cfd-online.com/Forums/paraview/234865-how-overcome-failed-load-vtkclientserverpython.html)

sunagra27 March 22, 2021 06:33

How to overcome 'Failed to load vtkClientServerPython'?
 
Dear all,
I have to run some paraview trace file in python to automate the process. For this, I imported paraview as:
Code:

from paraview.simple import *
But, it is showing me an error as
“Failed to load vtkClientServerPython: No module named vtkmodules.vtkCommonCorePython”
I have run paraview.simple before and it was working fine. But now, this is giving me a problem from few days. How to overcome this? Below is the complete sys path for paraview which is included in code.


Code:

import numpy as np
 
import sys, os

ParaViewBuildPath = "/home/ParaView-5.7.0-MPI-Linux-Python3.7-64bit/"

sys.path.append(ParaViewBuildPath + "lib/")
 
sys.path.append(ParaViewBuildPath + "lib/python3.7/site-packages")

sys.path.append(ParaViewBuildPath + "lib/python3.7/site-packages/vtkmodules")

from paraview.simple import *


Swift April 8, 2022 03:47

Hi,

Did you manage to resolve this/ I have just run into this. I too had a working script before that now suddenly fails. :-(



Thanks!
Thomas


All times are GMT -4. The time now is 01:16.