{"action":"opened","issue":{"url":"https://api.github.com/repos/mars-project/mars/issues/2","repository_url":"https://api.github.com/repos/mars-project/mars","labels_url":"https://api.github.com/repos/mars-project/mars/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/mars-project/mars/issues/2/comments","events_url":"https://api.github.com/repos/mars-project/mars/issues/2/events","html_url":"https://github.com/mars-project/mars/issues/2","id":388495256,"node_id":"MDU6SXNzdWUzODg0OTUyNTY=","number":2,"title":"[BUG] for python2.7, raise ImportError if mock is not installed","user":{"login":"chineking","id":357506,"node_id":"MDQ6VXNlcjM1NzUwNg==","avatar_url":"https://avatars1.githubusercontent.com/u/357506?v=4","gravatar_id":"","url":"https://api.github.com/users/chineking","html_url":"https://github.com/chineking","followers_url":"https://api.github.com/users/chineking/followers","following_url":"https://api.github.com/users/chineking/following{/other_user}","gists_url":"https://api.github.com/users/chineking/gists{/gist_id}","starred_url":"https://api.github.com/users/chineking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chineking/subscriptions","organizations_url":"https://api.github.com/users/chineking/orgs","repos_url":"https://api.github.com/users/chineking/repos","events_url":"https://api.github.com/users/chineking/events{/privacy}","received_events_url":"https://api.github.com/users/chineking/received_events","type":"User","site_admin":false},"labels":[{"id":1151513091,"node_id":"MDU6TGFiZWwxMTUxNTEzMDkx","url":"https://api.github.com/repos/mars-project/mars/labels/type:%20bug","name":"type: bug","color":"d73a4a","default":false}],"state":"open","locked":false,"assignee":{"login":"chineking","id":357506,"node_id":"MDQ6VXNlcjM1NzUwNg==","avatar_url":"https://avatars1.githubusercontent.com/u/357506?v=4","gravatar_id":"","url":"https://api.github.com/users/chineking","html_url":"https://github.com/chineking","followers_url":"https://api.github.com/users/chineking/followers","following_url":"https://api.github.com/users/chineking/following{/other_user}","gists_url":"https://api.github.com/users/chineking/gists{/gist_id}","starred_url":"https://api.github.com/users/chineking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chineking/subscriptions","organizations_url":"https://api.github.com/users/chineking/orgs","repos_url":"https://api.github.com/users/chineking/repos","events_url":"https://api.github.com/users/chineking/events{/privacy}","received_events_url":"https://api.github.com/users/chineking/received_events","type":"User","site_admin":false},"assignees":[{"login":"chineking","id":357506,"node_id":"MDQ6VXNlcjM1NzUwNg==","avatar_url":"https://avatars1.githubusercontent.com/u/357506?v=4","gravatar_id":"","url":"https://api.github.com/users/chineking","html_url":"https://github.com/chineking","followers_url":"https://api.github.com/users/chineking/followers","following_url":"https://api.github.com/users/chineking/following{/other_user}","gists_url":"https://api.github.com/users/chineking/gists{/gist_id}","starred_url":"https://api.github.com/users/chineking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chineking/subscriptions","organizations_url":"https://api.github.com/users/chineking/orgs","repos_url":"https://api.github.com/users/chineking/repos","events_url":"https://api.github.com/users/chineking/events{/privacy}","received_events_url":"https://api.github.com/users/chineking/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-12-07T03:50:53Z","updated_at":"2018-12-07T03:50:53Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**Describe the bug**\r\nFor python 2.7, if `mock` library is not installed, ImportError will be raised.\r\n\r\n**To Reproduce**\r\n\r\nif mock not installed\r\n```\r\n>>> import mars.tensor as mt\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"mars/tensor/__init__.py\", line 18, in <module>\r\n    from .expressions.datasource import tensor, array, asarray, scalar, \\\r\n  File \"mars/tensor/expressions/__init__.py\", line 17, in <module>\r\n    from . import rechunk\r\n  File \"mars/tensor/expressions/rechunk/__init__.py\", line 17, in <module>\r\n    from .rechunk import rechunk\r\n  File \"mars/tensor/expressions/rechunk/rechunk.py\", line 24, in <module>\r\n    from ....config import options\r\n  File \"mars/config.py\", line 22, in <module>\r\n    from .compat import six\r\n  File \"mars/compat/__init__.py\", line 198, in <module>\r\n    import mock\r\nImportError: No module named mock\r\n```\r\n\r\n"}}
{"actor":{"display_login":"chineking"}}