Menu

#769 stderr not available from Python scripts or plugins

svn version
closed-fixed
nobody
None
8
2014-06-18
2014-06-17
rgiot
No

The error output is not available when using python plugins (i.e., messages displayed on stderr are not visible).

If I launch a standalone python script, it fails silently.
If I launch Tulip, i have the following message on my console:
lost sys.stderr

Without stderr, it is quite difficult to debug Python scripts/plugins; for this reason I put a high priority

I use ubuntu 14.04, tulip svn 10206

Related

Bugs: #769

Discussion

  • Antoine Lambert

    Antoine Lambert - 2014-06-18

    Hi,

    I don't really understand your issue. Sending output
    to stderr seems to work correctly from the Python interpreter
    and Tulip.

    Can you provide a sample script to illustrate the problem ?

    Antoine

     
    • rgiot

      rgiot - 2014-06-18

      In fact, I am also unable to reproduce the bug within tulip (here a dialog
      window shows the error).
      However, it still exist in standalone python scripts.

      I'll share my problematic code

      On Wed, Jun 18, 2014 at 11:11 AM, Lambert Antoine anlambert@users.sf.net
      wrote:

      Hi,

      I don't really understand your issue. Sending output
      to stderr seems to work correctly from the Python interpreter
      and Tulip.

      Can you provide a sample script to illustrate the problem ?

      Antoine

      Status: open
      Group: svn version
      Created: Tue Jun 17, 2014 02:04 PM UTC by rgiot
      Last Updated: Tue Jun 17, 2014 02:04 PM UTC
      Owner: nobody

      The error output is not available when using python plugins (i.e.,
      messages displayed on stderr are not visible).

      If I launch a standalone python script, it fails silently.
      If I launch Tulip, i have the following message on my console:
      lost sys.stderr

      Without stderr, it is quite difficult to debug Python scripts/plugins; for
      this reason I put a high priority

      I use ubuntu 14.04, tulip svn 10206

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/auber/bugs/769/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      Romain GIOT

      S'il vous plaît, évitez de m'envoyer des pièces jointes au format Word ou
      PowerPoint.
      Voir http://www.gnu.org/philosophy/no-word-attachments.fr.html

      Membre de l'April - « promouvoir et défendre le logiciel libre » -
      http://www.april.org

      Rejoignez maintenant plus de 2 500 personnes, associations, entreprises et
      collectivités qui soutiennent notre action

       

      Related

      Bugs: #769

  • Patrick Mary

    Patrick Mary - 2014-06-18

    Thank you very much for your input.
    This bug is now fixed in the current svn code line (commit #10213)

     
  • Patrick Mary

    Patrick Mary - 2014-06-18
    • status: open --> closed-fixed
     

Log in to post a comment.