As a follow-up to my previous mail to the list: I've tried to use Tim's "new" 0,6b module and it seems to work OK...
JJ -------- Original Message -------- Subject: Re: wmi module error on ActivePython 2.4.1 Build 245 Date: Tue, 16 Aug 2005 22:11:07 +0200 From: Javier Jarava <[EMAIL PROTECTED]> To: Javier Jarava <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] References: <[EMAIL PROTECTED]> Hi!! Just wanted to telll you that dowloading the 0.6b module, copying on top of wmi.py and re-running "python make install" seems to have solved the problems. At least, "import wmi" doesn't bomb now. Will give it a whirl, to see if all seems to be OK. Just my 0,002 Javier 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 > > > The "odd" thing is that I've used the same .zip on differen computers, > w/o any problems. > > System info: > > Host Name: MERCURY > OS Name: Microsoft Windows XP Professional > OS Version: 5.1.2600 Service Pack 2 Build 2600 > OS Manufacturer: Microsoft Corporation > OS Configuration: Standalone Workstation > OS Build Type: Uniprocessor Free > Registered Owner: Secuware S.L. > Registered Organization: Secuware S.L. > Original Install Date: 12/05/2005, 15:20:26 > System Up Time: 6 Days, 3 Hours, 5 Minutes, 12 Seconds > System Manufacturer: Hewlett-Packard > System Model: HP Compaq nx8220 (PG828ET#ABE) > System type: X86-based PC > Processor(s): 1 Processor(s) Installed. > [01]: x86 Family 6 Model 13 Stepping 8 > GenuineIntel ~1861 Mhz > BIOS Version: HP - 28040520 > Windows Directory: C:\WINDOWS > System Directory: C:\WINDOWS\system32 > Boot Device: \Device\HarddiskVolume1 > System Locale: en-us;English (United States) > Input Locale: es;Spanish (Traditional Sort) > Time Zone: (GMT+01:00) Brussels, Copenhagen, Madrid, > Paris > Total Physical Memory: 1.023 MB > Available Physical Memory: 408 MB > Virtual Memory: Max Size: 2.048 MB > Virtual Memory: Available: 2.008 MB > Virtual Memory: In Use: 40 MB > Page File Location(s): C:\pagefile.sys > NetWork Card(s): 4 NIC(s) Installed. > [01]: Intel(R) PRO/Wireless 2200BG Network > Connection > Connection Name: WLAN > Status: Media disconnected > [02]: 1394 Net Adapter > Connection Name: IEEE1394 > DHCP Enabled: Yes > DHCP Server: N/A > IP address(es) > [03]: VMware Virtual Ethernet Adapter for > VMnet1 > Connection Name: VMnet1 (HOST_ONLY) > DHCP Enabled: No > IP address(es) > [01]: 192.168.101.1 > [04]: VMware Virtual Ethernet Adapter for > VMnet8 > Connection Name: VMnet8 (NAT) > DHCP Enabled: No > IP address(es) > [01]: 192.168.110.1 > > Hope this helps... > > TIA > > Javier Jarava > _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32