Python2.3 win32all WMI not working?
Murtaza Hakim
murtaza_hakim at yahoo.com
Mon Jun 2 19:15:05 EDT 2003
Hi,
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?
c:\nt>c:\Python23\python.exe
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\__init__.py",
line 73, in
GetObject
return Moniker(Pathname, clsctx)
File "C:\Python23\lib\site-packages\win32com\client\__init__.py",
line 88, in
Moniker
moniker, i, bindCtx = pythoncom.MkParseDisplayName(Pathname)
pywintypes.com_error: (-2147221020, 'Invalid syntax', None, None)
>>>
More information about the Python-list
mailing list