[python-win32] [Fwd: Re: wmi module error on ActivePython 2.4.1 Build 245]

Javier Jarava javier at jarava.com
Tue Aug 16 22:16:51 CEST 2005


As per the request of Tim Golden, I'm cc-ing this email to the list ;)



-------- Original Message --------
Subject: 	Re: wmi module error on ActivePython 2.4.1 Build 245
Date: 	Tue, 16 Aug 2005 19:56:00 +0100
From: 	Tim Golden <mail at timgolden.me.uk>
To: 	Javier Jarava <javier at jarava.com>
References: 	<430235A2.1070408 at jarava.com>



Javier Jarava wrote:
> Hi!
> 
> Just installed (or, rather, re-installed) your wmi module on my new 
> computer:
> 
> I unzipped to c:\tmp\wmp-py, run "python setup.py install".
> 
> I open a new python shell, and I get:
> 
> ActivePython 2.4.1 Build 245 (ActiveState Corp.) based on
> Python 2.4.1 (#65, Mar 30 2005, 09:33:37) [MSC v.1310 32 bit (Intel)] on 
> win32
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> import wmi
> Traceback (most recent call last):
>  File "<stdin>", line 1, in ?
>  File "C:\Python24\Lib\site-packages\wmi.py", line 137, in ?
>    win32com.client.gencache.EnsureDispatch (obj._oleobj_)
>  File "C:\Python24\Lib\site-packages\win32com\client\gencache.py", line 
> 541, in EnsureDispatch
>    mod = EnsureModule(tla[0], tla[1], tla[3], tla[4], 
> bForDemand=bForDemand)
>  File "C:\Python24\Lib\site-packages\win32com\client\gencache.py", line 
> 398, in EnsureModule
>    module = GetModuleForTypelib(typelibCLSID, lcid, major, minor)
>  File "C:\Python24\Lib\site-packages\win32com\client\gencache.py", line 
> 263, in GetModuleForTypelib
>    mod = _GetModule(modName)
>  File "C:\Python24\Lib\site-packages\win32com\client\gencache.py", line 
> 634, in _GetModule
>    mod = __import__(mod_name)
>  File 
> "C:\Python24\lib\site-packages\win32com\gen_py\565783C6-CB41-11D1-8B02-00600806D9B6x0x1x2\__init__.py", 
> 
> line 260
>        '{D6BDAFB2-9435-491F-BB87-6AA0F0BC31A2}' : 'SWbemObjectEx',
>                                                                ^
> SyntaxError: invalid syntax

Thanks for the info. I've got no idea what the problem
might be, unfortunately. I remember someone saying recently
that they were having problems with some build of pywin32
(which is the most likely prospect) but I don't remember
what. Could you copy the email to the python-win32 list?
Maybe someone there can spot the problem. I don't think
it's specific to wmi.

TJG



More information about the Python-win32 mailing list