[Paraview] help with PYTHONPATH and Medical3.py

FISSELL at pitt.edu FISSELL at pitt.edu
Fri Jun 24 15:11:49 EDT 2011


Hi,

New python/paraview user.

I built paraview 3.10.1 on CentOS release 5.5 with python scripting enabled.
I can run the
Utilities/VTKPythonWrapping/site-packages/paraview/demos/demo1.py
script successfully.

I am trying to get the Medical3.py script from paraview-3.4.0 working
http://paraview.sourcearchive.com/documentation/3.4.0/dir_516104d7fcb54d09cbed28399f9d6e1a.html
Is that script too old or can I get it to work in paraview 3.10 ?

To get past various error messages I tried changing my PYTHONPATH
to include various combinations of
/usr/local/pkg/ParaView-3.10.1-build/bin
/usr/local/pkg/ParaView-3.10.1-build/Utilities/VTKPythonWrapping/site-packages
/usr/local/pkg/ParaView-3.10.1-build/Utilities/VTKPythonWrapping/site-packages/paraview
/usr/local/pkg/ParaView-3.10.1-build/VTK/Wrapping/Python
/usr/local/pkg/ParaView-3.10.1-build/VTK/Wrapping/Python/vtk

got by a number of errors, but latest error, displayed in python shell is
Traceback (most recent call last):
  File "<string>", line 11, in ?
  File
"/usr/local/pkg/ParaView-3.10.1-build/VTK/Wrapping/Python/vtk/util/misc.py",
line 13, in vtkGetDataRoot
    for i in range(0, len(sys.argv)):
AttributeError: 'module' object has no attribute 'argv'

How should I set PYTHONPATH to run Medical3.py ?

What is the difference between
/usr/local/pkg/ParaView-3.10.1-build/VTK/Wrapping/Python/vtk
and
/usr/local/pkg/ParaView-3.10.1-build/Utilities/VTKPythonWrapping/site-packages/paraview/vtk

thank you
Kate




More information about the ParaView mailing list