473,466 Members | 1,314 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

py2exe uses __init__ for class names when logging

Hi,

when i run my program and use the logging component, i see this:

2005-09-02 17:07:48,193 INFO windowmain 97 Main window created
2005-09-02 17:07:49,020 DEBUG windowmain 103 Frame <wx._windows.Frame;
proxy of C++ wxFrame instance at _b8dd9401_p_wxFrame>
2005-09-02 17:07:49,145 INFO firebird 195 Starting up the database

However when i run py2exe on my app and run it then i don't see the file
name anymore. Instead it says __init__:

2005-09-06 16:01:17,098 INFO __init__ 1032 Main window created
2005-09-06 16:01:17,615 DEBUG __init__ 1032 Frame <wx._windows.Frame;
proxy of C++ wxFrame instance at _d8057f01_p_wxFrame>
2005-09-06 16:01:17,677 INFO __init__ 1032 Starting up the database

Any ideas on how to solve this?

Thanks,
Benedict
Sep 6 '05 #1
2 1116
flupke <fl****@nonexistingdomain.com> writes:
Hi,

when i run my program and use the logging component, i see this:

2005-09-02 17:07:48,193 INFO windowmain 97 Main window created
2005-09-02 17:07:49,020 DEBUG windowmain 103 Frame <wx._windows.Frame;
proxy of C++ wxFrame instance at _b8dd9401_p_wxFrame>
2005-09-02 17:07:49,145 INFO firebird 195 Starting up the database

However when i run py2exe on my app and run it then i don't see the
file name anymore. Instead it says __init__:

2005-09-06 16:01:17,098 INFO __init__ 1032 Main window created
2005-09-06 16:01:17,615 DEBUG __init__ 1032 Frame <wx._windows.Frame;
proxy of C++ wxFrame instance at _d8057f01_p_wxFrame>
2005-09-06 16:01:17,677 INFO __init__ 1032 Starting up the database

Any ideas on how to solve this?


This has been discussed on the py2exe-users lists, and a fix was found
by David Hess. Fortunately he added it to the wiki:

http://starship.python.net/crew/thel.../LoggingModule

Thomas
Sep 6 '05 #2
Thomas Heller wrote:
<snip>
This has been discussed on the py2exe-users lists, and a fix was found
by David Hess. Fortunately he added it to the wiki:

http://starship.python.net/crew/thel.../LoggingModule

Thomas


Cool, thanks Thomas, i'll give that a whirl

Benedict
Sep 7 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: RJS | last post by:
Hi all, I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32- py2.2). Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222. In the sample below, commenting out...
20
by: Thomas Heller | last post by:
I'm currently working on a new version of py2exe, which will require Python 2.3 and later, because it uses the zipimport mechanism. Since py2exe is a distutils extension, and since C compilers...
2
by: Stefan Behrens | last post by:
Hi, does anybody know how I can get py2exe to work with wxPython's wxCalendarCtrl? Currently, I have just a "standard" setup.py, and py2exe gives me a syntax error. Do I need to include any...
1
by: Marc | last post by:
Hello, I've fiddled with this for quite a while and thought I had the problem solved. I had a version that would successfully compile and run. But then I had to change the code to use a...
2
by: garyr | last post by:
I'm using py2exe to create a standalone program that uses pyparallel. When I run the created program an error occurs and a message directs me to the log file which contains: Traceback (most...
0
by: jantod | last post by:
I am trying to package my application with py2exe. Unfortunately it uses both scipy/numpy and numarray so I'm having to jump through a lot of hoops to get it going. I'm getting problems packaging...
2
by: Maria.Reinhammar | last post by:
I have an app using active_directory.py and the std module asyncore in a Windows Service. Works perfectly! That is, until I try to use py2exe to create a standalone (need to avoid installing the...
0
by: Karlo Lozovina | last post by:
I've just upgraded to Python 2.5, SQLAlchemy 0.3.3, and py2exe 0.6.5 (the py2.5 version, yes). Simple: --- import sqlalchemy print 'Test' ---
3
by: vajratkarviraj | last post by:
i hav python2.5, matplotlib0.90.1, and py2exe for python 2.5 all on windows xp... i hav a python program(letsc.py) which uses the matplotlib package... and i want 2 make an exe of it for distribution...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.