Python and Paraview on SN
Hi all
I just got paraview from paraview.org and downloaded the newest binary (3.6.1). When running paraview, I can invoke the paraview shell from the tools menu and everything works great. However I fail to manually invoke python with paraview bindings. I set the following env variables:
export PYTHONPATH="/Applications/ParaView 3.6.1.app/Contents/Python/:/Applications/ParaView 3.6.1.app/Contents/Libraries:/Applications/ParaView 3.6.1.app/Contents/Plugins"
export VERSIONER_PYTHON_PREFER_32_BIT=yes
I end up with the following error:
macbook:~ nils$ python
Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from paraview.simple import *
Traceback (most recent call last):
File "", line 1, in
File "/Applications/ParaView 3.7.0.app/Contents/Python/paraview/simple.py", line 39, in
import servermanager
File "/Applications/ParaView 3.7.0.app/Contents/Python/paraview/servermanager.py", line 43, in
import paraview, re, os, new, sys, vtk
File "/Applications/ParaView 3.7.0.app/Contents/Python/paraview/vtk/__init__.py", line 4, in
from libvtkCommonPython import *
ImportError: dlopen(/Applications/ParaView 3.7.0.app/Contents/Libraries/libvtkCommonPython.so, 2): Library not loaded: @executable_path/../Libraries/libvtkCommonPythonD.pv3.7.dylib
Referenced from: /Applications/ParaView 3.7.0.app/Contents/Libraries/libvtkCommonPython.so
Reason: image not found
Any ideas what I'm doing wrong?




Try the other tarball
You might download the "unix-style" paraview tarball, which has pvpython and pvbatch. It avoids having to futz with the PYTHONPATH.
Following your approach I get the same problem on 10.5, although I have gotten it to work in the past. Perhaps a python version mismatch?
V. Gregory Weirs
thx for the hint. But
thx for the hint. But pvpython seems horrible to use, there is no readline support: This means no tab completion support.. hell not even ctrl-a seems to work :(