{"action":"created","issue":{"url":"https://api.github.com/repos/madmaze/pytesseract/issues/165","repository_url":"https://api.github.com/repos/madmaze/pytesseract","labels_url":"https://api.github.com/repos/madmaze/pytesseract/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/madmaze/pytesseract/issues/165/comments","events_url":"https://api.github.com/repos/madmaze/pytesseract/issues/165/events","html_url":"https://github.com/madmaze/pytesseract/issues/165","id":385667727,"node_id":"MDU6SXNzdWUzODU2Njc3Mjc=","number":165,"title":"ResourceWarning","user":{"login":"flavie-lancereau","id":6460311,"node_id":"MDQ6VXNlcjY0NjAzMTE=","avatar_url":"https://avatars0.githubusercontent.com/u/6460311?v=4","gravatar_id":"","url":"https://api.github.com/users/flavie-lancereau","html_url":"https://github.com/flavie-lancereau","followers_url":"https://api.github.com/users/flavie-lancereau/followers","following_url":"https://api.github.com/users/flavie-lancereau/following{/other_user}","gists_url":"https://api.github.com/users/flavie-lancereau/gists{/gist_id}","starred_url":"https://api.github.com/users/flavie-lancereau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flavie-lancereau/subscriptions","organizations_url":"https://api.github.com/users/flavie-lancereau/orgs","repos_url":"https://api.github.com/users/flavie-lancereau/repos","events_url":"https://api.github.com/users/flavie-lancereau/events{/privacy}","received_events_url":"https://api.github.com/users/flavie-lancereau/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-11-29T10:29:22Z","updated_at":"2018-11-30T12:00:05Z","closed_at":"2018-11-30T07:53:26Z","author_association":"NONE","body":"Hello,\r\n\r\nI have 2 ResourceWarning message when using image_to_data. \r\n> .local/lib/python3.6/site-packages/pytesseract/pytesseract.py:202: ResourceWarning: unclosed file <_io.BufferedWriter name=4>\r\n  run_tesseract(**kwargs)\r\n.local/lib/python3.6/site-packages/pytesseract/pytesseract.py:202: ResourceWarning: unclosed file <_io.BufferedReader name=5>\r\n  run_tesseract(**kwargs)\r\n\r\ncode to reproduce:\r\n```\r\nfrom pytesseract import image_to_data\r\nimport warnings\r\n\r\nif __name__ == '__main__':\r\n    warnings.filterwarnings('default', category=ResourceWarning)\r\n    img = test.jpg'\r\n    datas = image_to_data(img)\r\n```\r\n\r\npytesseract version: 0.2.5\r\npillow version: 5.3.0"},"comment":{"url":"https://api.github.com/repos/madmaze/pytesseract/issues/comments/443183062","html_url":"https://github.com/madmaze/pytesseract/issues/165#issuecomment-443183062","issue_url":"https://api.github.com/repos/madmaze/pytesseract/issues/165","id":443183062,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzE4MzA2Mg==","user":{"login":"int3l","id":1278836,"node_id":"MDQ6VXNlcjEyNzg4MzY=","avatar_url":"https://avatars3.githubusercontent.com/u/1278836?v=4","gravatar_id":"","url":"https://api.github.com/users/int3l","html_url":"https://github.com/int3l","followers_url":"https://api.github.com/users/int3l/followers","following_url":"https://api.github.com/users/int3l/following{/other_user}","gists_url":"https://api.github.com/users/int3l/gists{/gist_id}","starred_url":"https://api.github.com/users/int3l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/int3l/subscriptions","organizations_url":"https://api.github.com/users/int3l/orgs","repos_url":"https://api.github.com/users/int3l/repos","events_url":"https://api.github.com/users/int3l/events{/privacy}","received_events_url":"https://api.github.com/users/int3l/received_events","type":"User","site_admin":false},"created_at":"2018-11-30T12:00:05Z","updated_at":"2018-11-30T12:00:05Z","author_association":"COLLABORATOR","body":"@flavie-lancereau usually it takes one or two weeks after we have the published release in github. This gives us time to test and fix potential problems. I will publish the 0.2.6 today."}}
{"actor":{"display_login":"int3l"}}