<div dir="ltr"><div><div><div><div>Hi Andy, <br><br></div>LoadPlugin() helps in pvpython. But why does <br><b>from paraview.simple import * </b>does not work???<br><br></div>Why I need to externally load my plugin even I build with paraview source. Also, I don't think, Its a good design to set PV_PLUGIN_PATH or PV_PLUGIN_CONFIG_FILE even when the plugin is build with source. The file "plugin.cmake" should take care all of this.<br><br></div>Thanks<br></div>Sumeet<br> </div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 14, 2017 at 7:01 AM, Andy Bauer <span dir="ltr"><<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi,<br><br></div>My guess is that the reader plugin is automatically loaded in the GUI but not when you run pvpython directly. Look at the LoadPlugin() or LoadDistributedPlugin() command in pvpython. <br><br></div>Are you setting PV_PLUGIN_PATH or PV_PLUGIN_CONFIG_FILE? Another guess may be that you're using PV_PLUGIN_PATH and/or PV_PLUGIN_CONFIG_FILE to load the plugin automatically through the GUI and that isn't being utilized when running with pvpython. See <a href="http://www.paraview.org/Wiki/Plugin_HowTo" target="_blank">http://www.paraview.org/Wiki/<wbr>Plugin_HowTo</a> for information on that.<br><br></div>Best,<br></div>Andy<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 13, 2017 at 11:34 PM, sumeet kumar <span dir="ltr"><<a href="mailto:sumeet.kumar507@gmail.com" target="_blank">sumeet.kumar507@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 dir="ltr"><div><div>Hey, <br><br></div>I have a reader plugin integrated with paraview that works perfectly fine. I could use the same plugin to trace an "equivalent python code" for any visualization example. The generated python code can be run again on paraview gui.<br></div>BUT, when i try to follow the same python command in python externally like pvpython. I get the following error.<br><br>>>> from paraview.simple import *<br>updating active connection None<br>paraview version 5.2.0-RC1<br>updating active connection Connection (builtin:) [1]<br>updating active connection Connection (builtin:) [1]<br>>>> beam_Axial_Loadh5feioutput = pvESSI(FileName="/home/sumeet/<wbr>Desktop<span style="color:rgb(255,0,0)">/Beam_Axial_Load.h5.fei<wbr>output")<br>Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br>NameError: name 'pvESSI' is not defined</span><br><br clear="all"><div><div><div><div>My plugin name is pvESSI. the same line works on paraview GUI mode in python shell. I tried to look on the Internet and build the plugin inside the paraview source itself, but the problem remains. <br><br></div><div>Others have suggested here on link <a href="http://www.paraview.org/pipermail/paraview/2013-October/029428.html" target="_blank">http://www.paraview.org/piperm<wbr>ail/paraview/2013-October/<wbr>029428.html</a>, but I dont understand where to make changes to fix this problem.<br></div><div><br><br></div><div>Any help would be highly appreciated. <br><br></div><div>Best Regards<span class="m_-931522603934154295HOEnZb"><font color="#888888"><br></font></span></div><span class="m_-931522603934154295HOEnZb"><font color="#888888"><div>Sumeet <br></div><div>-- <br><div class="m_-931522603934154295m_-4484995075668673733gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><span><img src="http://faculty.engineering.ucdavis.edu/ceetemplate/wp-content/uploads/2013/06/CEE75percent500w.jpg" style="font-size:12.8px" width="200" height="31"><span style="font-size:12.8px"> </span><br><div><font style="font-family:"trebuchet ms",sans-serif;font-size:12.8px;color:rgb(51,51,51)">Sumeet Kumar Sinha</font></div><div><span style="color:rgb(51,51,51);font-family:"trebuchet ms",sans-serif;font-size:small">Graduate Student</span></div><div><span style="font-size:12.8px;font-family:"trebuchet ms",sans-serif;color:rgb(51,51,51)">Phone: (+1)</span><a href="tel:%28%2B91%29%209910516219" value="+919910516219" style="font-size:12.8px;font-family:"trebuchet ms",sans-serif;color:rgb(17,85,204)" target="_blank"> </a><span style="font-size:12.8px;font-family:"trebuchet ms",sans-serif;color:rgb(51,51,51)"><a href="tel:(530)%20601-8271" value="+15306018271" target="_blank">5306018271</a></span></div><div><span style="color:rgb(51,51,51);font-family:"trebuchet ms",sans-serif;font-size:12.8px">Website : </span><a href="http://www.sumeetksinha.com/" style="font-family:"trebuchet ms",sans-serif;font-size:12.8px;color:rgb(17,85,204)" target="_blank">http://www.sumeetksinha.com/</a></div></span></div></div></div></div></div></div></div></div>
</div></font></span></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><span><img src="http://faculty.engineering.ucdavis.edu/ceetemplate/wp-content/uploads/2013/06/CEE75percent500w.jpg" style="font-size:12.8000001907349px" height="31" width="200"><span style="font-size:12.8000001907349px"> </span><br><div><font style="font-family:'trebuchet ms',sans-serif;font-size:12.8000001907349px;color:rgb(51,51,51)">Sumeet Kumar Sinha</font></div><div><span style="color:rgb(51,51,51);font-family:'trebuchet ms',sans-serif;font-size:small">Graduate Student</span></div><div><span style="font-size:12.8000001907349px;font-family:'trebuchet ms',sans-serif;color:rgb(51,51,51)">Phone: (+1)</span><a href="tel:%28%2B91%29%209910516219" value="+919910516219" style="font-size:12.8000001907349px;font-family:'trebuchet ms',sans-serif;color:rgb(17,85,204)" target="_blank"> </a><span style="font-size:12.8000001907349px;font-family:'trebuchet ms',sans-serif;color:rgb(51,51,51)">5306018271</span></div><div><span style="color:rgb(51,51,51);font-family:'trebuchet ms',sans-serif;font-size:12.8000001907349px">Website : </span><a href="http://www.sumeetksinha.com/" style="font-family:'trebuchet ms',sans-serif;font-size:12.8000001907349px;color:rgb(17,85,204)" target="_blank">http://www.sumeetksinha.com/</a></div></span></div></div></div></div></div></div></div></div>
</div>