{"action":"created","issue":{"url":"https://api.github.com/repos/madmaze/pytesseract/issues/137","repository_url":"https://api.github.com/repos/madmaze/pytesseract","labels_url":"https://api.github.com/repos/madmaze/pytesseract/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/madmaze/pytesseract/issues/137/comments","events_url":"https://api.github.com/repos/madmaze/pytesseract/issues/137/events","html_url":"https://github.com/madmaze/pytesseract/issues/137","id":339377419,"node_id":"MDU6SXNzdWUzMzkzNzc0MTk=","number":137,"title":"environment can only contain strings","user":{"login":"Ads5740","id":14123185,"node_id":"MDQ6VXNlcjE0MTIzMTg1","avatar_url":"https://avatars3.githubusercontent.com/u/14123185?v=4","gravatar_id":"","url":"https://api.github.com/users/Ads5740","html_url":"https://github.com/Ads5740","followers_url":"https://api.github.com/users/Ads5740/followers","following_url":"https://api.github.com/users/Ads5740/following{/other_user}","gists_url":"https://api.github.com/users/Ads5740/gists{/gist_id}","starred_url":"https://api.github.com/users/Ads5740/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ads5740/subscriptions","organizations_url":"https://api.github.com/users/Ads5740/orgs","repos_url":"https://api.github.com/users/Ads5740/repos","events_url":"https://api.github.com/users/Ads5740/events{/privacy}","received_events_url":"https://api.github.com/users/Ads5740/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-09T09:43:22Z","updated_at":"2018-07-09T12:57:25Z","closed_at":null,"author_association":"NONE","body":"Hi Team,\r\n\r\nI seem to be getting this error\r\n```\r\nTraceback (most recent call last):\r\n  File \"test.py\", line 62, in <module>\r\n    result = pytesseract.image_to_string(image).encode(\"utf-8\")\r\n  File \"C:\\Python27\\lib\\site-packages\\pytesseract\\pytesseract.py\", line 286, in\r\nimage_to_string\r\n    return run_and_get_output(image, 'txt', lang, config, nice)\r\n  File \"C:\\Python27\\lib\\site-packages\\pytesseract\\pytesseract.py\", line 194, in\r\nrun_and_get_output\r\n    run_tesseract(**kwargs)\r\n  File \"C:\\Python27\\lib\\site-packages\\pytesseract\\pytesseract.py\", line 165, in\r\nrun_tesseract\r\n    proc = subprocess.Popen(command, **subprocess_args())\r\n  File \"C:\\Python27\\lib\\subprocess.py\", line 390, in __init__\r\n    errread, errwrite)\r\n  File \"C:\\Python27\\lib\\subprocess.py\", line 640, in _execute_child\r\n    startupinfo)\r\nTypeError: environment can only contain strings\r\n```\r\n\r\nI'm running 0.2.2 version on Python 2.7.13 on windows, not sure why this is now coming up.\r\n\r\nmy test code is simple:\r\n```\r\ntest_file = os.path.join('c:' + os.sep, 'Python27','Lib','site-packages','pytesseract', 'test.png')\r\nimage = Image.open(test_file)\r\nresult = pytesseract.image_to_string(image).encode(\"utf-8\")\r\nprint result\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/madmaze/pytesseract/issues/comments/403469444","html_url":"https://github.com/madmaze/pytesseract/issues/137#issuecomment-403469444","issue_url":"https://api.github.com/repos/madmaze/pytesseract/issues/137","id":403469444,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzQ2OTQ0NA==","user":{"login":"Ads5740","id":14123185,"node_id":"MDQ6VXNlcjE0MTIzMTg1","avatar_url":"https://avatars3.githubusercontent.com/u/14123185?v=4","gravatar_id":"","url":"https://api.github.com/users/Ads5740","html_url":"https://github.com/Ads5740","followers_url":"https://api.github.com/users/Ads5740/followers","following_url":"https://api.github.com/users/Ads5740/following{/other_user}","gists_url":"https://api.github.com/users/Ads5740/gists{/gist_id}","starred_url":"https://api.github.com/users/Ads5740/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ads5740/subscriptions","organizations_url":"https://api.github.com/users/Ads5740/orgs","repos_url":"https://api.github.com/users/Ads5740/repos","events_url":"https://api.github.com/users/Ads5740/events{/privacy}","received_events_url":"https://api.github.com/users/Ads5740/received_events","type":"User","site_admin":false},"created_at":"2018-07-09T12:57:25Z","updated_at":"2018-07-09T12:57:25Z","author_association":"NONE","body":"Cancel, seems like an environmental variable issue, added Tesseract to the path and all good"}}
{"actor":{"display_login":"Ads5740"}}