wouter@wouter-desktop:~/OpenFOAM/wouter-2.2.x/run/projects/testje$ pyFoamPVSnapshot.py --state=testje.pvsm
Traceback (most recent call last):
File "/usr/local/bin/pyFoamPVSnapshot.py", line 3, in <module>
from PyFoam.Applications.PVSnapshot import PVSnapshot
File "/usr/local/lib/python2.7/dist-packages/PyFoam/Applications/PVSnapshot.py", line 13, in <module>
from PyFoam.Paraview.ServermanagerWrapper import ServermanagerWrapper as SM
File "/usr/local/lib/python2.7/dist-packages/PyFoam/Paraview/__init__.py", line 15, in <module>
from paraview import servermanager
ImportError: No module named paraview
---- additional_information ----
Bernhard Gschaider in http://www.cfd-online.com/Forums/openfoam-post-processing/108162-prblems-pyfoampvsnapshot-paths-2-0-1-a.html#13:
That's strange because pvpython knew the paraview module (thanks for the diagnosis output BTW). Now I have a big suspicion. Check how the file /usr/local/bin/pyFoamPVSnapshot.py looks like. At my machine it looks like this
Code:
#! /usr/bin/env pvpython
from PyFoam.Applications.PVSnapshot import PVSnapshot
PVSnapshot()
You installed with setup.py right? I think it may be possible that this replaces the pvpython in the first line with python. If that is the case replace it with pvpython and retry. If that fixes it I'd be grateful for a bug-report on the Mantis (so that I get around to fixing it. My problem is that I rarely install with setup.py so I stumbled onto this problem some time ago and forgot to fix it permanently)
setup.py thinks that it must replace the first line with the actual Python executable. Must find a way to tell it differently for the two PV-Utilities