"Fred" <FJACQUET@...> writes:
> I'm a newbie on this list, and i'm sending this message in a bottle, hoping someone could Help.
> In fact i write an app using wxpython, and i plan to install it as a stand-alone. So, i tried to use Py2exe.
> Ok, it works fine... Until i try to use an ActiveX Wrapped I.E. window...
> Py2exe still produces an exe, but when i run it, it crashes, with the following .log content
> Traceback (most recent call last):
> File "TestWrapper.pyw", line 232, in ?
> File "TestWrapper.pyw", line 224, in __init__
> File "TestWrapper.pyw", line 53, in __init__
> AttributeError: 'NoneType' object has no attribute 'WebBrowser'
> I tried to do the same with the Wxpython demo exemple, "ActiveXWrapper_IE.py", and i does not works either...
> I think I miss something in the setup file, but WHAT ???
> For info: I use Pyhon 2.3 / Wxpyhon 220.127.116.11u and / Py2exe 0.5.3
I do not know how the active X wrapping in wxpython works - probably it
calls makepy in the background to create a python wrapper for the type
library. py2exe does not know about this module and so doesn't include
it, but it seems to be required. In this case you need to use the
'typelibs' option - py2exe includes a sample
samples\advanced\test_wmi.py which demonstrates this.