I've been trying to get IJulia to work on Ubuntu 12.04 with Julia Version 
0.3.0-prerelease+2057. I installed ipython 2.0.0 using easy_install:

easy_install ipython[all]


and this allows me to run an ipython notebook from the terminal with:

ipython notebook


This all works fine. I then attempted to install IJulia with 

Pkg.add("IJulia")



and this all seemed to work well. When I run

ipython notebook --profile julia


a notebook opens with the Julia logo at the top right. However, when I open 
a new notebook, the kernel appears permanently busy (I can write in 
markdown script and headers, but I can't execute any Julia code) and I get 
the following error message in the terminal:


2014-04-11 18:56:44.881 [NotebookApp] Creating new notebook in /
2014-04-11 18:56:44.884 [NotebookApp] Writing notebook-signing key to /home/
thomas/.ipython/profile_julia/security/notebook_secret
2014-04-11 18:56:45.961 [NotebookApp] ERROR | Unhandled error in API request
Traceback (most recent call last):
  File 
"/usr/local/lib/python2.7/dist-packages/IPython/html/base/handlers.py",line 
286, in wrapper
    result = method(self, *args, **kwargs)
  File 
"/usr/local/lib/python2.7/dist-packages/IPython/html/services/sessions/handlers.py"
, line 65, in post
    kernel_id = km.start_kernel(path=path)
  File 
"/usr/local/lib/python2.7/dist-packages/IPython/html/services/kernels/kernelmanager.py"
, line 90, in start_kernel
    kernel_id = super(MappingKernelManager, self).start_kernel(**kwargs)
  File 
"/usr/local/lib/python2.7/dist-packages/IPython/kernel/multikernelmanager.py"
, line 116, in start_kernel
    km.start_kernel(**kwargs)
  File "/usr/local/lib/python2.7/dist-packages/IPython/kernel/manager.py",line 
217, in start_kernel
    **kw)
  File "/usr/local/lib/python2.7/dist-packages/IPython/kernel/manager.py",line 
173, in _launch_kernel
    return launch_kernel(kernel_cmd, **kw)
  File "/usr/local/lib/python2.7/dist-packages/IPython/kernel/launcher.py",line 
254, in launch_kernel
    stdin=_stdin, stdout=_stdout, stderr=_stderr, cwd=cwd, env=os.environ)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
ERROR:tornado.access:{
  "Origin": "http://127.0.0.1:8998";, 
  "Content-Length": "50", 
  "Accept-Language": "en-GB,en-US;q=0.8,en;q=0.6", 
  "Accept-Encoding": "gzip,deflate,sdch", 
  "Connection": "keep-alive", 
  "Accept": "application/json, text/javascript, */*; q=0.01", 
  "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, 
like Gecko) Chrome/33.0.1750.152 Safari/537.36", 
  "Host": "127.0.0.1:8998", 
  "X-Requested-With": "XMLHttpRequest", 
  "Referer": "http://127.0.0.1:8998/notebooks/Untitled16.ipynb";, 
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
}
ERROR:tornado.access:500 POST /api/sessions (127.0.0.1) 20.67ms referer=http
://127.0.0.1:8998/notebooks/Untitled16.ipynb
2014-04-11 19:20:45.994 [NotebookApp] Saving notebook at /Untitled16.ipynb




If instead I run 

ipython console --profile julia


I don't even get so far as anything opening at all: I just get the same 
error message. 

This error and others similar to it have appeared in a number of places, 
for example:

https://github.com/JuliaLang/IJulia.jl/issues/61
https://groups.google.com/forum/#!msg/julia-users/MJrSqN1CcDs/SrbQOL2yMTkJ
https://groups.google.com/forum/#!msg/julia-users/MhTP9T-j5FY/PP_Su47p8RoJ

The reason for the error and suggested fixes vary considerably. I've tried 
deleting ~/.ipython/profile_julia and running Pkg.fixup("IJulia"). I've 
tried removing IJulia and then running Pkg.add("WinRPM") and then 
Pkg.add("IJulia"). So far the error message hasn't changed.

Any help would be appreciated :)


Reply via email to