[IPython-dev] Simple Kernel Example

Mark Voorhies mark.voorhies at ucsf.edu
Fri Jan 17 10:39:49 EST 2014


On 01/17/2014 06:36 AM, Doug Blank wrote:
> Thanks to all for the pointers so far! I haven't gotten any of the
> other languages to work yet (I've sent each responder a message
> detailing what problems I am having. I'll report back here with status
> on those fronts.)
>
> I see that I should be able to:
>
> $ ipython console
> --KernelManager.kernel_cmd="['/path/to/simple_kernel.sh',
> '{connection_file}']"
>
> where simple_kernel.sh (with chmod +x) is just a simple echo (to see
> if it is working).
>
> But that gives:
> ...
>    File "/usr/local/lib/python2.7/dist-packages/IPython/kernel/manager.py",
> line 161, in _launch_kernel
>      return launch_kernel(kernel_cmd, **kw)
>    File "/usr/local/lib/python2.7/dist-packages/IPython/kernel/launcher.py",
> line 251, in launch_kernel
>      stdin=_stdin, stdout=_stdout, stderr=_stderr, cwd=cwd, env=os.environ)
>    File "/usr/lib/python2.7/subprocess.py", line 709, in __init__
>      errread, errwrite)
>    File "/usr/lib/python2.7/subprocess.py", line 1326, in _execute_child
>      raise child_exception
> OSError: [Errno 8] Exec format error

This looks like a missing shebang problem.  Does simple_kernel.sh start
with something like
#!/bin/bash

--Mark




More information about the IPython-dev mailing list