py2exe and activex controls

Thomas Heller theller at
Thu Mar 25 12:20:19 CET 2004

Nico Alberti <n8 at> writes:

> First of all sorry should this be a lame question, I tried to look at
> a possible solution in google, but I was not successful.
> I am trying to create an .exe of the from
> the wxPython demo programs. While it runs smoothly in Pythonwin or
> from the command line, the executable file I obtain from py2exe does
> not work and exits with these error messages:
> Traceback (most recent call last):
>    File "", line 123, in ?
>    File "", line 119, in __init__
>    File "", line 41, in __init__
> AttributeError: 'NoneType' object has no attribute 'Pdf'
> 14:53:44: Debug: e:\Projects\wx2.4\src\msw\app.cpp(439):
> 'UnregisterClass(canvas
> )' failed with error 0x00000584 (class has still open windows*.).
> 14:53:44: Debug: e:\Projects\wx2.4\src\msw\app.cpp(446):
> 'UnregisterClass(no red
> raw canvas)' failed with error 0x00000584 (class has still open windows*.)
> Does py2exe need some special tweaking for dealing with wxWindows
> and/or ActiveX calls? Any help would be greatly appreciated.

It could be that you need to include makepy generated typelibs.

You might also ask on the wxPython list, it may be a problem specific
to that.


More information about the Python-list mailing list