Python2.3 win32all WMI not working?

Murtaza Hakim murtaza_hakim at
Tue Jun 3 01:15:05 CEST 2003

  I just downloaded Python2.3b1 and win32all.  When using the Windows
Management Interface (WMI) from python2.2 everything works fine but
when using python2.3 the following traceback is generated.  Has anyone
seen this and what is the solution?

Python 2.3b1 (#40, Apr 25 2003, 19:06:24) [MSC v.1200 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import win32com.client
>>> c = win32com.client.GetObject('winmgmts:root/cimv2')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "C:\Python23\lib\site-packages\win32com\client\",
line 73, in
    return Moniker(Pathname, clsctx)
  File "C:\Python23\lib\site-packages\win32com\client\",
line 88, in
    moniker, i, bindCtx = pythoncom.MkParseDisplayName(Pathname)
pywintypes.com_error: (-2147221020, 'Invalid syntax', None, None)

More information about the Python-list mailing list