The other person that mentioned this problem also didn't seem to have the servermanager.py file updated in the build directory even though they updated their code in the source tree. I'll check on that to see why it's happening.<br>
<br>Thanks,<br><br>Andy<br><br><div class="gmail_quote">On Wed, Sep 1, 2010 at 6:16 PM, Fabian, Nathan <span dir="ltr"><<a href="mailto:ndfabia@sandia.gov">ndfabia@sandia.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">Okay thanks. Apparently, I’m doing some version of building that includes not bringing those updates over from the src directory to the build directory...<div>
<div></div><div class="h5"><br>
<br>
On 9/1/10 4:08 PM, "Andy Bauer" <<a href="http://andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>> wrote:<br>
<br>
</div></div></span></font><blockquote><div><div></div><div class="h5"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">This was fixed a little while ago. Try updating paraview if you can. The change servermanager.py is:<br>
@@ -796,6 +796,10 @@ class ArraySelectionProperty(<br>
VectorProperty):<br>
elif len(values) == 2:<br>
if isinstance(values[0], str):<br>
val = str(ASSOCIATIONS[values[0]])<br>
+ else:<br>
+ # In case user didn't specify valid association,<br>
+ # just pick POINTS.<br>
+ val = str(ASSOCIATIONS['POINTS'])<br>
<br>
self.SMProperty.SetElement(3, str(val))<br>
self.SMProperty.SetElement(4, values[1])<br>
else:<br>
<br>
Andy<br>
<br>
<br>
On Wed, Sep 1, 2010 at 5:43 PM, Fabian, Nathan <<a href="http://ndfabia@sandia.gov" target="_blank">ndfabia@sandia.gov</a>> wrote:<br>
</span></font></div></div><blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><div><div></div><div class="h5">Hi,<br>
<br>
When I export state with the image data into the coprocessing python script<br>
it includes some properties which don't appear when I use coprocessing. For<br>
instance, "DataRepresentation1.SelectOrientationVectors = [None, '']". It<br>
complains with:<br>
<br>
File<br>
"/Users/ndfabia/Desktop/Work/ParaView_build/Utilities/VTKPythonWrapping/para<br>
view/servermanager.py", line 2367, in setProperty<br>
return self.SetPropertyWithName(propName, value)<br>
File<br>
"/Users/ndfabia/Desktop/Work/ParaView_build/Utilities/VTKPythonWrapping/para<br>
view/servermanager.py", line 256, in SetPropertyWithName<br>
prop.SetData(arg)<br>
File<br>
"/Users/ndfabia/Desktop/Work/ParaView_build/Utilities/VTKPythonWrapping/para<br>
view/servermanager.py", line 799, in SetData<br>
self.SMProperty.SetElement(3, str(val))<br>
UnboundLocalError: local variable 'val' referenced before assignment<br>
<br>
It's using the same paraview to export the script as is running insitu...<br>
Does anyone have a suggestion as to what I'm missing?<br>
<br>
Thanks,<br>
Nathan.<br>
<br>
<br>
_______________________________________________<br></div></div>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> <<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>> <br><div class="im">
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</div></span></font></blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
<br>
</span></font></blockquote>
</div>
</blockquote></div><br>