{"action":"created","issue":{"url":"https://api.github.com/repos/Lekensteyn/lglaf/issues/6","repository_url":"https://api.github.com/repos/Lekensteyn/lglaf","labels_url":"https://api.github.com/repos/Lekensteyn/lglaf/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Lekensteyn/lglaf/issues/6/comments","events_url":"https://api.github.com/repos/Lekensteyn/lglaf/issues/6/events","html_url":"https://github.com/Lekensteyn/lglaf/issues/6","id":147521675,"number":6,"title":"Windows 10 file read failed","user":{"login":"IndustrialMuffin","id":6829019,"avatar_url":"https://avatars.githubusercontent.com/u/6829019?v=3","gravatar_id":"","url":"https://api.github.com/users/IndustrialMuffin","html_url":"https://github.com/IndustrialMuffin","followers_url":"https://api.github.com/users/IndustrialMuffin/followers","following_url":"https://api.github.com/users/IndustrialMuffin/following{/other_user}","gists_url":"https://api.github.com/users/IndustrialMuffin/gists{/gist_id}","starred_url":"https://api.github.com/users/IndustrialMuffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IndustrialMuffin/subscriptions","organizations_url":"https://api.github.com/users/IndustrialMuffin/orgs","repos_url":"https://api.github.com/users/IndustrialMuffin/repos","events_url":"https://api.github.com/users/IndustrialMuffin/events{/privacy}","received_events_url":"https://api.github.com/users/IndustrialMuffin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-04-11T19:01:54Z","updated_at":"2016-11-06T11:44:01Z","closed_at":null,"body":"Running on Windows 10, I had trouble with file operations.  Made a few changes and it worked:\n\n```\nimport os\nclass FileCommunication(Communication):\n    def __init__(self, file_path):\n        super(FileCommunication, self).__init__()\n        if sys.version_info[0] >= 3:\n            self.f = os.open(file_path, os.O_RDWR | os.O_BINARY)\n        else:\n            self.f = os.open(file_path, os.O_RDWR | os.O_BINARY)\n    def _read(self, n, timeout=None):\n        try:\n            return os.read(self.f,n)\n        except IOError as e:\n            _logger.warning(\"failed to read\")\n            raise e\n    def write(self, data):\n        os.write(self.f,data)\n    def close(self):\n        os.close(self.f)\n```\n"},"comment":{"url":"https://api.github.com/repos/Lekensteyn/lglaf/issues/comments/258675661","html_url":"https://github.com/Lekensteyn/lglaf/issues/6#issuecomment-258675661","issue_url":"https://api.github.com/repos/Lekensteyn/lglaf/issues/6","id":258675661,"user":{"login":"Lekensteyn","id":164530,"avatar_url":"https://avatars.githubusercontent.com/u/164530?v=3","gravatar_id":"","url":"https://api.github.com/users/Lekensteyn","html_url":"https://github.com/Lekensteyn","followers_url":"https://api.github.com/users/Lekensteyn/followers","following_url":"https://api.github.com/users/Lekensteyn/following{/other_user}","gists_url":"https://api.github.com/users/Lekensteyn/gists{/gist_id}","starred_url":"https://api.github.com/users/Lekensteyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lekensteyn/subscriptions","organizations_url":"https://api.github.com/users/Lekensteyn/orgs","repos_url":"https://api.github.com/users/Lekensteyn/repos","events_url":"https://api.github.com/users/Lekensteyn/events{/privacy}","received_events_url":"https://api.github.com/users/Lekensteyn/received_events","type":"User","site_admin":false},"created_at":"2016-11-06T11:44:01Z","updated_at":"2016-11-06T11:44:01Z","body":"Isn't `os.O_RDONLY | os.O_BINARY` sufficient?"}}
{"actor":{"display_login":"Lekensteyn"}}