Re: [Paraview] PYTHONPATH for prebuilt MAC OSX Paraview

2011-10-22 Thread Colin McAuliffe
I tried building from source but I am getting errors importing paraview.simple: from paraview.simple import * Traceback (most recent call last): File stdin, line 1, in module File

Re: [Paraview] PYTHONPATH for prebuilt MAC OSX Paraview

2011-10-19 Thread Colin McAuliffe
Thanks, pvpython works. Are compatibility issues with paraview python modules and mac system python also present for versions of paraview compiled from the source code? Thanks Colin Quoting pat marion pat.mar...@kitware.com: The 'paraview' directory is the module. Python treats

Re: [Paraview] PYTHONPATH for prebuilt MAC OSX Paraview

2011-10-19 Thread David E DeMarle
It shouldn't be a problem with a build from source version of ParaView. In that case when you turn on the python option cmake finds your system python libs and build/links with them. If they happen to find the wrong set for some reason you can always change them and rebuild. David E DeMarle

Re: [Paraview] PYTHONPATH for prebuilt MAC OSX Paraview

2011-10-01 Thread pat marion
The 'paraview' directory is the module. Python treats directories that contain a __init__.py file as modules. So you want your python path to contain /Applications/ParaView 3.10.1.app/Contents/Python, and drop the /paraview ending. But, I recommend you use pvpython instead of python. The

Re: [Paraview] PYTHONPATH for prebuilt MAC OSX Paraview

2011-10-01 Thread Colin McAuliffe
Yes I am experiencing the same trouble with my system python but pypython works very nicely Thanks Colin Quoting pat marion pat.mar...@kitware.com: The 'paraview' directory is the module. Python treats directories that contain a __init__.py file as modules. So you want your python path to

[Paraview] PYTHONPATH for prebuilt MAC OSX Paraview

2011-09-30 Thread Colin McAuliffe
Hello all, As I understand it, to take advantage of python scripting the PYTHONPATH variable must be set manually. I have added: PYTHONPATH=/Applications/ParaView 3.10.1.app/Contents/Python/paraview:${PYTHONPATH} export PYTHONPATH Which is the location of .py modules. I am not able to

Re: [Paraview] PYTHONPATH for prebuilt MAC OSX Paraview

2011-09-30 Thread Alessandro Comunian
Hi Colin, I am not sure about the configuration in Mac OS X, but in Linux I can access to the paraview python interface from the system wide python with the following setting of PYTHONPATH: /opt/Paraview-3.10.1/bin/Utilities/VTKPythonWrapping/site-packages:/opt/Paraview-3.10.1/bin/bin hope it