[Paraview] pvpython message

pat marion pat.marion at kitware.com
Fri Feb 11 10:29:50 EST 2011


That's odd.  Maybe you have something in your pythonrc or pythonstartup that
is defining sys.ps1.  Try adding this before the import paraview line in
your script:

import sys
del sys.ps1

Pat

On Fri, Feb 11, 2011 at 9:09 AM, Adriano Gagliardi <agagliardi at ara.co.uk>wrote:

>
> I receive the message when executing a Python script with pvpython or
> pvbatch after 'from paraview.simple import *'. Whether I run it as:
>
> pvpython ./my-script.py
> pvbatch ./my-script.py
>
> or if I include the executable at the top of the Python script ie:
> #!/usr/bin/env pvpython or #!/usr/bin/env pvbatch
>
> I still get the message. Is there another way I should be executing the
> scripts?
>
> Adriano
>
> ===================================
>
> Adriano Gagliardi MEng PhD
> Business Sector Leader
> Computational Aerodynamics
> Aircraft Research Association Ltd.
> Manton Lane
> Bedford
>
> Tel: 01234 32 4644
> E-mail: agagliardi at ara.co.uk
> Url: www.ara.co.uk
> -----Original Message-----
> From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com]
> Sent: 11 February 2011 13:58
> To: agagliardi at ara.co.uk
> Cc: Aurélien Marsan; paraview at paraview.org
> Subject: Re: [Paraview] pvpython message
>
> Out of curiosity, why would you want to disable the message? It's only
> shown
> when pvpython is run as an interactive session, never when a script
> argument
> is specified or with pvbatch.
>
> Utkarsh
>
> 2011/2/11 Adriano Gagliardi <agagliardi at ara.co.uk>:
> >
> > Thanks, Aurelian. I don't like random hacks, but if that is the only
> > option for the moment, so be it.
> >
> > Thanks again.
> >
> >
> > ===================================
> >
> > Adriano Gagliardi MEng PhD
> > Business Sector Leader
> > Computational Aerodynamics
> > Aircraft Research Association Ltd.
> > Manton Lane
> > Bedford
> >
> > Tel: 01234 32 4644
> > E-mail: agagliardi at ara.co.uk
> > Url: www.ara.co.uk
> >
> >
> > ________________________________
> > From: Aurélien Marsan [mailto:aur.marsan at gmail.com]
> > Sent: 11 February 2011 13:29
> > To: agagliardi at ara.co.uk
> > Cc: paraview at paraview.org
> > Subject: Re: [Paraview] pvpython message
> >
> > Hello,
> >
> > In
> > PARAVIEW_DIR\lib\paraview-3.8\site-packages\paraview\servermanager.py
> > comment the lines 2947 and 2949.
> >>
> >> if hasattr(sys, "ps1"):
> >>     # session is interactive.
> >>     print vtkSMProxyManager.GetParaViewSourceVersion();
> >>
> >
> > Aurélien.
> >
> > 2011/2/11 Adriano Gagliardi <agagliardi at ara.co.uk>
> >>
> >> Hello,
> >>
> >> Is there a way to suppress the message you get each time you open
> >> pvpython
> >> i.e.:
> >>
> >> paraview version 3.7.0, Date: 2009-10-03
> >>
> >> Regards,
> >>
> >> Adriano
> >>
> >> ===================================
> >>
> >> Adriano Gagliardi MEng PhD
> >> Business Sector Leader
> >> Computational Aerodynamics
> >> Aircraft Research Association Ltd.
> >> Manton Lane
> >> Bedford
> >>
> >> Tel: 01234 32 4644
> >> E-mail: agagliardi at ara.co.uk
> >> Url: www.ara.co.uk
> >>
> >>
> >> *********************************************************************
> >> * This email contains information that is private and confidential
> >> and is intended only for the addressee.
> >> If you are not the intended recipient please delete it and notify us
> >> immediately by e-mailing the sender.
> >> Note: All email sent to or from this address may be accessed by
> >> someone other than the recipient, for system management and security
> >> reasons.
> >> Aircraft Research Association Ltd.  Registered in England,
> >> Registration No
> >> 503668 Registered Office:
> >> Manton Lane, Bedford MK41 7PF England VAT No GB 196351245
> >>
> >> *********************************************************************
> >> * _______________________________________________
> >> 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
> >
> > **********************************************************************
> > This email contains information that is private and confidential and
> > is intended only for the addressee.
> > If you are not the intended recipient please delete it and notify us
> > immediately by e-mailing the sender.
> > Note: All email sent to or from this address may be accessed by
> > someone other than the recipient, for system management and security
> > reasons.
> > Aircraft Research Association Ltd.  Registered in England,
> > Registration No
> > 503668 Registered Office:
> > Manton Lane, Bedford MK41 7PF England VAT No GB 196351245
> >
> > **********************************************************************
> >
> > _______________________________________________
> > 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
> >
> >
>
>
> **********************************************************************
> This email contains information that is private and confidential and is
> intended only for the addressee.
> If you are not the intended recipient please delete it and notify us
> immediately by e-mailing the sender.
> Note: All email sent to or from this address may be accessed by someone
> other than the recipient, for
> system management and security reasons.
> Aircraft Research Association Ltd.  Registered in England, Registration No
> 503668 Registered Office:
> Manton Lane, Bedford MK41 7PF England VAT No GB 196351245
>
> **********************************************************************
> _______________________________________________
> 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/20110211/268b0414/attachment.htm>


More information about the ParaView mailing list