Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
logging MY application's stderr in runtime
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Chris Smith  
View profile  
 More options Oct 1 2011, 3:59 am
From: Chris Smith <smith.cwar...@gmail.com>
Date: Sat, 1 Oct 2011 00:59:29 -0700 (PDT)
Local: Sat, Oct 1 2011 3:59 am
Subject: logging MY application's stderr in runtime
I'm trying to use pyinstaller to package a pyside/qt app. We used
py2exe before, but we switched for some reason and I want to know how
to do something that py2exe did. With py2exe whenever our application
would throw an exception you would get an alert box telling that there
was a error and the location of the log file with the traceback of
said error. The default behavior of pyinstaller seems to be to dump
the stderr of my app to nowhere. I can of course use "2> log.txt" to
get it, but I could have used py2exe's handling of this in the field
and asked super competent users (or sub-par testers) to send me a log
file. pyinstaller's debug mode is not meant for this. Sooo how can I
get some similar functionality out of pyinstaller? Thanks for your
help, switching back to py2exe would be a pain!

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Zibricky  
View profile  
 More options Oct 1 2011, 10:59 am
From: Martin Zibricky <mzibri...@gmail.com>
Date: Sat, 01 Oct 2011 16:59:20 +0200
Local: Sat, Oct 1 2011 10:59 am
Subject: Re: [PyInstaller] logging MY application's stderr in runtime
Chris Smith píše v So 01. 10. 2011 v 00:59 -0700:

> I can of course use "2> log.txt" to
> get it, but I could have used py2exe's handling of this in the field
> and asked super competent users (or sub-par testers) to send me a log
> file. pyinstaller's debug mode is not meant for this. Sooo how can I
> get some similar functionality out of pyinstaller?

I think there is nothing similar in pyinstaller. But maybe others could
share any experiences with this.

Maybe the pyinstaller's debug mode could be somehow improved.

How is this implemented in py2exe?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Giovanni Bajo  
View profile  
 More options Oct 1 2011, 11:24 am
From: Giovanni Bajo <ra...@develer.com>
Date: Sat, 1 Oct 2011 17:24:38 +0200
Local: Sat, Oct 1 2011 11:24 am
Subject: Re: [PyInstaller] logging MY application's stderr in runtime

Il giorno 01/ott/2011, alle ore 16:59, Martin Zibricky ha scritto:

> Chris Smith píše v So 01. 10. 2011 v 00:59 -0700:
>> I can of course use "2> log.txt" to
>> get it, but I could have used py2exe's handling of this in the field
>> and asked super competent users (or sub-par testers) to send me a log
>> file. pyinstaller's debug mode is not meant for this. Sooo how can I
>> get some similar functionality out of pyinstaller?

> I think there is nothing similar in pyinstaller. But maybe others could
> share any experiences with this.

> Maybe the pyinstaller's debug mode could be somehow improved.

> How is this implemented in py2exe?

The only way to implement such a feature is to install an exception handler in Python. I think it's a feature that could make sense for PyInstaller: when console is disabled, an exception handler should be installed that logs exceptions to log files and/or display a message box using the OS native GUI support, possibly through a different process not to create weird interactions with any running GUI in the user's application.

Obviously this would be a debug feature that can be disabled if not needed.
--
Giovanni Bajo   ::  ra...@develer.com
Develer S.r.l.  ::  http://www.develer.com

My Blog: http://giovanni.bajo.it

  smime.p7s
6K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hartmut Goebel  
View profile  
 More options Oct 4 2011, 4:38 am
From: Hartmut Goebel <h.goe...@goebel-consult.de>
Date: Tue, 04 Oct 2011 10:38:28 +0200
Local: Tues, Oct 4 2011 4:38 am
Subject: Re: [PyInstaller] logging MY application's stderr in runtime
Am 01.10.2011 17:24, schrieb Giovanni Bajo:

> The only way to implement such a feature is to install an exception handler in Python. I think it's a feature that could make sense for PyInstaller: when console is disabled, an exception handler should be installed that logs exceptions to log files and/or display a message box using the OS native GUI support, possibly through a different process not to create weird interactions with any running GUI in the user's application.

Added a ticket for this: http://www.pyinstaller.org/ticket/430

--
Schönen Gruß - Regards
Hartmut Goebel
Dipl.-Informatiker (univ.), CISSP, CSSLP

Goebel Consult
Spezialist für IT-Sicherheit in komplexen Umgebungen
http://www.goebel-consult.de

Monatliche Kolumne: http://www.cissp-gefluester.de/
Goebel Consult ist Mitglied bei http://www.7-it.de


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »