{"action":"closed","issue":{"url":"https://api.github.com/repos/madmaze/pytesseract/issues/32","repository_url":"https://api.github.com/repos/madmaze/pytesseract","labels_url":"https://api.github.com/repos/madmaze/pytesseract/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/madmaze/pytesseract/issues/32/comments","events_url":"https://api.github.com/repos/madmaze/pytesseract/issues/32/events","html_url":"https://github.com/madmaze/pytesseract/issues/32","id":140019003,"number":32,"title":"Error parsing of tesseract output is brittle: a bytes-like object is required, not 'str'","user":{"login":"barik","id":441243,"avatar_url":"https://avatars3.githubusercontent.com/u/441243?v=3","gravatar_id":"","url":"https://api.github.com/users/barik","html_url":"https://github.com/barik","followers_url":"https://api.github.com/users/barik/followers","following_url":"https://api.github.com/users/barik/following{/other_user}","gists_url":"https://api.github.com/users/barik/gists{/gist_id}","starred_url":"https://api.github.com/users/barik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barik/subscriptions","organizations_url":"https://api.github.com/users/barik/orgs","repos_url":"https://api.github.com/users/barik/repos","events_url":"https://api.github.com/users/barik/events{/privacy}","received_events_url":"https://api.github.com/users/barik/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-03-10T21:48:56Z","updated_at":"2017-04-12T18:01:29Z","closed_at":"2017-04-12T18:01:29Z","body":"When using python 3.5 and [pillow](https://pypi.python.org/pypi/Pillow/3.1.1) (the original PIL library is quite old now), I receive an error on this very simple example:\n\n``` python\nimport pytesseract\n\ntry:\n    import Image\nexcept ImportError:\n    from PIL import Image\n\npytesseract.image_to_string(Image.open('test_image.png'))\n```\n\nThe error is:\n\n```\nTraceback (most recent call last):\n  File \"tesseract_test.py\", line 8, in <module>\n    pytesseract.image_to_string(Image.open('test_image.png'))\n  File \"C:\\Users\\tbarik\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\pytesseract\\pytesseract.py\", line 163, in image_to_string\n    errors = get_errors(error_string)\n  File \"C:\\Users\\tbarik\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\pytesseract\\pytesseract.py\", line 111, in get_errors\n    error_lines = tuple(line for line in lines if line.find('Error') >= 0)\n  File \"C:\\Users\\tbarik\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\pytesseract\\pytesseract.py\", line 111, in <genexpr>\n    error_lines = tuple(line for line in lines if line.find('Error') >= 0)\nTypeError: a bytes-like object is required, not 'str'\n```\n\nI'm using Windows 10, 64-bit, with python x64.\n"}}
{"actor":{"display_login":"int3l"}}