Traceback (most recent call last):
File "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\1.0\visualstudio_py_repl.py", line 375, in run_file_as_main
exec(code, self.exec_mod.__dict__, self.exec_mod.__dict__)
File "G:\c#2010_python\2012_07_16_Sandbox\2012_07_16_Sandbox\Program.py", line 209, in <module>
mysandbox.work()
File "G:\c#2010_python\2012_07_16_Sandbox\2012_07_16_Sandbox\Program.py", line 202, in work
self.Startup()
File "G:\c#2010_python\2012_07_16_Sandbox\2012_07_16_Sandbox\Program.py", line 142, in Startup
process.Terminate()
File "C:\Python26\lib\site-packages\wmi.py", line 431, in __call__
handle_com_error ()
File "C:\Python26\lib\site-packages\wmi.py", line 241, in handle_com_error
raise klass (com_error=err)
x_wmi: <x_wmi: Unexpected COM Error (-2147352567, '\xb7\xa2\xc9\xfa\xd2\xe2\xcd\xe2\xa1\xa3', (0, u'SWbemObjectEx', u'Not found ', None, 0, -2147217406), None)>
2 个解决方案
#1
检查一下 process.Terminate() 的代码实现
#2
错误提示说了:SWbemObjectEx 没有找到
http://technet.microsoft.com/zh-cn/library/aa393743
http://technet.microsoft.com/zh-cn/library/aa393743
#1
检查一下 process.Terminate() 的代码实现
#2
错误提示说了:SWbemObjectEx 没有找到
http://technet.microsoft.com/zh-cn/library/aa393743
http://technet.microsoft.com/zh-cn/library/aa393743