[Paraview] Python Shell in branded app

Paul Edwards paul.m.edwards at gmail.com
Tue Feb 2 09:36:44 EST 2010


It's from a plugin that I created when I was trying to add another view - I
never finished writing it and so it's probably a bug in that.

Regards,
Paul

On 2 February 2010 14:09, Utkarsh Ayachit <utkarsh.ayachit at kitware.com>wrote:

> Where's the "NewView" proxy coming from? Is it in your custom application's
> XML?
>
> Utkarsh
>
> On Tue, Feb 2, 2010 at 6:59 AM, Paul Edwards <paul.m.edwards at gmail.com>
> wrote:
> > Just to update: - it didn't work in ParaView either.  I actually meant
> > pvpython.  Adding the code explained everything though:
> >
> >
> > Failed to initialize proxy 'NewView' in group 'views'
> >
> >
> > Thanks Pat
> >
> >
> > On 27 January 2010 16:12, pat marion <pat.marion at kitware.com> wrote:
> >>
> >> I don't know why it would work for paraview and not the branded app,
> >> I'm not going to be able to answer your question, but maybe I can help
> >> debug.  You could you edit
> >> /home/paul/DEV/BrandedApp/lib/paraview-3.7/paraview/servermanager.py
> >> and add this after line 2488:
> >>
> >>        if not proto:
> >>          print "Failed to initialize proxy '%s' in group '%s'" %
> >> (proxyName, groupName)
> >>          continue
> >>
> >> Pat
> >>
> >> On Wed, Jan 27, 2010 at 10:59 AM, pat marion <pat.marion at kitware.com>
> >> wrote:
> >> >
> >> > Hi Paul,
> >> >
> >> > Do you have custom proxies defined in your xml? I've seen a bug like
> >> > this before when there are parentheses in the proxy Label attribute.
> >> >
> >> > Pat
> >> >
> >> > On Wed, Jan 27, 2010 at 10:39 AM, Paul Edwards
> >> > <paul.m.edwards at gmail.com> wrote:
> >> >>
> >> >> Hi,
> >> >>
> >> >> The Python shell is not working in my branded app.  Below are the
> >> >> errors appearing in the shell:
> >> >>
> >> >> Python 2.6.2 (r262:71600, Jul 17 2009, 14:08:37)
> >> >>
> >> >> [GCC 4.2.1 (SUSE Linux)] on linux2
> >> >>
> >> >> >>> from paraview.simple import *
> >> >>
> >> >> Traceback (most recent call last):
> >> >>
> >> >> File "<string>", line 4, in <module>
> >> >>
> >> >> File
> >> >>
> "/home/paul/DEV/BrandedApp/lib/paraview-3.7/paraview/servermanager.py", line
> >> >> 2891, in <module>
> >> >>
> >> >> _createModules()
> >> >>
> >> >> File
> >> >>
> "/home/paul/DEV/BrandedApp/lib/paraview-3.7/paraview/servermanager.py", line
> >> >> 2456, in _createModules
> >> >>
> >> >> createModule('views', rendering)
> >> >>
> >> >> File
> >> >>
> "/home/paul/DEV/BrandedApp/lib/paraview-3.7/paraview/servermanager.py", line
> >> >> 2491, in createModule
> >> >>
> >> >> proto.GetXMLLabel():
> >> >>
> >> >> AttributeError: 'NoneType' object has no attribute 'GetXMLLabel'
> >> >>
> >> >> >>>
> >> >>
> >> >> >>>
> >> >>
> >> >>
> >> >> I do not get these errors if I run "pvpython" or the main "paraview"
> >> >> app. Any ideas?
> >> >>
> >> >> Thanks in advance,
> >> >> Paul
> >> >>
> >> >> _______________________________________________
> >> >> 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
> >> >>
> >> >
> >
> >
> > _______________________________________________
> > 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/20100202/8a81a70c/attachment.htm>


More information about the ParaView mailing list