ParaView/EnvironmentSetup: Difference between revisions
From KitwarePublic
< ParaView
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== Before starting == | == Before starting == | ||
Ensure that you have performed the steps from the "Getting Started" section of [[ParaView/Python Scripting]]. More concretely, you must have setup the variable <tt>PYTHONPATH</tt> to the indicated initial value to avoid some missing packages when using Programmable Filters. | Ensure that you have performed the steps from the "Getting Started" section of [[ParaView/Python Scripting]]. More concretely, you must have setup the variable <tt>PYTHONPATH</tt> to the indicated initial value to avoid some missing packages when using [[Python Programmable Filter|Programmable Filters]]. | ||
==Linux== | ==Linux== |
Revision as of 21:00, 30 December 2014
Before starting
Ensure that you have performed the steps from the "Getting Started" section of ParaView/Python Scripting. More concretely, you must have setup the variable PYTHONPATH to the indicated initial value to avoid some missing packages when using Programmable Filters.
Linux
You must add this to your .bashrc to run anything in a ProgrammableFilter.
export PYTHONPATH=$PYTHONPATH:/home/doriad/bin/ParaView/Utilities/VTKPythonWrapping/site-packages #fixes "no module named paraview" export PYTHONPATH=$PYTHONPATH:/home/doriad/bin/ParaView/bin #fixes "ImportError: No module named libvtkCommonPython"
Note that for older versions of ParaView the first line may need to be replaced by:
export PYTHONPATH=$PYTHONPATH:/home/doriad/bin/ParaView/Utilities/VTKPythonWrapping