我们即将开始使用Esky将更新部署到我们的应用程序。在 Windows 7 上,Esky 似乎无法获得安装更新所需的升级权限。
我已将其范围缩小到这个简单的脚本。它要求升级权限,但会冻结,或与下面的堆栈跟踪崩溃。
脚本
import esky
import esky.sudo
class MyProgram(object):
@esky.sudo.allow_from_sudo()
def do_stuff(self):
pass
app = MyProgram()
sapp = esky.sudo.SudoProxy(app)
sapp.start()
sapp.do_stuff()
sapp.drop_root()
堆栈跟踪
$ python test.py
Traceback (most recent call last):
File "test.py", line 16, in <module>
sapp.start()
File "c:\Python27\lib\site-packages\esky\sudo\__init__.py", line 125, in start
raise RuntimeError("sudo helper process terminated unexpectedly")
RuntimeError: sudo helper process terminated unexpectedly
$ python test.py
Traceback (most recent call last):
File "test.py", line 16, in <module>
sapp.start()
File "c:\Python27\lib\site-packages\esky\sudo\__init__.py", line 140, in start
self.close()
File "c:\Python27\lib\site-packages\esky\sudo\__init__.py", line 156, in close
self.pipe.read()
File "c:\Python27\lib\site-packages\esky\sudo\sudo_base.py", line 123, in read
raise EOFError
EOFError
有谁知道解决方案,或者有什么建议?
使用:
- 蟒蛇2.7.3
- esky 0.9.7