[Paraview] Help with ProgrammableFilter and PATH problem in 5.4.1

Martin Weinberg martin.weinberg at comcast.net
Tue Mar 6 18:16:53 EST 2018


I have two nearly identical machine running Ubuntu 17.10.  The both have
the latest stable Paraview 5.4.1 from the download page installed in /opt.

I wrote a wrapper script like this:

--------------------------------------------------------------------------------------------------------------------

#!/bin/bash

# PVHOME=/opt/ParaView-5.4.1-822-g597adef-Qt5-MPI-Linux-64bit
PVHOME=/opt/ParaView-5.4.1-Qt5-OpenGL2-MPI-Linux-64bit

export PATH=$PVHOME/bin
export LD_LIBRARY_PATH=$PVHOME/lib/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PVHOME/lib/paraview-5.4/
export PYTHONPATH=$PVHOME/lib/python2.7/bin/
export PYTHONPATH=$PYTHONPATH:$PVHOME/lib/python2.7/site-packages/
export PYTHONPATH=$PYTHONPATH:$PVHOME/lib/python2.7/site-packages/vtk/
export PYTHONPATH=$PYTHONPATH:$PVHOME/lib/python2.7/site-packages/paraview/

$PVHOME/bin/paraview
--------------------------------------------------------------------------------------------------------------------

On each machine I start paraview and load a state that has a
programmable filter with the line:

d0 = inputs[0].PointSet['d']

One one machine, this works just fine.  On the other machine, I get the
following message in the Output:

--------------------------------------------------------------------------------------------------------------------

Traceback (most recent call last): File "", line 24, in File "", line 2,
in RequestData TypeError: 'NoneType' object has no attribute '__getitem__'

BTW, this is just a test; obviously, my real filter does something.

I assume that some module is not being loaded here, but I've tried
_everything_ I could think of and I'm not making progress.  Any ideas??

-- 
Martin Weinberg
6 Grass Hill Rd
West Whately, MA
010039


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180306/caa7032a/attachment.sig>


More information about the ParaView mailing list