<div dir="ltr"><div><div><div><div><div>Hi Utkarsh,<br><br></div>I also tried with loading the script from Python Shell, <br><br></div>and It gives me this error on all my scripts.<br><br><span style="font-family:&#39;Courier&#39;;font-size:8.25pt;color:rgb(0,0,0)"> </span><span style="font-family:&#39;Courier&#39;;font-size:8.25pt;color:rgb(255,0,0)">Traceback (most recent call last):</span>
<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Courier&#39;;font-size:8.25pt;color:rgb(255,0,0)">  File &quot;&lt;string&gt;&quot;, line 13, in &lt;module&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Courier&#39;;font-size:8.25pt;color:rgb(255,0,0)">NameError: name &#39;CreateRenderView&#39; is not defined</span></p><p style="margin:0px;text-indent:0px">
<br><span style="font-family:&#39;Courier&#39;;font-size:8.25pt;color:rgb(255,0,0)"></span></p><p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Courier&#39;;font-size:8.25pt;color:rgb(255,0,0)"><br></span></p>
<p style="margin:0px;text-indent:0px">Although it is created at line 13. <br></p><p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Courier&#39;;font-size:8.25pt;color:rgb(255,0,0)"></span></p><p style="margin:0px;text-indent:0px">
<span style="font-family:&#39;Courier&#39;;font-size:8.25pt;color:rgb(255,0,0)"><font color="#000000">RenderView1 = CreateRenderView()<br></font><br></span></p><br></div>Any ideas on what is wrong with my script.<br><br></div>
Thanks<br></div>Hedieh<br><div><div><div><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 30 October 2013 14:42, Utkarsh Ayachit <span dir="ltr">&lt;<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Python state files cannot be loaded from &quot;Load State&quot; ( as I write<br>
this I realize that that is indeed a missing feature). You can  use<br>
the Python shell to load the script.<br>
<br>
Utkarsh<br>
<div><div class="h5"><br>
On Wed, Oct 30, 2013 at 8:34 AM, Hedieh Ebrahimi<br>
&lt;<a href="mailto:hedieh.ebrahimi@amphos21.com">hedieh.ebrahimi@amphos21.com</a>&gt; wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I am using ParaView 4.0.1 64 bit Release version.<br>
&gt;<br>
&gt; When i try to save a statefile as .py it saves correctly, but when I try to<br>
&gt; open the same state file again using the same ParaView i get the following<br>
&gt; error.<br>
&gt;<br>
&gt;<br>
&gt; ERROR: In<br>
&gt; C:\DBD\pvs-x64\paraview\src\paraview\VTK\IO\XMLParser\vtkXMLParser.cxx, line<br>
&gt; 483<br>
&gt;<br>
&gt; vtkPVXMLParser (000000000A864BC0): Error parsing XML in stream at line 1,<br>
&gt; column 0, byte index 0: syntax error<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Root does not exist. Either state file could not be opened or it does not<br>
&gt; contain valid xml<br>
&gt;<br>
&gt;<br>
&gt; If I save my pipeline state as .pvsm file, I can re-open it correctly and I<br>
&gt; am just having this problem with .py state files.<br>
&gt;<br>
&gt; Does anybody know how I could fix this problem?<br>
&gt;<br>
&gt; Thanks in Advance,<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
</blockquote></div><br></div>