{"action":"created","issue":{"url":"https://api.github.com/repos/ctrl-alt-d/lightpmmlpredictor/issues/1","repository_url":"https://api.github.com/repos/ctrl-alt-d/lightpmmlpredictor","labels_url":"https://api.github.com/repos/ctrl-alt-d/lightpmmlpredictor/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ctrl-alt-d/lightpmmlpredictor/issues/1/comments","events_url":"https://api.github.com/repos/ctrl-alt-d/lightpmmlpredictor/issues/1/events","html_url":"https://github.com/ctrl-alt-d/lightpmmlpredictor/issues/1","id":174213670,"number":1,"title":"NameError: name 'unicode' is not defined","user":{"login":"107Steps","id":18565577,"avatar_url":"https://avatars.githubusercontent.com/u/18565577?v=3","gravatar_id":"","url":"https://api.github.com/users/107Steps","html_url":"https://github.com/107Steps","followers_url":"https://api.github.com/users/107Steps/followers","following_url":"https://api.github.com/users/107Steps/following{/other_user}","gists_url":"https://api.github.com/users/107Steps/gists{/gist_id}","starred_url":"https://api.github.com/users/107Steps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/107Steps/subscriptions","organizations_url":"https://api.github.com/users/107Steps/orgs","repos_url":"https://api.github.com/users/107Steps/repos","events_url":"https://api.github.com/users/107Steps/events{/privacy}","received_events_url":"https://api.github.com/users/107Steps/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-31T08:27:15Z","updated_at":"2016-08-31T08:42:18Z","closed_at":null,"body":"When I tried to apply lightpmmlpredictor I found this error:\r\n\r\n### script begins ###\r\nimport pandas as pd\r\nfrom lightpredictor import utils\r\n\r\ntrain = pd.read_csv('P:\\\\python_sample\\\\lightpmmlpredictor-master\\\\sample-data\\\\cd.csv')\r\n\r\npmml_scr = utils.predict('P:\\\\python_sample\\\\lightpmmlpredictor-master\\\\pmml-models\\\\dt.pmml', train)\r\n### script ends ###\r\n\r\n### log begins ###\r\npmml_scr = utils.predict('P:\\\\python_sample\\\\lightpmmlpredictor-master\\\\pmml-models\\\\dt.pmml', train)\r\nTraceback (most recent call last):\r\n\r\n  File \"<ipython-input-14-c3b6c1ce23bc>\", line 1, in <module>\r\n    pmml_scr = utils.predict('P:\\\\python_sample\\\\lightpmmlpredictor-master\\\\pmml-models\\\\dt.pmml', train)\r\n\r\n  File \"P:\\WinPython-64bit-3.4.3.5\\python-3.4.3.amd64\\lib\\site-packages\\lightpredictor\\utils.py\", line 15, in predict\r\n    return predictTreeModel( model, values )\r\n\r\n  File \"P:\\WinPython-64bit-3.4.3.5\\python-3.4.3.amd64\\lib\\site-packages\\lightpredictor\\utils.py\", line 41, in predictTreeModel\r\n    fill = next( e for e in Node\r\n\r\n  File \"P:\\WinPython-64bit-3.4.3.5\\python-3.4.3.amd64\\lib\\site-packages\\lightpredictor\\utils.py\", line 43, in <genexpr>\r\n    unicode(values[ e[0].get('field') ]) == e[0].get('value')  )\r\n\r\nNameError: name 'unicode' is not defined\r\n\r\n### log ends ###\r\n\r\nAny help would be appreciated!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ctrl-alt-d/lightpmmlpredictor/issues/comments/243698095","html_url":"https://github.com/ctrl-alt-d/lightpmmlpredictor/issues/1#issuecomment-243698095","issue_url":"https://api.github.com/repos/ctrl-alt-d/lightpmmlpredictor/issues/1","id":243698095,"user":{"login":"ctrl-alt-d","id":3105983,"avatar_url":"https://avatars.githubusercontent.com/u/3105983?v=3","gravatar_id":"","url":"https://api.github.com/users/ctrl-alt-d","html_url":"https://github.com/ctrl-alt-d","followers_url":"https://api.github.com/users/ctrl-alt-d/followers","following_url":"https://api.github.com/users/ctrl-alt-d/following{/other_user}","gists_url":"https://api.github.com/users/ctrl-alt-d/gists{/gist_id}","starred_url":"https://api.github.com/users/ctrl-alt-d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctrl-alt-d/subscriptions","organizations_url":"https://api.github.com/users/ctrl-alt-d/orgs","repos_url":"https://api.github.com/users/ctrl-alt-d/repos","events_url":"https://api.github.com/users/ctrl-alt-d/events{/privacy}","received_events_url":"https://api.github.com/users/ctrl-alt-d/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T08:42:18Z","updated_at":"2016-08-31T08:42:18Z","body":"Hi 107Steps,\r\n\r\nit looks you are using Python 3, nice. Take a look:\r\n\r\nhttp://stackoverflow.com/a/19877309/842935\r\n\r\nplease, when it runs for you, post a pull request to this repository in order to to be up to date and help other coders.\r\n\r\nregards.\r\n"}}
{"actor":{"display_login":"ctrl-alt-d"}}