问题描述
我们即将开始使用 Esky 为我们的应用程序部署更新.在 Windows 7 上,Esky 似乎无法获得安装更新所需的升级权限.
We're about to start using Esky to deploy updates to our application. On Windows 7, Esky appears to be unable to get the escalated privileges it needs to install an update.
我已将范围缩小到这个简单的脚本.它要求提升权限,但会冻结,或因下面的堆栈跟踪而崩溃.
I've narrowed it down to this simple script. It asks for escalated permissions, but will either freeze, or crash with the stacktrace below.
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
有没有人知道解决方案,或者有什么建议?
Does anyone know of a solution, or have any suggestions?
使用:
- python 2.7.3
- esky 0.9.7
推荐答案
3 年没有答案,很伤心 :(
3 years and no answer that is very sad :(
这是 esky 中的一个错误.
This is a bug in esky.
除了提权失败之外,Esky 对我来说效果很好.
Esky works fine for me besides the fact that escalating privileges fails.
我习惯于在 python3 中编程......所以一旦我完成更新 Esky 以兼容 python 2 和 3,我将解决这个问题.
I'm used to programming in python3... so once I'm done updating Esky to be python 2 and 3 compatible I'm going to tackle this issue.
如果有人想解决这个问题,让我们摇滚吧!到 github 问题跟踪器!
If anyone wants to solve this problem let's rock and roll! To the github issue tracker!
这篇关于在 Windows 7 上升级权限后 Esky 冻结的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!