{"action":"created","issue":{"url":"https://api.github.com/repos/spotify/luigi/issues/1012","labels_url":"https://api.github.com/repos/spotify/luigi/issues/1012/labels{/name}","comments_url":"https://api.github.com/repos/spotify/luigi/issues/1012/comments","events_url":"https://api.github.com/repos/spotify/luigi/issues/1012/events","html_url":"https://github.com/spotify/luigi/issues/1012","id":89545961,"number":1012,"title":"TypeError: 'str' does not support the buffer interface in luigi.contrib.hive","user":{"login":"red1ynx","id":293450,"avatar_url":"https://avatars.githubusercontent.com/u/293450?v=3","gravatar_id":"","url":"https://api.github.com/users/red1ynx","html_url":"https://github.com/red1ynx","followers_url":"https://api.github.com/users/red1ynx/followers","following_url":"https://api.github.com/users/red1ynx/following{/other_user}","gists_url":"https://api.github.com/users/red1ynx/gists{/gist_id}","starred_url":"https://api.github.com/users/red1ynx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/red1ynx/subscriptions","organizations_url":"https://api.github.com/users/red1ynx/orgs","repos_url":"https://api.github.com/users/red1ynx/repos","events_url":"https://api.github.com/users/red1ynx/events{/privacy}","received_events_url":"https://api.github.com/users/red1ynx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-19T11:56:23Z","updated_at":"2015-06-19T12:11:11Z","closed_at":null,"body":"Hi,\r\n\r\nI'm running luigi task with python3.4 and trying call print(HiveTableTarget(table = \"tbl\", database = \"db\").exists()).\r\nI'm getting error the following stacktrace:\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.4/dist-packages/luigi/worker.py\", line 137, in run\r\n    new_deps = self._run_get_new_deps()\r\n  File \"/usr/local/lib/python3.4/dist-packages/luigi/worker.py\", line 88, in _run_get_new_deps\r\n    task_gen = self.task.run()\r\n  File \"hive.py\", line 10, in run\r\n    print(str(target.exists()))\r\n  File \"/usr/local/lib/python3.4/dist-packages/luigi/contrib/hive.py\", line 376, in exists\r\n    return self.client.table_exists(self.table, self.database)\r\n  File \"/usr/local/lib/python3.4/dist-packages/luigi/contrib/hive.py\", line 141, in table_exists\r\n    return stdout and table.lower() in stdout\r\nTypeError: 'str' does not support the buffer interface\r\n```\r\n\r\nI changed the last line in the stacktrace into \r\n```\r\nreturn stdout and table.lower() in str(stdout)\r\n```\r\nand it works now.\r\n\r\nIs this a bug or do I use wrong python version or something else?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/spotify/luigi/issues/comments/113494226","html_url":"https://github.com/spotify/luigi/issues/1012#issuecomment-113494226","issue_url":"https://api.github.com/repos/spotify/luigi/issues/1012","id":113494226,"user":{"login":"Tarrasch","id":294349,"avatar_url":"https://avatars.githubusercontent.com/u/294349?v=3","gravatar_id":"","url":"https://api.github.com/users/Tarrasch","html_url":"https://github.com/Tarrasch","followers_url":"https://api.github.com/users/Tarrasch/followers","following_url":"https://api.github.com/users/Tarrasch/following{/other_user}","gists_url":"https://api.github.com/users/Tarrasch/gists{/gist_id}","starred_url":"https://api.github.com/users/Tarrasch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tarrasch/subscriptions","organizations_url":"https://api.github.com/users/Tarrasch/orgs","repos_url":"https://api.github.com/users/Tarrasch/repos","events_url":"https://api.github.com/users/Tarrasch/events{/privacy}","received_events_url":"https://api.github.com/users/Tarrasch/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T12:11:11Z","updated_at":"2015-06-19T12:11:11Z","body":"It's probably just that our python 3 users haven't tried out Hive yet. You was the first one. Please add a test case and fix the bug in a PR. :)"}}