<div dir="ltr"><div>The only dependent package I can think of for python filters is numpy, which is used in the dataset adapter code (VTK arrays are wrapped to be numpy array-like). But that should be installed with the binaries and you should get a failed import if it is missing.<br><br></div>Shawn<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 7, 2018 at 8:57 AM, Martin Weinberg <span dir="ltr"><<a href="mailto:martin.d.weinberg@gmail.com" target="_blank">martin.d.weinberg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Thanks. The data is definitely loaded; e.g. I can render with an upstream filter.<br>
<br>
I wonder of I'm missing some dependent package on the problem machine?<div><div class="h5"><br><br><div class="gmail_quote">On March 7, 2018 8:26:13 AM EST, Shawn Waldon <<a href="mailto:shawn.waldon@kitware.com" target="_blank">shawn.waldon@kitware.com</a>> wrote:<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div>Hi Martin,<br><br>My first guess would be that your state file is trying to load data that isn't there. Then when you run your programmable filter inputs[0] is None and you get this error message. I can't think of anything else that could be going wrong with that script, especially since it works on one of your machines.<br><br></div><div>HTH,<br></div>Shawn<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 6, 2018 at 6:16 PM, Martin Weinberg <span dir="ltr"><<a href="mailto:martin.weinberg@comcast.net" target="_blank">martin.weinberg@comcast.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have two nearly identical machine running Ubuntu 17.10. The both have<br>
the latest stable Paraview 5.4.1 from the download page installed in /opt.<br>
<br>
I wrote a wrapper script like this:<br>
<br>
------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------------<br>
<br>
#!/bin/bash<br>
<br>
# PVHOME=/opt/ParaView-5.4.1-822<wbr>-g597adef-Qt5-MPI-Linux-64bit<br>
PVHOME=/opt/ParaView-5.4.1-Qt5<wbr>-OpenGL2-MPI-Linux-64bit<br>
<br>
export PATH=$PVHOME/bin<br>
export LD_LIBRARY_PATH=$PVHOME/lib/<br>
export LD_LIBRARY_PATH=$LD_LIBRARY_PA<wbr>TH:$PVHOME/lib/paraview-5.4/<br>
export PYTHONPATH=$PVHOME/lib/python2<wbr>.7/bin/<br>
export PYTHONPATH=$PYTHONPATH:$PVHOME<wbr>/lib/python2.7/site-packages/<br>
export PYTHONPATH=$PYTHONPATH:$PVHOME<wbr>/lib/python2.7/site-packages/<wbr>vtk/<br>
export PYTHONPATH=$PYTHONPATH:$PVHOME<wbr>/lib/python2.7/site-packages/<wbr>paraview/<br>
<br>
$PVHOME/bin/paraview<br>
------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------------<br>
<br>
On each machine I start paraview and load a state that has a<br>
programmable filter with the line:<br>
<br>
d0 = inputs[0].PointSet['d']<br>
<br>
One one machine, this works just fine. On the other machine, I get the<br>
following message in the Output:<br>
<br>
------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------------<br>
<br>
Traceback (most recent call last): File "", line 24, in File "", line 2,<br>
in RequestData TypeError: 'NoneType' object has no attribute '__getitem__'<br>
<br>
BTW, this is just a test; obviously, my real filter does something.<br>
<br>
I assume that some module is not being loaded here, but I've tried<br>
_everything_ I could think of and I'm not making progress. Any ideas??<br>
<span class="m_-7460673436794765227HOEnZb"><font color="#888888"><br>
--<br>
Martin Weinberg<br>
<a href="https://maps.google.com/?q=6+Grass+Hill+Rd+%0D%0AWest+Whately,+MA&entry=gmail&source=g">6 Grass Hill Rd</a><br>
West Whately, MA<br>
010039<br>
<br>
<br>
</font></span><br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">https://public.kitware.com/mai<wbr>lman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br>
-- <br>
Martin Weinberg<br>
<a href="https://maps.google.com/?q=6+Grass+Hill+Rd+%0D%0AWest+Whately,+MA&entry=gmail&source=g">6 Grass Hill Rd</a><br>
West Whately, MA</div></div></div></blockquote></div><br></div>