{"action":"created","issue":{"url":"https://api.github.com/repos/sushant10/HQ_Bot/issues/19","repository_url":"https://api.github.com/repos/sushant10/HQ_Bot","labels_url":"https://api.github.com/repos/sushant10/HQ_Bot/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/sushant10/HQ_Bot/issues/19/comments","events_url":"https://api.github.com/repos/sushant10/HQ_Bot/issues/19/events","html_url":"https://github.com/sushant10/HQ_Bot/issues/19","id":301976114,"number":19,"title":"Tesseract error","user":{"login":"kvmsc","id":29640641,"avatar_url":"https://avatars1.githubusercontent.com/u/29640641?v=4","gravatar_id":"","url":"https://api.github.com/users/kvmsc","html_url":"https://github.com/kvmsc","followers_url":"https://api.github.com/users/kvmsc/followers","following_url":"https://api.github.com/users/kvmsc/following{/other_user}","gists_url":"https://api.github.com/users/kvmsc/gists{/gist_id}","starred_url":"https://api.github.com/users/kvmsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvmsc/subscriptions","organizations_url":"https://api.github.com/users/kvmsc/orgs","repos_url":"https://api.github.com/users/kvmsc/repos","events_url":"https://api.github.com/users/kvmsc/events{/privacy}","received_events_url":"https://api.github.com/users/kvmsc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-03-03T07:17:52Z","updated_at":"2018-03-15T08:38:00Z","closed_at":"2018-03-06T00:02:56Z","author_association":"NONE","body":"I don't understand this error.\r\n`sherlock@sherlock` ~/Documents/HQ_Bot-master $ python3 answer_bot.py\r\n\r\nPress s to screenshot live game, sampq to run against sample questions or q to quit:\r\ns\r\nTraceback (most recent call last):\r\n  File \"answer_bot.py\", line 271, in <module>\r\n    get_points_live()\r\n  File \"answer_bot.py\", line 249, in get_points_live\r\n    question,options=parse_question()\r\n  File \"answer_bot.py\", line 106, in parse_question\r\n    text = read_screen()\r\n  File \"answer_bot.py\", line 88, in read_screen\r\n    text = pytesseract.image_to_string(Image.open(filename))\r\n  File \"/usr/local/lib/python3.5/dist-packages/pytesseract/pytesseract.py\", line 193, in image_to_string\r\n    return run_and_get_output(image, 'txt', lang, config, nice)\r\n  File \"/usr/local/lib/python3.5/dist-packages/pytesseract/pytesseract.py\", line 140, in run_and_get_output\r\n    run_tesseract(**kwargs)\r\n  File \"/usr/local/lib/python3.5/dist-packages/pytesseract/pytesseract.py\", line 116, in run_tesseract\r\n    raise TesseractError(status_code, get_errors(error_string))\r\npytesseract.pytesseract.TesseractError: (1, 'Error opening data file /usr/local/share/tessdata/eng.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to your \"tessdata\" directory. Failed loading language \\'eng\\' Tesseract couldn\\'t load any languages! Could not initialize tesseract.'`"},"comment":{"url":"https://api.github.com/repos/sushant10/HQ_Bot/issues/comments/373300239","html_url":"https://github.com/sushant10/HQ_Bot/issues/19#issuecomment-373300239","issue_url":"https://api.github.com/repos/sushant10/HQ_Bot/issues/19","id":373300239,"user":{"login":"yapal","id":37362715,"avatar_url":"https://avatars0.githubusercontent.com/u/37362715?v=4","gravatar_id":"","url":"https://api.github.com/users/yapal","html_url":"https://github.com/yapal","followers_url":"https://api.github.com/users/yapal/followers","following_url":"https://api.github.com/users/yapal/following{/other_user}","gists_url":"https://api.github.com/users/yapal/gists{/gist_id}","starred_url":"https://api.github.com/users/yapal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yapal/subscriptions","organizations_url":"https://api.github.com/users/yapal/orgs","repos_url":"https://api.github.com/users/yapal/repos","events_url":"https://api.github.com/users/yapal/events{/privacy}","received_events_url":"https://api.github.com/users/yapal/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T08:38:00Z","updated_at":"2018-03-15T08:38:00Z","author_association":"NONE","body":"before that this error bro:\r\nTraceback (most recent call last):\r\n  File \"C:\\Python36\\Scripts\\HQ_Bot\\answer_bot.py\", line 280, in <module>\r\n    get_points_live()\r\n  File \"C:\\Python36\\Scripts\\HQ_Bot\\answer_bot.py\", line 258, in get_points_live\r\n    question,options=parse_question()\r\n  File \"C:\\Python36\\Scripts\\HQ_Bot\\answer_bot.py\", line 115, in parse_question\r\n    text = read_screen()\r\n  File \"C:\\Python36\\Scripts\\HQ_Bot\\answer_bot.py\", line 97, in read_screen\r\n    text = pytesseract.image_to_string(Image.open(filename))\r\n  File \"C:\\Python36\\lib\\site-packages\\pytesseract\\pytesseract.py\", line 193, in image_to_string\r\n    return run_and_get_output(image, 'txt', lang, config, nice)\r\n  File \"C:\\Python36\\lib\\site-packages\\pytesseract\\pytesseract.py\", line 140, in run_and_get_output\r\n    run_tesseract(**kwargs)\r\n  File \"C:\\Python36\\lib\\site-packages\\pytesseract\\pytesseract.py\", line 111, in run_tesseract\r\n    proc = subprocess.Popen(command, stderr=subprocess.PIPE)\r\n  File \"C:\\Python36\\lib\\subprocess.py\", line 707, in __init__\r\n    restore_signals, start_new_session)\r\n  File \"C:\\Python36\\lib\\subprocess.py\", line 990, in _execute_child\r\n    startupinfo)\r\nFileNotFoundError: [WinError 2] The system cannot find the file specified\r\n>>> \r\n"}}
{"actor":{"display_login":"yapal"}}