Esky freezes after increasing resolution on windows 7

We are going to start using Esky to deploy updates for our application. On Windows 7, Esky does not seem to be able to get the elevated privileges required to install the update.

I narrowed it down to this simple script. It requests elevated permissions, but it either freezes or breaks using stacktrace below.

Script

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()

Stack trace

$ 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?

Using:

  • python 2.7.3
  • esky 0.9.7
+5
source share
2 answers

3 years, and there is no answer, which is very sad: (

This is a mistake in esky.

Esky works great for me, except that escalating privileges fails.

python3... , Esky, python 2 3, .

- , --! github!

0

, , sudo python your_program.py.

-1

All Articles