[Paraview] vtkPVTrivialProducer issues
wastrel at gmail.com
wastrel at gmail.com
Fri Apr 23 23:24:34 EDT 2010
Thanks, but still not working. See below for the errors:
getting appended
vtkXMLUnstructuredGridReader : [ ...........]
vtkXMLUnstructuredGridReader : [ ...........]
vtkReductionFilter : [ ...........]
vtkClientServerMoveData : [ ...........]
Traceback (most recent call last):
File "convert.py", line 75, in <module>
tp=sm.sources.TrivialProducer()
AttributeError: 'module' object has no attribute 'TrivialProducer'
Paraview version is 3.2.1.
Thanks!
On Fri, Apr 23, 2010 at 4:44 PM, Utkarsh Ayachit <
utkarsh.ayachit at kitware.com> wrote:
> You no longer need the initial part for loading the XML. You can directly
> use:
>
> tp = sm.sources.TrivialProducer()
>
> and that should work.
>
> Utkarsh
>
> On Fri, Apr 23, 2010 at 5:09 PM, <wastrel at gmail.com> wrote:
> > I used the the following snippet to generate data on the client side but
> > ended up with errors:
> >
> > Code:
> > sm = servermanager
> > f = open('trivialproducer.xml', 'r')
> > parser = sm.vtkSMXMLParser()
> > parser.Parse(f.read())
> > parser.ProcessConfiguration(sm.vtkSMObject.GetProxyManager())
> > # Update the modules
> > sm._updateModules()
> >
> > tp = sm.sources.TrivialProducer()
> > obj = tp.GetClientSideObject()
> > obj.SetOutput(pd)
> >
> > # use tp as any other source proxy
> >
> >
> > trivialproducer.xml:
> >
> > <ServerManagerConfiguration>
> > <ProxyGroup name="sources">
> >
> > <SourceProxy name="TrivialProducer"
> > class="vtkPVTrivialProducer">
> > </SourceProxy>
> > </ProxyGroup>
> >
> >
> > Errors:
> > ERROR: In
> >
> /home/berk/Work/ReleaseBuilds/ParaView3/Servers/Common/vtkProcessModule.cxx,
> > line 1001
> > vtkProcessModule (0x807b790): Cannot create object of type
> > "vtkPVTrivialProducer".
> > while processing
> > Message 0 = New
> > Argument 0 = string_value {vtkPVTrivialProducer}
> > Argument 1 = id_value {40}
> >
> >
> > ERROR: In
> >
> /home/berk/Work/ReleaseBuilds/ParaView3/Servers/Common/vtkProcessModule.cxx,
> > line 1002
> > vtkProcessModule (0x807b790): Aborting execution for debugging purposes.
> >
> > Abort
> >
> >
> > _______________________________________________
> > 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/20100423/3888ab31/attachment-0001.htm>
More information about the ParaView
mailing list