{"action":"opened","issue":{"url":"https://api.github.com/repos/guoci/autokey-py3/issues/33","repository_url":"https://api.github.com/repos/guoci/autokey-py3","labels_url":"https://api.github.com/repos/guoci/autokey-py3/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/guoci/autokey-py3/issues/33/comments","events_url":"https://api.github.com/repos/guoci/autokey-py3/issues/33/events","html_url":"https://github.com/guoci/autokey-py3/issues/33","id":170025070,"number":33,"title":"Update to python-xlib 0.16 breaks AutoKey","user":{"login":"cryzed","id":1429103,"avatar_url":"https://avatars.githubusercontent.com/u/1429103?v=3","gravatar_id":"","url":"https://api.github.com/users/cryzed","html_url":"https://github.com/cryzed","followers_url":"https://api.github.com/users/cryzed/followers","following_url":"https://api.github.com/users/cryzed/following{/other_user}","gists_url":"https://api.github.com/users/cryzed/gists{/gist_id}","starred_url":"https://api.github.com/users/cryzed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cryzed/subscriptions","organizations_url":"https://api.github.com/users/cryzed/orgs","repos_url":"https://api.github.com/users/cryzed/repos","events_url":"https://api.github.com/users/cryzed/events{/privacy}","received_events_url":"https://api.github.com/users/cryzed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-08T21:03:27Z","updated_at":"2016-08-08T21:03:27Z","closed_at":null,"body":"After the recent update to [python-xlib](https://pypi.python.org/pypi/python-xlib) 0.16 AutoKey seems to be broken:\r\n\r\n    $ autokey-qt\r\n    Exception in thread XInterface-thread:\r\n    Traceback (most recent call last):\r\n      File \"/usr/lib/python3.5/threading.py\", line 914, in _bootstrap_inner\r\n        self.run()\r\n      File \"/usr/lib/python3.5/site-packages/autokey/interface.py\", line 1040, in run\r\n        self.recordDisplay.record_enable_context(self.ctx, self.__processEvent)\r\n      File \"/usr/lib/python3.5/site-packages/Xlib/ext/record.py\", line 243, in enable_context\r\n        context = context)\r\n      File \"/usr/lib/python3.5/site-packages/Xlib/ext/record.py\", line 220, in __init__\r\n        rq.ReplyRequest.__init__(self, *args, **keys)\r\n      File \"/usr/lib/python3.5/site-packages/Xlib/protocol/rq.py\", line 1361, in __init__\r\n        self.reply()\r\n      File \"/usr/lib/python3.5/site-packages/Xlib/protocol/rq.py\", line 1373, in reply\r\n        self._display.send_and_recv(request = self._serial)\r\n      File \"/usr/lib/python3.5/site-packages/Xlib/protocol/display.py\", line 576, in send_and_recv\r\n        gotreq = self.parse_response(request)\r\n      File \"/usr/lib/python3.5/site-packages/Xlib/protocol/display.py\", line 668, in parse_response\r\n        gotreq = self.parse_request_response(request) or gotreq\r\n      File \"/usr/lib/python3.5/site-packages/Xlib/protocol/display.py\", line 756, in parse_request_response\r\n        req._parse_response(self.data_recv[:self.recv_packet_len])\r\n      File \"/usr/lib/python3.5/site-packages/Xlib/ext/record.py\", line 224, in _parse_response\r\n        self._callback(r)\r\n      File \"/usr/lib/python3.5/site-packages/autokey/interface.py\", line 1054, in __processEvent\r\n        if not len(reply.data) or reply.data[0] < 2:\r\n    TypeError: unorderable types: str() < int()\r\n\r\nI'm running Arch Linux with the recently updated [python-xlib 0.16-1](https://www.archlinux.org/packages/community/any/python-xlib/)."}}
{"actor":{"display_login":"cryzed"}}