CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] How to overcome 'Failed to load vtkClientServerPython'?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2021, 07:33
Default How to overcome 'Failed to load vtkClientServerPython'?
  #1
Member
 
Sunag R A
Join Date: Jul 2019
Location: Bangalore, India
Posts: 82
Rep Power: 7
sunagra27 is on a distinguished road
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 *
sunagra27 is offline   Reply With Quote

Old   April 8, 2022, 04:47
Default
  #2
Member
 
Thomas Sprich
Join Date: Mar 2015
Posts: 76
Rep Power: 11
Swift is on a distinguished road
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
Swift is offline   Reply With Quote

Reply

Tags
paraview, path, python, vtk


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Foam::error::printStack(Foam::Ostream&) with simpleFoam -parallel U.Golling OpenFOAM Running, Solving & CFD 52 September 23, 2023 04:35
Initial conditions for uniform flow andreas OpenFOAM 5 November 16, 2012 16:00
[OpenFOAM] ParaView/Parafoam error when making animation Disco_Caine ParaView 6 September 28, 2010 10:54
user subroutine error CFDUSER CFX 2 December 9, 2006 07:31
user defined function cfduser CFX 0 April 29, 2006 11:58


All times are GMT -4. The time now is 02:27.