payload: {"action":"created","issue":{"url":"https://api.github.com/repos/cloudera/impyla/issues/277","repository_url":"https://api.github.com/repos/cloudera/impyla","labels_url":"https://api.github.com/repos/cloudera/impyla/issues/277/labels{/name}","comments_url":"https://api.github.com/repos/cloudera/impyla/issues/277/comments","events_url":"https://api.github.com/repos/cloudera/impyla/issues/277/events","html_url":"https://github.com/cloudera/impyla/issues/277","id":273330502,"node_id":"MDU6SXNzdWUyNzMzMzA1MDI=","number":277,"title":"Not compatible with PyHive in Python 3 due to dynamic modify TCLIService ","user":{"login":"guyskk","id":6367792,"node_id":"MDQ6VXNlcjYzNjc3OTI=","avatar_url":"https://avatars2.githubusercontent.com/u/6367792?v=4","gravatar_id":"","url":"https://api.github.com/users/guyskk","html_url":"https://github.com/guyskk","followers_url":"https://api.github.com/users/guyskk/followers","following_url":"https://api.github.com/users/guyskk/following{/other_user}","gists_url":"https://api.github.com/users/guyskk/gists{/gist_id}","starred_url":"https://api.github.com/users/guyskk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guyskk/subscriptions","organizations_url":"https://api.github.com/users/guyskk/orgs","repos_url":"https://api.github.com/users/guyskk/repos","events_url":"https://api.github.com/users/guyskk/events{/privacy}","received_events_url":"https://api.github.com/users/guyskk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-11-13T07:12:01Z","updated_at":"2019-08-26T09:11:59Z","closed_at":null,"author_association":"NONE","body":"Package versions:\r\n```\r\nimpyla==0.14.0\r\nthrift==0.10.0\r\nthrift-sasl==0.3.0\r\nthriftpy==0.3.9\r\nsasl==0.2.1\r\nPyHive==0.5.0\r\n```\r\n\r\nReproduce steps:\r\n```python\r\nPython 3.6.3 (default, Oct 24 2017, 14:48:20) \r\n[GCC 7.2.0] on linux\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import impala.dbapi\r\n>>> import pyhive.hive\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/home/guyskk/ym/waimaietl/.venv/lib/python3.6/site-packages/pyhive/hive.py\", line 11, in <module>\r\n    from TCLIService import constants\r\nImportError: cannot import name 'constants'\r\n>>> \r\n```\r\n\r\nIt was caused by https://github.com/cloudera/impyla/blob/master/impala/_thrift_api.py#L80, \r\n```\r\n# dynamically load the HS2 modules\r\nExecStats = load(os.path.join(thrift_dir, 'ExecStats.thrift'),\r\n                     include_dirs=[thrift_dir])\r\nTCLIService = load(os.path.join(thrift_dir, 'TCLIService.thrift'),\r\n                       include_dirs=[thrift_dir])\r\nImpalaService = load(os.path.join(thrift_dir, 'ImpalaService.thrift'),\r\n                         include_dirs=[thrift_dir])\r\nsys.modules[ExecStats.__name__] = ExecStats\r\nsys.modules[TCLIService.__name__] = TCLIService   # <-----here!!!\r\nsys.modules[ImpalaService.__name__] = ImpalaService\r\n```\r\n\r\nAnd PyHive also includes a TCLIService module, they conflict.\r\n"},"comment":{"url":"https://api.github.com/repos/cloudera/impyla/issues/comments/524785572","html_url":"https://github.com/cloudera/impyla/issues/277#issuecomment-524785572","issue_url":"https://api.github.com/repos/cloudera/impyla/issues/277","id":524785572,"node_id":"MDEyOklzc3VlQ29tbWVudDUyNDc4NTU3Mg==","user":{"login":"celestewang1026","id":16298783,"node_id":"MDQ6VXNlcjE2Mjk4Nzgz","avatar_url":"https://avatars0.githubusercontent.com/u/16298783?v=4","gravatar_id":"","url":"https://api.github.com/users/celestewang1026","html_url":"https://github.com/celestewang1026","followers_url":"https://api.github.com/users/celestewang1026/followers","following_url":"https://api.github.com/users/celestewang1026/following{/other_user}","gists_url":"https://api.github.com/users/celestewang1026/gists{/gist_id}","starred_url":"https://api.github.com/users/celestewang1026/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celestewang1026/subscriptions","organizations_url":"https://api.github.com/users/celestewang1026/orgs","repos_url":"https://api.github.com/users/celestewang1026/repos","events_url":"https://api.github.com/users/celestewang1026/events{/privacy}","received_events_url":"https://api.github.com/users/celestewang1026/received_events","type":"User","site_admin":false},"created_at":"2019-08-26T09:11:59Z","updated_at":"2019-08-26T09:11:59Z","author_association":"NONE","body":"Is there any method can solve this question"}}
other: {"actor":{"display_login":"celestewang1026"}}