From: Thomas H. <th...@py...> - 2004-11-18 17:28:24
|
aurora <aur...@gm...> writes: > I've just gone through the advance example and created a win32 service. > I've done C++ service and it was never as easy as py2exe. py2exe rocks! > > I do encountered one problem below: > > running py2exe > *** generate typelib stubs *** > Traceback (most recent call last): > File "D:\Program > Files\Python23\Lib\site-packages\py2exe\samples\advanced\setup.py", line > 134, in ? > windows = [test_wx], > File "D:\PROGRA~1\Python23\lib\distutils\core.py", line 149, in setup > dist.run_commands() > File "D:\PROGRA~1\Python23\lib\distutils\dist.py", line 907, in > run_commands > self.run_command(cmd) > File "D:\PROGRA~1\Python23\lib\distutils\dist.py", line 927, in > run_command > cmd_obj.run() > File "D:\PROGRA~1\Python23\Lib\site-packages\py2exe\build_exe.py", line > 183, in run > self._run() > File "D:\PROGRA~1\Python23\Lib\site-packages\py2exe\build_exe.py", line > 214, in _run > self.typelibs) > File "D:\PROGRA~1\Python23\Lib\site-packages\py2exe\build_exe.py", line > 1252, in collect_win32com_genpy > makepy.GenerateFromTypeLibSpec(info, bForDemand = False) > File "D:\PROGRA~1\Python23\lib\site-packages\win32com\client\makepy.py", > line 194, in GenerateFromTypeLibSpec > tlb = pythoncom.LoadRegTypeLib(typelibCLSID, major, minor, lcid) > pywintypes.com_error: (-2147319779, 'Library not registered.', None, None) > > > After some research it seems that the example make use of a WMI module. > I'm not sure what it is but it seems that it is not essential for making a > service. So I take the liberty and removed a few WMI related stuff from > setup.py to get it work. Just what to make sure what I did is OK. And I > wonder if it make sense to break down the advance example to one related > to WMI and another one that does not so that it has less dependency. The advanced sample shows advanced techinques, so I dont't think I want to fix it. After all, you figured it out! If you want to suggest some explanation to insert into the adnvanced setup script, I'll accept a patch ;-). Thomas |