About wmi

patrol sunp1028 at gmail.com
Tue Jul 15 04:22:01 CEST 2008


Situation (1):
    result = new_process.terminate()
TypeError: 'int' object is not callable

Situation (2):
    result = new_process.terminate()
  File "C:\Python25\lib\wmi.py", line 494, in __getattr__
    handle_com_error (error_info)
  File "C:\Python25\lib\wmi.py", line 190, in handle_com_error
    raise x_wmi, "\n".join (exception_string)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb7 in position
14: ordinal
 not in range(128)

BTW, My windows' languange is Chinese.



More information about the Python-list mailing list