|August 19, 2008, 15:05||
I've just built ParaView 3.3 a
Join Date: Mar 2009
Posts: 9Rep Power: 9
I've just built ParaView 3.3 after enabling Python in the CMakeLists.txt file. It seemed to build fine, but when I attempt to run the python shell, it brings up the shell with this message:
>>> from paraview import servermanager
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/michael/OLDOF/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Icc/Ut ilities/VTKPythonWrapping/paraview/servermanager.py", line 43, in ?
import re, os, new, exceptions, sys, vtk
File "/home/michael/OLDOF/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Icc/Ut ilities/VTKPythonWrapping/paraview/vtk.py", line 4, in ?
from libvtkCommonPython import *
ImportError: No module named libvtkCommonPython
I've looked around and the libvtkCommonPython.so file exists in both the /ParaView3.3-cvs/platforms/linux64Icc/bin directory and the /ParaView3.3-cvs/platforms/linux64Icc/lib directory. I've updated my LD_LIBRARY_PATH to include the location of these libraries, but this has failed to solve the problem.
Any help is greatly appreciated.
|August 19, 2008, 17:32||
No. Python wants to find the .
Join Date: Mar 2009
Posts: 3,952Rep Power: 41
No. Python wants to find the .so's as modules (and for those it looks in PYTHONPATH). So in ~/OpenFOAM/OpenFOAM-1.5/etc/apps/paraview3/bashrc after the lines that set the PYTHONPATH to the .py-files:
if [ "$PYTHONPATH" ]; then
add this line
restart the shell and everything should be fine (it was for me). If you're using tcsh something similar should be done.
If it works for you, could you please file a report in the Bugs-section so that it will be fixed in the next Release?
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
|Thread||Thread Starter||Forum||Replies||Last Post|
|Error in Paraview||mahaputra||OpenFOAM Paraview & paraFoam||0||March 11, 2009 17:09|
|Paraview3 python scripting||tomislav_maric||OpenFOAM Paraview & paraFoam||1||October 6, 2008 16:47|
|Compilation error with paraview||quartzian||OpenFOAM Installation||0||September 21, 2008 08:32|
|ParaView 33 Python Shell error and fix||mschoenberg||OpenFOAM Bugs||1||August 21, 2008 04:43|
|Python Skripts for IGG||Ole Ritter||NUMECA||2||April 21, 2003 05:02|