{"action":"created","issue":{"url":"https://api.github.com/repos/jupyter/notebook/issues/3538","repository_url":"https://api.github.com/repos/jupyter/notebook","labels_url":"https://api.github.com/repos/jupyter/notebook/issues/3538/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/notebook/issues/3538/comments","events_url":"https://api.github.com/repos/jupyter/notebook/issues/3538/events","html_url":"https://github.com/jupyter/notebook/issues/3538","id":314809966,"number":3538,"title":"Unhandled error in API request","user":{"login":"kfergie","id":8672122,"avatar_url":"https://avatars2.githubusercontent.com/u/8672122?v=4","gravatar_id":"","url":"https://api.github.com/users/kfergie","html_url":"https://github.com/kfergie","followers_url":"https://api.github.com/users/kfergie/followers","following_url":"https://api.github.com/users/kfergie/following{/other_user}","gists_url":"https://api.github.com/users/kfergie/gists{/gist_id}","starred_url":"https://api.github.com/users/kfergie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kfergie/subscriptions","organizations_url":"https://api.github.com/users/kfergie/orgs","repos_url":"https://api.github.com/users/kfergie/repos","events_url":"https://api.github.com/users/kfergie/events{/privacy}","received_events_url":"https://api.github.com/users/kfergie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-16T20:40:52Z","updated_at":"2018-04-17T21:55:06Z","closed_at":null,"author_association":"NONE","body":"Hi,  \r\n\r\nThank you for any help!!! \r\n\r\nI haven't used my jupyter notebook for a while (was working before!), and now tried to get it working with matlab.  Now, and am now having trouble with both matlab *and* python kernels, getting an Unhandled error in API request.  I'm running on ubuntu 16.04, have updated my jupyter client, and have tried running through the localhost.  \r\n\r\njupyter kernelspec list  gives me: \r\n\r\n```\r\nAvailable kernels:\r\n  matlab     /home/katie/.local/share/jupyter/kernels/matlab\r\n  python2    /home/katie/Software/anaconda2/share/jupyter/kernels/python2\r\n```\r\n\r\nMy console errors look like this when I try running through python kernel: \r\n\r\n```\r\n[E 16:30:09.663 NotebookApp] Unhandled error in API request\r\n    Traceback (most recent call last):\r\n      File \"/home/katie/Software/anaconda2/lib/python2.7/site-packages/notebook/base/handlers.py\", line 516, in wrapper\r\n        result = yield gen.maybe_future(method(self, *args, **kwargs))\r\n      File \"/home/katie/Software/anaconda2/lib/python2.7/site-packages/tornado/gen.py\", line 1099, in run\r\n        value = future.result()\r\n      File \"/home/katie/Software/anaconda2/lib/python2.7/site-packages/tornado/concurrent.py\", line 260, in result\r\n        raise_exc_info(self._exc_info)\r\n      File \"/home/katie/Software/anaconda2/lib/python2.7/site-packages/tornado/gen.py\", line 1107, in run\r\n        yielded = self.gen.throw(*exc_info)\r\n      File \"/home/katie/Software/anaconda2/lib/python2.7/site-packages/notebook/services/sessions/handlers.py\", line 75, in post\r\n        type=mtype))\r\n      File \"/home/katie/Software/anaconda2/lib/python2.7/site-packages/tornado/gen.py\", line 1099, in run\r\n        value = future.result()\r\n      File \"/home/katie/Software/anaconda2/lib/python2.7/site-packages/tornado/concurrent.py\", line 260, in result\r\n        raise_exc_info(self._exc_info)\r\n      File \"/home/katie/Software/anaconda2/lib/python2.7/site-packages/tornado/gen.py\", line 1107, in run\r\n        yielded = self.gen.throw(*exc_info)\r\n      File \"/home/katie/Software/anaconda2/lib/python2.7/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 \"/home/katie/Software/anaconda2/lib/python2.7/site-packages/tornado/gen.py\", line 1099, in run\r\n        value = future.result()\r\n      File \"/home/katie/Software/anaconda2/lib/python2.7/site-packages/tornado/concurrent.py\", line 260, in result\r\n        raise_exc_info(self._exc_info)\r\n      File \"/home/katie/Software/anaconda2/lib/python2.7/site-packages/tornado/gen.py\", line 1107, in run\r\n        yielded = self.gen.throw(*exc_info)\r\n      File \"/home/katie/Software/anaconda2/lib/python2.7/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 \"/home/katie/Software/anaconda2/lib/python2.7/site-packages/tornado/gen.py\", line 1099, in run\r\n        value = future.result()\r\n      File \"/home/katie/Software/anaconda2/lib/python2.7/site-packages/tornado/concurrent.py\", line 260, in result\r\n        raise_exc_info(self._exc_info)\r\n      File \"/home/katie/Software/anaconda2/lib/python2.7/site-packages/tornado/gen.py\", line 315, in wrapper\r\n        yielded = next(result)\r\n      File \"/home/katie/Software/anaconda2/lib/python2.7/site-packages/notebook/services/kernels/kernelmanager.py\", line 94, in start_kernel\r\n        super(MappingKernelManager, self).start_kernel(**kwargs)\r\n      File \"/home/katie/Software/anaconda2/lib/python2.7/site-packages/jupyter_client/multikernelmanager.py\", line 110, in start_kernel\r\n        km.start_kernel(**kwargs)\r\n      File \"/home/katie/Software/anaconda2/lib/python2.7/site-packages/jupyter_client/manager.py\", line 258, in start_kernel\r\n        self.start_restarter()\r\n      File \"/home/katie/Software/anaconda2/lib/python2.7/site-packages/jupyter_client/ioloop/manager.py\", line 52, in start_restarter\r\n        self._restarter.start()\r\n      File \"/home/katie/Software/anaconda2/lib/python2.7/site-packages/jupyter_client/ioloop/restarter.py\", line 45, in start\r\n        self.poll, 1000*self.time_to_dead, self.loop\r\n    TypeError: __init__() takes exactly 3 arguments (4 given)\r\n[E 16:30:09.664 NotebookApp] {\r\n      \"Content-Length\": \"92\", \r\n      \"Accept-Language\": \"en-US,en;q=0.5\", \r\n      \"Accept-Encoding\": \"gzip, deflate\", \r\n      \"X-Xsrftoken\": \"2|40595423|66227fc61f28454ed8a6eb2f54c16294|1523895785\", \r\n      \"X-Requested-With\": \"XMLHttpRequest\", \r\n      \"Host\": \"localhost:8888\", \r\n      \"Accept\": \"application/json, text/javascript, */*; q=0.01\", \r\n      \"User-Agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0\", \r\n      \"Connection\": \"keep-alive\", \r\n      \"Referer\": \"http://localhost:8888/notebooks/Untitled8.ipynb?kernel_name=python2\", \r\n      \"Cookie\": \"_xsrf=2|40595423|66227fc61f28454ed8a6eb2f54c16294|1523895785; username-localhost-8889=\\\"2|1:0|10:1523906974|23:username-localhost-8889|44:ZTBjYWEyNDNlNjY2NDJmODhjODljZDhhZTY3NjU4N2I=|6679cb45a10b83b4d8ab96358a0fd858acd4721208aa57dc462f1f8ade497414\\\"; username-localhost-8888=\\\"2|1:0|10:1523910605|23:username-localhost-8888|44:MDk3ZGY2YjY2NDVmNDhiM2FkZDgwZDQwMjdlM2IxMGE=|8462dfe9e2e4a48fb12dba2a511ffdb55a45c31157aa2d98d867acb89c9b8b96\\\"\", \r\n      \"Content-Type\": \"application/json\"\r\n    }\r\n[E 16:30:09.664 NotebookApp] 500 POST /api/sessions (127.0.0.1) 20.12ms referer=http://localhost:8888/notebooks/Untitled8.ipynb?kernel_name=python2\r\n```"},"comment":{"url":"https://api.github.com/repos/jupyter/notebook/issues/comments/382161902","html_url":"https://github.com/jupyter/notebook/issues/3538#issuecomment-382161902","issue_url":"https://api.github.com/repos/jupyter/notebook/issues/3538","id":382161902,"user":{"login":"kfergie","id":8672122,"avatar_url":"https://avatars2.githubusercontent.com/u/8672122?v=4","gravatar_id":"","url":"https://api.github.com/users/kfergie","html_url":"https://github.com/kfergie","followers_url":"https://api.github.com/users/kfergie/followers","following_url":"https://api.github.com/users/kfergie/following{/other_user}","gists_url":"https://api.github.com/users/kfergie/gists{/gist_id}","starred_url":"https://api.github.com/users/kfergie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kfergie/subscriptions","organizations_url":"https://api.github.com/users/kfergie/orgs","repos_url":"https://api.github.com/users/kfergie/repos","events_url":"https://api.github.com/users/kfergie/events{/privacy}","received_events_url":"https://api.github.com/users/kfergie/received_events","type":"User","site_admin":false},"created_at":"2018-04-17T21:55:06Z","updated_at":"2018-04-17T21:55:06Z","author_association":"NONE","body":"The uninstall/reinstall of Anaconda worked great! Thanks for your help! :)"}}
{"actor":{"display_login":"kfergie"}}