{"action":"opened","issue":{"url":"https://api.github.com/repos/WladimirSidorenko/DiscourseSegmenter/issues/2","labels_url":"https://api.github.com/repos/WladimirSidorenko/DiscourseSegmenter/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/WladimirSidorenko/DiscourseSegmenter/issues/2/comments","events_url":"https://api.github.com/repos/WladimirSidorenko/DiscourseSegmenter/issues/2/events","html_url":"https://github.com/WladimirSidorenko/DiscourseSegmenter/issues/2","id":112021488,"number":2,"title":"binary model not compatible with python3","user":{"login":"WladimirSidorenko","id":1080754,"avatar_url":"https://avatars.githubusercontent.com/u/1080754?v=3","gravatar_id":"","url":"https://api.github.com/users/WladimirSidorenko","html_url":"https://github.com/WladimirSidorenko","followers_url":"https://api.github.com/users/WladimirSidorenko/followers","following_url":"https://api.github.com/users/WladimirSidorenko/following{/other_user}","gists_url":"https://api.github.com/users/WladimirSidorenko/gists{/gist_id}","starred_url":"https://api.github.com/users/WladimirSidorenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WladimirSidorenko/subscriptions","organizations_url":"https://api.github.com/users/WladimirSidorenko/orgs","repos_url":"https://api.github.com/users/WladimirSidorenko/repos","events_url":"https://api.github.com/users/WladimirSidorenko/events{/privacy}","received_events_url":"https://api.github.com/users/WladimirSidorenko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/WladimirSidorenko/DiscourseSegmenter/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"WladimirSidorenko","id":1080754,"avatar_url":"https://avatars.githubusercontent.com/u/1080754?v=3","gravatar_id":"","url":"https://api.github.com/users/WladimirSidorenko","html_url":"https://github.com/WladimirSidorenko","followers_url":"https://api.github.com/users/WladimirSidorenko/followers","following_url":"https://api.github.com/users/WladimirSidorenko/following{/other_user}","gists_url":"https://api.github.com/users/WladimirSidorenko/gists{/gist_id}","starred_url":"https://api.github.com/users/WladimirSidorenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WladimirSidorenko/subscriptions","organizations_url":"https://api.github.com/users/WladimirSidorenko/orgs","repos_url":"https://api.github.com/users/WladimirSidorenko/repos","events_url":"https://api.github.com/users/WladimirSidorenko/events{/privacy}","received_events_url":"https://api.github.com/users/WladimirSidorenko/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-10-18T13:51:14Z","updated_at":"2015-10-18T13:51:14Z","closed_at":null,"body":"Delivered pre-built model cannot be unpacked when using python3.\r\n\r\nSteps:\r\n1. Install and activate python3 using virtualenv:\r\n```shell\r\nvirtualenv -p python3.3 --no-site-packages venv-3.3\r\ncd venv-3.3/\r\n. bin/activate\r\n``` \r\n2. Install `dsegmenter` in new environment:\r\n```shell\r\ngit clone git@github.com:WladimirSidorenko/DiscourseSegmenter.git\r\npip install -r DiscourseSegmenter/requirements.txt -e DiscourseSegmenter/\r\n```\r\n\r\n3. Test installed package on file:\r\n```shell\r\ndiscourse_segmenter bparseg segment DiscourseSegmenter/examples/bpar/maz-8727.exb.bpar\r\n```\r\n\r\n4. Current output:\r\n```\r\nTraceback (most recent call last):\r\n  File \"/home/sidorenko/sandbox/venv-3.3/bin/discourse_segmenter\", line 6, in <module>\r\n    exec(compile(open(__file__).read(), __file__, 'exec'))\r\n  File \"/home/sidorenko/sandbox/venv-3.3/DiscourseSegmenter/scripts/discourse_segmenter\", line 318, in <module>\r\n    main(sys.argv[1:])\r\n  File \"/home/sidorenko/sandbox/venv-3.3/DiscourseSegmenter/scripts/discourse_segmenter\", line 307, in main\r\n    segmenter = BparSegmenter(a_model = args.model)\r\n  File \"/home/sidorenko/sandbox/venv-3.3/DiscourseSegmenter/dsegmenter/bparseg/bparsegmenter.py\", line 373, in __init__\r\n    self._update_segmenter(a_model)\r\n  File \"/home/sidorenko/sandbox/venv-3.3/DiscourseSegmenter/dsegmenter/bparseg/bparsegmenter.py\", line 550, in _update_segmenter\r\n    self.model = joblib.load(a_model)\r\n  File \"/home/sidorenko/sandbox/venv-3.3/lib/python3.3/site-packages/sklearn/externals/joblib/numpy_pickle.py\", line 425, in load\r\n    obj = unpickler.load()\r\n  File \"/usr/lib64/python3.3/pickle.py\", line 840, in load\r\n    dispatch[key[0]](self)\r\n  File \"/usr/lib64/python3.3/pickle.py\", line 985, in load_short_binstring\r\n    value = str(data, self.encoding, self.errors)\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xb1 in position 1: ordinal not in range(128)\r\n```\r\n\r\n5. Expected:\r\nSegmented file"}}