{"action":"closed","issue":{"url":"https://api.github.com/repos/jupyter/jupyter/issues/356","repository_url":"https://api.github.com/repos/jupyter/jupyter","labels_url":"https://api.github.com/repos/jupyter/jupyter/issues/356/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/jupyter/issues/356/comments","events_url":"https://api.github.com/repos/jupyter/jupyter/issues/356/events","html_url":"https://github.com/jupyter/jupyter/issues/356","id":348091268,"node_id":"MDU6SXNzdWUzNDgwOTEyNjg=","number":356,"title":"Having \"Kernel error\" in jupyter notebook","user":{"login":"weichang252","id":14824039,"node_id":"MDQ6VXNlcjE0ODI0MDM5","avatar_url":"https://avatars2.githubusercontent.com/u/14824039?v=4","gravatar_id":"","url":"https://api.github.com/users/weichang252","html_url":"https://github.com/weichang252","followers_url":"https://api.github.com/users/weichang252/followers","following_url":"https://api.github.com/users/weichang252/following{/other_user}","gists_url":"https://api.github.com/users/weichang252/gists{/gist_id}","starred_url":"https://api.github.com/users/weichang252/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weichang252/subscriptions","organizations_url":"https://api.github.com/users/weichang252/orgs","repos_url":"https://api.github.com/users/weichang252/repos","events_url":"https://api.github.com/users/weichang252/events{/privacy}","received_events_url":"https://api.github.com/users/weichang252/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-06T21:39:32Z","updated_at":"2018-08-06T22:19:26Z","closed_at":"2018-08-06T22:19:26Z","author_association":"NONE","body":"The error message shows as below. I am running jupyter notebook in one of my environments. How do I solve it? Many thanks.\r\n\r\nTraceback (most recent call last):\r\n  File \"C:\\Users\\wdy\\AppData\\Local\\conda\\conda\\envs\\my_root\\lib\\site-packages\\traitlets\\traitlets.py\", line 526, in get\r\n    value = obj._trait_values[self.name]\r\nKeyError: 'loop'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"C:\\Users\\wdy\\AppData\\Local\\conda\\conda\\envs\\my_root\\lib\\site-packages\\notebook\\base\\handlers.py\", line 540, in wrapper\r\n    result = yield gen.maybe_future(method(self, *args, **kwargs))\r\n  File \"C:\\Users\\wdy\\AppData\\Local\\conda\\conda\\envs\\my_root\\lib\\site-packages\\tornado\\gen.py\", line 1133, in run\r\n    value = future.result()\r\n  File \"C:\\Users\\wdy\\AppData\\Local\\conda\\conda\\envs\\my_root\\lib\\site-packages\\tornado\\gen.py\", line 1141, in run\r\n    yielded = self.gen.throw(*exc_info)\r\n  File \"C:\\Users\\wdy\\AppData\\Local\\conda\\conda\\envs\\my_root\\lib\\site-packages\\notebook\\services\\sessions\\handlers.py\", line 75, in post\r\n    type=mtype))\r\n  File \"C:\\Users\\wdy\\AppData\\Local\\conda\\conda\\envs\\my_root\\lib\\site-packages\\tornado\\gen.py\", line 1133, in run\r\n    value = future.result()\r\n  File \"C:\\Users\\wdy\\AppData\\Local\\conda\\conda\\envs\\my_root\\lib\\site-packages\\tornado\\gen.py\", line 1141, in run\r\n    yielded = self.gen.throw(*exc_info)\r\n  File \"C:\\Users\\wdy\\AppData\\Local\\conda\\conda\\envs\\my_root\\lib\\site-packages\\notebook\\services\\sessions\\sessionmanager.py\", line 79, in create_session\r\n    kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)\r\n  File \"C:\\Users\\wdy\\AppData\\Local\\conda\\conda\\envs\\my_root\\lib\\site-packages\\tornado\\gen.py\", line 1133, in run\r\n    value = future.result()\r\n  File \"C:\\Users\\wdy\\AppData\\Local\\conda\\conda\\envs\\my_root\\lib\\site-packages\\tornado\\gen.py\", line 1141, in run\r\n    yielded = self.gen.throw(*exc_info)\r\n  File \"C:\\Users\\wdy\\AppData\\Local\\conda\\conda\\envs\\my_root\\lib\\site-packages\\notebook\\services\\sessions\\sessionmanager.py\", line 92, in start_kernel_for_session\r\n    self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)\r\n  File \"C:\\Users\\wdy\\AppData\\Local\\conda\\conda\\envs\\my_root\\lib\\site-packages\\tornado\\gen.py\", line 1133, in run\r\n    value = future.result()\r\n  File \"C:\\Users\\wdy\\AppData\\Local\\conda\\conda\\envs\\my_root\\lib\\site-packages\\tornado\\gen.py\", line 326, in wrapper\r\n    yielded = next(result)\r\n  File \"C:\\Users\\wdy\\AppData\\Local\\conda\\conda\\envs\\my_root\\lib\\site-packages\\notebook\\services\\kernels\\kernelmanager.py\", line 123, in start_kernel\r\n    super(MappingKernelManager, self).start_kernel(**kwargs)\r\n  File \"C:\\Users\\wdy\\AppData\\Local\\conda\\conda\\envs\\my_root\\lib\\site-packages\\jupyter_client\\multikernelmanager.py\", line 110, in start_kernel\r\n    km.start_kernel(**kwargs)\r\n  File \"C:\\Users\\wdy\\AppData\\Local\\conda\\conda\\envs\\my_root\\lib\\site-packages\\jupyter_client\\manager.py\", line 244, in start_kernel\r\n    self.start_restarter()\r\n  File \"C:\\Users\\wdy\\AppData\\Local\\conda\\conda\\envs\\my_root\\lib\\site-packages\\jupyter_client\\ioloop\\manager.py\", line 49, in start_restarter\r\n    kernel_manager=self, loop=self.loop,\r\n  File \"C:\\Users\\wdy\\AppData\\Local\\conda\\conda\\envs\\my_root\\lib\\site-packages\\traitlets\\traitlets.py\", line 554, in __get__\r\n    return self.get(obj, cls)\r\n  File \"C:\\Users\\wdy\\AppData\\Local\\conda\\conda\\envs\\my_root\\lib\\site-packages\\traitlets\\traitlets.py\", line 533, in get\r\n    value = self._validate(obj, dynamic_default())\r\n  File \"C:\\Users\\wdy\\AppData\\Local\\conda\\conda\\envs\\my_root\\lib\\site-packages\\traitlets\\traitlets.py\", line 589, in _validate\r\n    value = self.validate(obj, value)\r\n  File \"C:\\Users\\wdy\\AppData\\Local\\conda\\conda\\envs\\my_root\\lib\\site-packages\\traitlets\\traitlets.py\", line 1675, in validate\r\n    self.error(obj, value)\r\n  File \"C:\\Users\\wdy\\AppData\\Local\\conda\\conda\\envs\\my_root\\lib\\site-packages\\traitlets\\traitlets.py\", line 1522, in error\r\n    raise TraitError(e)\r\ntraitlets.traitlets.TraitError: The 'loop' trait of an IOLoopKernelManager instance must be a ZMQIOLoop, but a value of class 'tornado.platform.asyncio.AsyncIOMainLoop' (i.e. <tornado.platform.asyncio.AsyncIOMainLoop object at 0x0000000005EA89B0>) was specified.\r\n"}}
{"actor":{"display_login":"weichang252"}}