<div dir="ltr"><div>The problem is still not solved. <br></div>I added ns=globals() and tried both remote=False and remote=True. Neither of them works. The same error message persist: <span style="color:rgb(255,0,0);font-family:Courier;font-size:9pt">Plot[plotname] = H5PartReader(FileName=maindire</span><span style="color:rgb(255,0,0);font-family:Courier;font-size:9pt"><wbr>ctory+subdirectory+name) </span><span class="im"><div><span style="color:rgb(255,0,0);font-family:Courier;font-size:9pt">NameError: global name 'H5PartReader' is not defined</span></div><div><br></div></span>2) I also tried to replace <span style="color:rgb(255,0,0);font-family:Courier">H5PartReader</span> with <font face="Courier"><span style="font-size:17px">servermanager.sources.H5P<wbr>artReader.
It still does not work. This time, there is no error message but the
data was not load successfully and there is some “Output Message”:<br></span></font>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:9pt;color:rgb(128,0,0)">Some proxy is added as input but was not registered with Proxy Manager. This is not recommended.</span></p><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-08-11 18:10 GMT-04:00 曹智选 <span dir="ltr"><<a href="mailto:hitcaozx@gmail.com" target="_blank">hitcaozx@gmail.com</a>></span>:<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>Hi,<br></div>I am trying to write a python scripts to "visualize" simulation results. <br><br></div>I need load a plugin through GUI of paraview before opening data. If I first load plugin in the GUI and then run my python scripts through Paraview GUI -> tools ->python shell, it works well. <br>To load plugin in python scrips. I use the trace tool of paraview found that the function to load plugin is: <br>LoadPlugin('/rohit1/data/<wbr>users/zhixuanc/Soft/ParaView-<wbr>4.3.1-Linux-64bit/lib/<wbr>paraview-4.3/libH5PartReader.<wbr>so', remote=False). <br><br>Instead of load plugin manually through GUI, I put this command at the very beginning of the existing python scripts and run the scripts through Paraview GUI -> tools ->python shell. But I got an error message and it does not work:<br>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:9pt;color:rgb(255,0,0)"> Plot[plotname] = H5PartReader(FileName=<wbr>maindirectory+subdirectory+<wbr>name)</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"Courier";font-size:9pt;color:rgb(255,0,0)">NameError: global name 'H5PartReader' is not defined</span></p><br></div><div>But when I go to Paraview GUI -> tools -> Manage Plugins, it shows that the required plugin is loaded. <br><br></div><div>I am not sure what's wrong and how to fix this issue. <br><br></div><div>Could anybody give me any advice on it? <br><br><br><br></div></div>
</blockquote></div><br></div>