py2exe and activex controls

Thomas Heller theller at python.net
Thu Mar 25 06:20:19 EST 2004


Nico Alberti <n8 at toglimi.langhirano.it> 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 ActiveXWrapper_Acrobat.py 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 "acrobat.py", line 123, in ?
>    File "acrobat.py", line 119, in __init__
>    File "acrobat.py", 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.

Thomas





More information about the Python-list mailing list