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

[OpenFOAM] ParaView 33 Python Shell error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 19, 2008, 15:05
Default ParaView 33 Python Shell error
  #1
New Member
 
Michael Schoenberg
Join Date: Mar 2009
Posts: 9
Rep Power: 17
mschoenberg is on a distinguished road
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.
mschoenberg is offline   Reply With Quote

Old   August 19, 2008, 17:32
Default No. Python wants to find the .
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
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
export PYTHONPATH=$PYTHONPATH:$ParaView_DIR/Utilities/VTKPythonWrapping
else
export PYTHONPATH=$ParaView_DIR/Utilities/VTKPythonWrapping
fi

add this line

export PYTHONPATH=$ParaView_DIR/lib/paraview-3.3/:$PYTHONPATH

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
gschaider is offline   Reply With Quote

Old   August 20, 2008, 10:42
Default Thanks a bunch, this solved th
  #3
New Member
 
Michael Schoenberg
Join Date: Mar 2009
Posts: 9
Rep Power: 17
mschoenberg is on a distinguished road
Thanks a bunch, this solved the problem. I'll file a bug report.
mschoenberg is offline   Reply With Quote

Reply


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
DPM udf error haghshenasfard FLUENT 0 April 13, 2016 06:35
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 18:44
[swak4Foam] groovyBC: problems compiling: "flex: not found" and "undefined reference to ..." sega OpenFOAM Community Contributions 12 February 17, 2010 09:30
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 05:54.