https://bugs.winehq.org/show_bug.cgi?id=44960
Bug ID: 44960 Summary: Unable to use python WMI winmgmts object Product: Wine Version: 3.5 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: wmi&wbemprox Assignee: wine-bugs@winehq.org Reporter: 20917771@student.uwa.edu.au Distribution: ---
Created attachment 61068 --> https://bugs.winehq.org/attachment.cgi?id=61068 A minimal test case
I am trying to use pywin32 to wait on an external process using its PID. I used winetricks WMI. I am using Ubuntu 16.04 LTS with Wine 3.5. I have attached a minimal example of the Python script. I expect it to wait for the other process to complete. Instead, I get the following output and the process exits immediately:
0009:fixme:kerberos:kerberos_SpInstanceInit 65536,0x7e0413a0,(nil): stub 0033:fixme:kerberos:kerberos_SpInstanceInit 65536,0x7e0913a0,(nil): stub 0009:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80004002 for dll L"C:\windows\system32\wbem\wbemdisp.dll" 0009:err:ole:create_server class {172bddf8-ceea-11d1-8b05-00600806d9b6} not registered 0009:fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported 0009:err:ole:CoGetClassObject no class object {172bddf8-ceea-11d1-8b05-00600806d9b6} could be created for context 0x15 0009:err:ole:create_server class {8bc3f05e-d86b-11d0-a075-00c04fb68820} not registered 0009:fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported 0009:err:ole:CoGetClassObject no class object {8bc3f05e-d86b-11d0-a075-00c04fb68820} could be created for context 0x14 Traceback (most recent call last): File "test.py", line 10, in <module> wmi = win32com.client.GetObject('winmgmts:') File "C:\Python27\lib\site-packages\win32com\client__init__.py", line 72, in GetObject return Moniker(Pathname, clsctx) File "C:\Python27\lib\site-packages\win32com\client__init__.py", line 87, in Moniker moniker, i, bindCtx = pythoncom.MkParseDisplayName(Pathname) pywintypes.com_error: (-2147221164, 'REGDB_E_CLASSNOTREG', None, None)