[Paraview] State file .py

Hedieh Ebrahimi hedieh.ebrahimi at amphos21.com
Wed Oct 30 09:50:21 EDT 2013


Hi Utkarsh,

I also tried with loading the script from Python Shell,

and It gives me this error on all my scripts.

Traceback (most recent call last):

File "<string>", line 13, in <module>

NameError: name 'CreateRenderView' is not defined



Although it is created at line 13.

RenderView1 = CreateRenderView()


Any ideas on what is wrong with my script.

Thanks
Hedieh



On 30 October 2013 14:42, Utkarsh Ayachit <utkarsh.ayachit at kitware.com>wrote:

> Python state files cannot be loaded from "Load State" ( as I write
> this I realize that that is indeed a missing feature). You can  use
> the Python shell to load the script.
>
> Utkarsh
>
> On Wed, Oct 30, 2013 at 8:34 AM, Hedieh Ebrahimi
> <hedieh.ebrahimi at amphos21.com> wrote:
> > Hi all,
> >
> > I am using ParaView 4.0.1 64 bit Release version.
> >
> > When i try to save a statefile as .py it saves correctly, but when I try
> to
> > open the same state file again using the same ParaView i get the
> following
> > error.
> >
> >
> > ERROR: In
> > C:\DBD\pvs-x64\paraview\src\paraview\VTK\IO\XMLParser\vtkXMLParser.cxx,
> line
> > 483
> >
> > vtkPVXMLParser (000000000A864BC0): Error parsing XML in stream at line 1,
> > column 0, byte index 0: syntax error
> >
> >
> >
> > Root does not exist. Either state file could not be opened or it does not
> > contain valid xml
> >
> >
> > If I save my pipeline state as .pvsm file, I can re-open it correctly
> and I
> > am just having this problem with .py state files.
> >
> > Does anybody know how I could fix this problem?
> >
> > Thanks in Advance,
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the ParaView Wiki at:
> > http://paraview.org/Wiki/ParaView
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.paraview.org/mailman/listinfo/paraview
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20131030/c2b2d09e/attachment-0001.htm>


More information about the ParaView mailing list