{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/iTorch/issues/38","labels_url":"https://api.github.com/repos/facebook/iTorch/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/facebook/iTorch/issues/38/comments","events_url":"https://api.github.com/repos/facebook/iTorch/issues/38/events","html_url":"https://github.com/facebook/iTorch/issues/38","id":65487541,"number":38,"title":"Failed to start the kernel","user":{"login":"YamiNoKeshin","id":5358108,"avatar_url":"https://avatars.githubusercontent.com/u/5358108?v=3","gravatar_id":"","url":"https://api.github.com/users/YamiNoKeshin","html_url":"https://github.com/YamiNoKeshin","followers_url":"https://api.github.com/users/YamiNoKeshin/followers","following_url":"https://api.github.com/users/YamiNoKeshin/following{/other_user}","gists_url":"https://api.github.com/users/YamiNoKeshin/gists{/gist_id}","starred_url":"https://api.github.com/users/YamiNoKeshin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YamiNoKeshin/subscriptions","organizations_url":"https://api.github.com/users/YamiNoKeshin/orgs","repos_url":"https://api.github.com/users/YamiNoKeshin/repos","events_url":"https://api.github.com/users/YamiNoKeshin/events{/privacy}","received_events_url":"https://api.github.com/users/YamiNoKeshin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-31T16:10:50Z","updated_at":"2015-03-31T16:27:26Z","closed_at":null,"body":"I installed iTorch today, but every time when I try to start it via \"ipython notebook\" the kernel crashes with the following error:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.4/site-packages/IPython/utils/traitlets.py\", line 407, in __get__\r\n    value = obj._trait_values[self.name]\r\nKeyError: 'session'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.4/site-packages/IPython/utils/traitlets.py\", line 1247, in validate\r\n    return bytes(value)\r\nTypeError: string argument without an encoding\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.4/site-packages/IPython/html/base/handlers.py\", line 365, in wrapper\r\n    result = yield gen.maybe_future(method(self, *args, **kwargs))\r\n  File \"/usr/lib/python3.4/site-packages/IPython/html/services/sessions/handlers.py\", line 53, in post\r\n    model = sm.create_session(path=path, kernel_name=kernel_name)\r\n  File \"/usr/lib/python3.4/site-packages/IPython/html/services/sessions/sessionmanager.py\", line 66, in create_session\r\n    kernel_name=kernel_name)\r\n  File \"/usr/lib/python3.4/site-packages/IPython/html/services/kernels/kernelmanager.py\", line 84, in start_kernel\r\n    kernel_name=kernel_name, **kwargs)\r\n  File \"/usr/lib/python3.4/site-packages/IPython/kernel/multikernelmanager.py\", line 112, in start_kernel\r\n    km.start_kernel(**kwargs)\r\n  File \"/usr/lib/python3.4/site-packages/IPython/kernel/manager.py\", line 224, in start_kernel\r\n    self.write_connection_file()\r\n  File \"/usr/lib/python3.4/site-packages/IPython/kernel/connect.py\", line 488, in write_connection_file\r\n    transport=self.transport, ip=self.ip, key=self.session.key,\r\n  File \"/usr/lib/python3.4/site-packages/IPython/utils/traitlets.py\", line 412, in __get__\r\n    value = method()\r\n  File \"/usr/lib/python3.4/site-packages/IPython/kernel/connect.py\", line 438, in _session_default\r\n    return Session(parent=self)\r\n  File \"/usr/lib/python3.4/site-packages/IPython/kernel/zmq/session.py\", line 430, in __init__\r\n    super(Session, self).__init__(**kwargs)\r\n  File \"/usr/lib/python3.4/site-packages/IPython/config/configurable.py\", line 80, in __init__\r\n    self.config = config\r\n  File \"/usr/lib/python3.4/site-packages/IPython/utils/traitlets.py\", line 445, in __set__\r\n    obj._notify_trait(self.name, old_value, new_value)\r\n  File \"/usr/lib/python3.4/site-packages/IPython/utils/traitlets.py\", line 602, in _notify_trait\r\n    c(name, old_value, new_value)\r\n  File \"/usr/lib/python3.4/site-packages/IPython/config/configurable.py\", line 159, in _config_changed\r\n    self._load_config(new, traits=traits, section_names=section_names)\r\n  File \"/usr/lib/python3.4/site-packages/IPython/config/configurable.py\", line 143, in _load_config\r\n    setattr(self, name, deepcopy(config_value))\r\n  File \"/usr/lib/python3.4/site-packages/IPython/utils/traitlets.py\", line 430, in __set__\r\n    new_value = self._validate(obj, value)\r\n  File \"/usr/lib/python3.4/site-packages/IPython/utils/traitlets.py\", line 451, in _validate\r\n    return self.validate(obj, value)\r\n  File \"/usr/lib/python3.4/site-packages/IPython/utils/traitlets.py\", line 1249, in validate\r\n    self.error(obj, value)\r\n  File \"/usr/lib/python3.4/site-packages/IPython/utils/traitlets.py\", line 480, in error\r\n    raise TraitError(e)\r\nIPython.utils.traitlets.TraitError: The 'key' trait of a Session instance must be a bytes object, but a value of '' <class 'str'> was specified.\r\n\r\nBut if I start it with: \r\n\"ipython notebook --profile torch\" like it was before the fix from issue #33 it works without crashing. \r\n\r\nArch Linux x64\r\niPython version: 3.0.0\r\nPython version 3.4.3\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/iTorch/issues/comments/88158329","html_url":"https://github.com/facebook/iTorch/issues/38#issuecomment-88158329","issue_url":"https://api.github.com/repos/facebook/iTorch/issues/38","id":88158329,"user":{"login":"soumith","id":1310570,"avatar_url":"https://avatars.githubusercontent.com/u/1310570?v=3","gravatar_id":"","url":"https://api.github.com/users/soumith","html_url":"https://github.com/soumith","followers_url":"https://api.github.com/users/soumith/followers","following_url":"https://api.github.com/users/soumith/following{/other_user}","gists_url":"https://api.github.com/users/soumith/gists{/gist_id}","starred_url":"https://api.github.com/users/soumith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soumith/subscriptions","organizations_url":"https://api.github.com/users/soumith/orgs","repos_url":"https://api.github.com/users/soumith/repos","events_url":"https://api.github.com/users/soumith/events{/privacy}","received_events_url":"https://api.github.com/users/soumith/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T16:27:26Z","updated_at":"2015-03-31T16:27:26Z","body":"we provide the itorch script for this reason:\r\n\"itorch notebook\" should work"}}