我正在使用killableprocess包(建立在子进程之上)运行进程 每当我在脚本中运行“killableprocess.Popen(command)”代码段时,以下错误:WindowsError [错误5]访问被拒绝
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运行脚本,但没有帮助。 试图寻找类似的帖子,但没有找到任何好的解决方案。希望在这里找到一些帮助 我在Windows上运行,特别是Windows 7旗舰版x64,如果它有任何帮助。
感谢
取出括号中的'process.pid()'(“类型错误:‘诠释’对象不是可调用“) – 2011-06-08 17:42:50