#20121: Jupyter dies on incorrect kernel specification
--------------------------+----------------------------
   Reporter:  cheuberg    |            Owner:
       Type:  defect      |           Status:  new
   Priority:  major       |        Milestone:  sage-7.1
  Component:  interfaces  |         Keywords:  jupyter
  Merged in:              |          Authors:
  Reviewers:              |  Report Upstream:  N/A
Work issues:              |           Branch:
     Commit:              |     Dependencies:
   Stopgaps:              |
--------------------------+----------------------------
 If
 1. you used Sage 6.9 on your machine
 2. that Sage directory does no longer exist
 3. you open a ipynb File last saved with Sage 6.9 in !SageMath 7.0.beta4
 then you get a kernel error. Changing the kernel via the menu in this
 window does '''not''' help. Changing the kernel, saving the notebook,
 reopening the notebook helps.

 You can probably substitute 6.9 by older versions.

 The reason: Until Sage 6.9 (#19371), a kernel specification file was
 written in the user's home directory. This kernel specification file now
 has an invalid path and some relevant part of ipython crashes with an
 OSError.
 {{{
 ...
       File "/local/sage/sage-7.1.beta4/local/lib/python2.7/site-
 packages/jupyter_client/launcher.py", line 123, in launch_kernel
         proc = Popen(cmd, **kwargs)
       File "/local/sage/sage-7.1.beta4/local/lib/python/subprocess.py",
 line 710, in __init__
         errread, errwrite)
       File "/local/sage/sage-7.1.beta4/local/lib/python/subprocess.py",
 line 1335, in _execute_child
         raise child_exception
     OSError: [Errno 2] No such file or directory
 }}}

 This OSError should be caught and the standard dialog for a missing kernel
 should be invoked.

--
Ticket URL: <http://trac.sagemath.org/ticket/20121>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to