|
每当我在我的脚本中运行“killableprocess. popen (command)”代码时,我都会使用killableprocess包(构建在子进程之上)来运行进程,我得到以下错误:
File "killableprocess.py", line 157, in _execute_child
winprocess.AssignProcessToJobObject(self._job, hp)
File "winprocess.py", line 37, in ErrCheckBool
raise WinError()
WindowsError [error 5] Access is denied
Exception TypeError: "'NoneType' object is not callable" in <bound method AutoHANDLE.__del__ of <AutoHANDLE object at 0x025D42B0>> ignored
但是当我从python交互式控制台(python 2.6)运行它时,它工作得很好。这可能意味着当我从脚本中运行这个时存在权限问题,但是我不知道如何解决它们。我尝试从我作为管理员运行的cmd运行脚本,但它没有起作用。 |
|