Py2exe and WMI module
Olav
nekiv at start.no
Mon Jan 26 08:16:43 EST 2004
I'm having a problem when I try to make a standalone installation of a
Python program using Tim Goldens WMI-module. The py2exe produce the
exe-file as expected, but it fails to execute.
I have run makepy manually on one all of the above libraries.
Microsoft WMI Scripting Library
WMI ADSI Extension Type Library
WMICntl Type Library
test-fail.py (my script)
-----------------------
import wmi
-----------------------
setup.py (my setupscript)
-----------------------
# setup.py
from distutils.core import setup
import py2exe
setup(console=["test-fail.py"])
-----------------------
Output from exe-file:
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}'
Anyone?
regards
Olav
More information about the Python-list
mailing list