Hi,
i download wmi from this:
http://timgolden.me.uk/python/wmi/index.html (windows version)

import wmi
c = wmi.WMI ()

for process in c.Win32_Process ():
  print process.ProcessId, process.Name

And run this script in Python 2.6 IDLE
Show this error:
Traceback (most recent call last):
File "C:\Users\lola\Desktop\test.py", line 1, in <module>
import wmi
File "C:\Python26\lib\site-packages\wmi.py", line 88, in <module>
from win32com.client import GetObject, Dispatch
ImportError: No module named win32com.client

What's wrong?

Recommended Answers

You also need to install the win32 extension module, free from:
http://sourceforge.net/projects/pywin32/files/

Jump to Post

All 2 Replies

thanks a lot

By the way, how show process in linux?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.