{"action":"created","issue":{"url":"https://api.github.com/repos/Supervisor/supervisor/issues/663","repository_url":"https://api.github.com/repos/Supervisor/supervisor","labels_url":"https://api.github.com/repos/Supervisor/supervisor/issues/663/labels{/name}","comments_url":"https://api.github.com/repos/Supervisor/supervisor/issues/663/comments","events_url":"https://api.github.com/repos/Supervisor/supervisor/issues/663/events","html_url":"https://github.com/Supervisor/supervisor/issues/663","id":109944572,"number":663,"title":"Py3K: Dispatch: Can't convert 'bytes' object to str implicitly","user":{"login":"palmkevin","id":809345,"avatar_url":"https://avatars.githubusercontent.com/u/809345?v=3","gravatar_id":"","url":"https://api.github.com/users/palmkevin","html_url":"https://github.com/palmkevin","followers_url":"https://api.github.com/users/palmkevin/followers","following_url":"https://api.github.com/users/palmkevin/following{/other_user}","gists_url":"https://api.github.com/users/palmkevin/gists{/gist_id}","starred_url":"https://api.github.com/users/palmkevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palmkevin/subscriptions","organizations_url":"https://api.github.com/users/palmkevin/orgs","repos_url":"https://api.github.com/users/palmkevin/repos","events_url":"https://api.github.com/users/palmkevin/events{/privacy}","received_events_url":"https://api.github.com/users/palmkevin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Supervisor/supervisor/labels/python%203","name":"python 3","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-06T06:46:52Z","updated_at":"2016-03-24T09:59:40Z","closed_at":null,"body":"I get the following error when running the master with Python 3.2:\r\n```\r\n File \"/opt/ls/lx/env/d/python32/supervisor/process.py\", line 825, in dispatch\r\n    ok = self._dispatchEvent(event)\r\n  File \"/opt/ls/lx/env/d/python32/supervisor/process.py\", line 873, in _dispatchEvent\r\n    process.write(as_bytes(envelope))\r\n  File \"/opt/ls/lx/env/d/python32/supervisor/process.py\", line 100, in write\r\n    dispatcher.input_buffer += chars\r\nTypeError: Can't convert 'bytes' object to str implicitly\r\n```\r\n\r\nWhen I do replace in process.py (line 873) ```as_bytes``` by ```as_string```, then it is working..."},"comment":{"url":"https://api.github.com/repos/Supervisor/supervisor/issues/comments/200766261","html_url":"https://github.com/Supervisor/supervisor/issues/663#issuecomment-200766261","issue_url":"https://api.github.com/repos/Supervisor/supervisor/issues/663","id":200766261,"user":{"login":"Pehat","id":1515271,"avatar_url":"https://avatars.githubusercontent.com/u/1515271?v=3","gravatar_id":"","url":"https://api.github.com/users/Pehat","html_url":"https://github.com/Pehat","followers_url":"https://api.github.com/users/Pehat/followers","following_url":"https://api.github.com/users/Pehat/following{/other_user}","gists_url":"https://api.github.com/users/Pehat/gists{/gist_id}","starred_url":"https://api.github.com/users/Pehat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pehat/subscriptions","organizations_url":"https://api.github.com/users/Pehat/orgs","repos_url":"https://api.github.com/users/Pehat/repos","events_url":"https://api.github.com/users/Pehat/events{/privacy}","received_events_url":"https://api.github.com/users/Pehat/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T09:59:40Z","updated_at":"2016-03-24T09:59:40Z","body":"Consider using [six](https://pypi.python.org/pypi/six) package, so you would have the same-named byte-string conversion functions for Python 2 and Python 3 code."}}