zabirauf / icsharp

C# kernel for Jupyter
Other
278 stars 62 forks source link

icsharp kernel throwing error when version header is empty #3

Open zabirauf opened 9 years ago

zabirauf commented 9 years ago

I tried installing it, had a few issues (I accidentally installed python, which is actually python3). Anyhow, in the end the install went fine.

However when I am running ipython I am getting error messages and can not make it to work :-(

What I do ipython notebook --profile=csharp go to the right 'New / Python 2' (I don't see any other relevant option) It then says 'kernel starting', and then after a few seconds, in the kernel logs I get the following message below

Any idea what could be causing the issue?

Thanks!

c:\Users\joel\Desktop>ipython notebook --profile=icsharp
[I 08:49:16.538 NotebookApp] Using MathJax from CDN: https://cdn.mathjax.org/mathjax/latest/MathJax.js
[I 08:49:16.615 NotebookApp] Serving notebooks from local directory: c:\Users\joel\Desktop
[I 08:49:16.615 NotebookApp] 0 active kernels
[I 08:49:16.615 NotebookApp] The IPython Notebook is running at: http://localhost:8888/
[I 08:49:16.615 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 08:49:40.161 NotebookApp] Creating new file in
[I 08:50:07.785 NotebookApp] Saving file at /untitled.txt
[I 08:50:16.197 NotebookApp] Creating new file in
[I 08:50:31.407 NotebookApp] Creating new notebook in
C:\tools\python2\lib\site-packages\IPython\kernel\manager.py:95: UserWarning: Setting kernel_cmd is deprecated, use kernel_spec to start different kernels.  warnings.warn("Setting kernel_cmd is deprecated, use kernel_spec to "
[I 08:50:33.299 NotebookApp] Kernel started: 45886f58-6112-448b-bb0a-64c02dfbe2e1
2015/04/12 08:50:33:427 [DEBUG] Hello2
2015/04/12 08:50:33:432 [DEBUG] C:\Users\joel\.ipython\profile_icsharp\security\kernel-45886f58-6112-448b-bb0a-64c02dfbe2e1.json
2015/04/12 08:50:33:443 [INFO]  Opening file C:\Users\joel\.ipython\profile_icsharp\security\kernel-45886f58-6112-448b-bb0a-64c02dfbe2e1.json
2015/04/12 08:50:33:451 [DEBUG] {
  "stdin_port": 2645,
  "ip": "127.0.0.1",
  "control_port": 2646,
  "hb_port": 2647,
  "signature_scheme": "hmac-sha256",
  "key": "",
  "shell_port": 2643,
  "transport": "tcp",
  "iopub_port": 2644
}
[W 08:50:43.374 NotebookApp] Timeout waiting for kernel_info reply from 45886f58-6112-448b-bb0a-64c02dfbe2e1
[C 08:50:43.398 NotebookApp] Malformed message: ['<IDS|MSG>', '', '{"msg_id":"eedb2463-a30b-4f73-8501-47fa194dbe13","username":"icsharp_kernel","session":"80EC14297A7E4E558F8B41AAE3C1EED6","msg_type":"kernel_info_reply","version":""}', '{"msg_id":"DA9053AEC3EB4EDB848C34DED588C3D2","username":"username","session":"80EC14297A7E4E558F8B41AAE3C1EED6","msg_type":"kernel_info_request","version":"5.0"}', 
'{}', '{"protocol_version":"4.1","implementation":"iCsharp", "implementation_version":null,"language":"C#", "language_version":"0.0.1", "banner":null, "ipython_version":"2.0.0dev"}']

    Traceback (most recent call last):
      File "C:\tools\python2\lib\site-packages\IPython\html\base\zmqhandlers.py"
, line 181, in _on_zmq_reply
        msg = self._reserialize_reply(msg_list, channel=channel)
      File "C:\tools\python2\lib\site-packages\IPython\html\base\zmqhandlers.py"
, line 162, in _reserialize_reply
        msg = self.session.deserialize(msg_list)
      File "C:\tools\python2\lib\site-packages\IPython\kernel\zmq\session.py", l
ine 852, in deserialize
        return adapt(message)
      File "C:\tools\python2\lib\site-packages\IPython\kernel\adapter.py", line
360, in adapt
        from_version = int(header['version'].split('.')[0])
    ValueError: invalid literal for int() with base 10: ''