Python2.3 and win32all wmi problems.
Murtaza Hakim
murtaza_hakim at yahoo.com
Tue Jun 3 15:21:22 EDT 2003
Hi,
I downloaded the Python2.3b1 software and the win32all package. I
am observing that when I try to access the Windows Management
Instrumentation (WMI) classes I get a traceback. This operation works
fine using Python 2.2.
The code generating the traceback is as follows: ::
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)
Thanks,
Murtaza.
More information about the Python-list
mailing list