Py2exe and logging module

S

sfbell09

Hi,

My question is about the logging module and py2exe. When my code is in
natural python, all of the logging works perfectly. I have two logging
functions, one is a File Handler, the other is a SMTP handler. Once I
build the code using py2exe, the File Handler still works, but the
SMTP does not send any messages.

1. Any thoughts on why this might be happening.
2. Is there any way for the executable to return debugging
information? It's a wxPython gui app.

Thanks.
 
J

Joe Francia

sfbell09 said:
Hi,

My question is about the logging module and py2exe. When my code is in
natural python, all of the logging works perfectly. I have two logging
functions, one is a File Handler, the other is a SMTP handler. Once I
build the code using py2exe, the File Handler still works, but the
SMTP does not send any messages.

1. Any thoughts on why this might be happening.
2. Is there any way for the executable to return debugging
information? It's a wxPython gui app.

Thanks.
A quick & dirty way is to build with py2exe's --console option, and
traceback will print in the DOS window (which will close if your app
quits - so handle those exceptions).

Other suggestions: run in a debugger, or log activities to a file or to
a separate wxPython frame|statusbar|text control.

Peace,
Joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Logging 0
Use of logging module to track TODOs 0
easyGUI and py2exe 0
Missing logging output in Python 1
py2exe and 64/32 bit windows 3
Py2exe and Module Error... 4
logging module 2
Logging question 2

Members online

No members online now.

Forum statistics

Threads
474,169
Messages
2,570,919
Members
47,460
Latest member
eibafima

Latest Threads

Top