Python2.3 win32all WMI not working?

Mark Hammond mhammond at skippinet.com.au
Mon Jun 2 23:49:01 EDT 2003


Murtaza Hakim wrote:

> 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)

Please see 
https://sourceforge.net/tracker/index.php?func=detail&aid=745304&group_id=78018&atid=551954

Mark.





More information about the Python-list mailing list