Py2exe and WMI module

Harald Massa cpl.19.ghum at spamgourmet.com
Mon Jan 26 10:26:56 EST 2004


Hello Olav,

> I have run makepy manually on one all of the above libraries. 

> Microsoft WMI Scripting Library
> WMI ADSI Extension Type Library
> WMICntl Type Library
> 

> Traceback (most recent call last):
>   File "test-fail.py", line 1, in ?
>     import wmi
>   File "wmi.pyc", line 132, in ?
>   File "win32com\client\gencache.pyc", line 527, in EnsureDispatch
>   File "win32com\client\CLSIDToClass.pyc", line 50, in GetClass
> KeyError: '{D2F68443-85DC-427E-91D8-366554CC754C}'
 

Look at:
http://starship.python.net/crew/theller/moin.cgi/Py2Exe

With py2exe 0.5.0 there is an example with WMI (I think it's the 
"advanced" one)

Also there are some troubles with the name of the zip-file and win32all.

Furthermore 0.5.0 got big improvements handlign win32com -Stuff. 

There is also a "typelib"-directive in 0.5.0, so maybe you can force the 
inclusion of typelib {D2F68443-85DC-427E-91D8-366554CC754C}

HTH

Harald



More information about the Python-list mailing list