{"action":"created","issue":{"url":"https://api.github.com/repos/cloudmatrix/esky/issues/114","labels_url":"https://api.github.com/repos/cloudmatrix/esky/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/cloudmatrix/esky/issues/114/comments","events_url":"https://api.github.com/repos/cloudmatrix/esky/issues/114/events","html_url":"https://github.com/cloudmatrix/esky/issues/114","id":120644990,"number":114,"title":"Unable to get admin rights","user":{"login":"JPFrancoia","id":2399090,"avatar_url":"https://avatars.githubusercontent.com/u/2399090?v=3","gravatar_id":"","url":"https://api.github.com/users/JPFrancoia","html_url":"https://github.com/JPFrancoia","followers_url":"https://api.github.com/users/JPFrancoia/followers","following_url":"https://api.github.com/users/JPFrancoia/following{/other_user}","gists_url":"https://api.github.com/users/JPFrancoia/gists{/gist_id}","starred_url":"https://api.github.com/users/JPFrancoia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JPFrancoia/subscriptions","organizations_url":"https://api.github.com/users/JPFrancoia/orgs","repos_url":"https://api.github.com/users/JPFrancoia/repos","events_url":"https://api.github.com/users/JPFrancoia/events{/privacy}","received_events_url":"https://api.github.com/users/JPFrancoia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-12-06T16:49:02Z","updated_at":"2015-12-06T18:25:41Z","closed_at":null,"body":"Hi again, I think I get all the possible issues with Esky...But for sure, Esky will be soon dead stable :)\r\n\r\nI'm trying to get admin rights through the function call ```app.get_root()```. I need them because when my program is installed on the user's computer, the executable files are in the system files/directories. Ex: C:\\Program Files\\.\r\n\r\nBut app.get_root() causes an exception on both Windows and Linux (I haven't tried yet on OSX).\r\n\r\nOn Linux:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/home/djipey/informatique/python/ChemBrows/updater.py\", line 59, in run\r\n    self.app.get_root()\r\n  File \"/usr/lib/python3.5/site-packages/esky/__init__.py\", line 312, in get_root\r\n    self.sudo_proxy.start()\r\n  File \"/usr/lib/python3.5/site-packages/esky/sudo/__init__.py\", line 140, in start\r\n    self.close()\r\n  File \"/usr/lib/python3.5/site-packages/esky/sudo/__init__.py\", line 156, in close\r\n    self.pipe.read()\r\n  File \"/usr/lib/python3.5/site-packages/esky/sudo/sudo_base.py\", line 123, in read\r\n    raise EOFError\r\nEOFError\r\n```\r\n\r\nSo I modified sudo_base.py to get infos:\r\n\r\n```\r\n        self.check_connection()\r\n        sz = self._read(4)\r\n        print(len(sz))\r\n        print(sz)\r\n        if len(sz) < 4:\r\n            raise EOFError\r\n```\r\n\r\nAnd when I run my program, I get:\r\n```\r\n0\r\nb''\r\n```\r\n\r\nSo I guess there is a problem with the object SecureStringPipe.\r\n\r\nAlso, I sometimes have another exception, still on Linux:\r\n```\r\nTraceback (most recent call last):\r\n  File \"/home/djipey/informatique/python/ChemBrows/updater.py\", line 59, in run\r\n    self.app.get_root()\r\n  File \"/usr/lib/python3.5/site-packages/esky/__init__.py\", line 312, in get_root\r\n    self.sudo_proxy.start()\r\n  File \"/usr/lib/python3.5/site-packages/esky/sudo/__init__.py\", line 136, in start\r\n    msg = self.pipe.read()\r\n  File \"/usr/lib/python3.5/site-packages/esky/sudo/sudo_base.py\", line 121, in read\r\n    sz = self._read(4)\r\n  File \"/usr/lib/python3.5/site-packages/esky/sudo/sudo_unix.py\", line 82, in _read\r\n    return os.read(self.rfd,size)\r\nOSError: [Errno 9] Mauvais descripteur de fichier\r\n```\r\n\r\nIt randomly appears, but the first one is the main one.\r\n\r\nOn windows:\r\n\r\n```\r\n  File \"C:\\Users\\djipey\\Desktop\\ChemBrows_freeze\\updater.py\", line 59, in run\r\n    self.app.get_root()\r\n  File \"C:\\Python34\\lib\\site-packages\\esky\\__init__.py\", line 312, in get_root\r\n    self.sudo_proxy.start()\r\n  File \"C:\\Python34\\lib\\site-packages\\esky\\sudo\\__init__.py\", line 123, in start\r\n    (self.proc,self.pipe) = spawn_sudo(self)\r\n  File \"C:\\Python34\\lib\\site-packages\\esky\\sudo\\__init__.py\", line 83, in spawn_sudo\r\n    return _impl.spawn_sudo(proxy)\r\n  File \"C:\\Python34\\lib\\site-packages\\esky\\sudo\\sudo_win32.py\", line 313, in spawn_sudo\r\n    execinfo.lpVerb = \"runas\"\r\nTypeError: bytes or integer address expected instead of str instance\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cloudmatrix/esky/issues/comments/162334595","html_url":"https://github.com/cloudmatrix/esky/issues/114#issuecomment-162334595","issue_url":"https://api.github.com/repos/cloudmatrix/esky/issues/114","id":162334595,"user":{"login":"timeyyy","id":6135075,"avatar_url":"https://avatars.githubusercontent.com/u/6135075?v=3","gravatar_id":"","url":"https://api.github.com/users/timeyyy","html_url":"https://github.com/timeyyy","followers_url":"https://api.github.com/users/timeyyy/followers","following_url":"https://api.github.com/users/timeyyy/following{/other_user}","gists_url":"https://api.github.com/users/timeyyy/gists{/gist_id}","starred_url":"https://api.github.com/users/timeyyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timeyyy/subscriptions","organizations_url":"https://api.github.com/users/timeyyy/orgs","repos_url":"https://api.github.com/users/timeyyy/repos","events_url":"https://api.github.com/users/timeyyy/events{/privacy}","received_events_url":"https://api.github.com/users/timeyyy/received_events","type":"User","site_admin":false},"created_at":"2015-12-06T18:25:41Z","updated_at":"2015-12-06T18:25:41Z","body":"aha... so you are also missing\r\ntest_esky_cxfreeze\r\nhave you got cxfreeze installed on python2?"}}