py2exe uses __init__ for class names when logging

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • flupke

    #1

    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.Fr ame;
    proxy of C++ wxFrame instance at _b8dd9401_p_wxF rame>
    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.Fr ame;
    proxy of C++ wxFrame instance at _d8057f01_p_wxF rame>
    2005-09-06 16:01:17,677 INFO __init__ 1032 Starting up the database

    Any ideas on how to solve this?

    Thanks,
    Benedict
  • Thomas Heller

    #2
    Re: py2exe uses __init__ for class names when logging

    flupke <flupke@nonexis tingdomain.com> writes:
    [color=blue]
    > 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.Fr ame;
    > proxy of C++ wxFrame instance at _b8dd9401_p_wxF rame>
    > 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.Fr ame;
    > proxy of C++ wxFrame instance at _d8057f01_p_wxF rame>
    > 2005-09-06 16:01:17,677 INFO __init__ 1032 Starting up the database
    >
    > Any ideas on how to solve this?[/color]

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



    Thomas

    Comment

    • flupke

      #3
      Re: py2exe uses __init__ for class names when logging

      Thomas Heller wrote:
      <snip>
      [color=blue]
      > 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[/color]

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

      Benedict

      Comment

      Working...