#17960: Jinja2 is too old
-------------------------------------+-------------------------------------
       Reporter:  vbraun             |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.6
      Component:  packages:          |   Resolution:
  standard                           |    Merged in:
       Keywords:                     |    Reviewers:
        Authors:  Volker Braun       |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  bb4e7dcb559766e5685b990833153acb790bc718
  u/vbraun/jinja2_is_too_old         |     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------
Changes (by {'newvalue': u'Volker Braun', 'oldvalue': ''}):

 * status:  new => needs_review
 * commit:   => bb4e7dcb559766e5685b990833153acb790bc718
 * cc: fbissey (added)
 * author:   => Volker Braun


Old description:

> If you try to save ipython notebooks as pdf, you'll get the following
> error
> {{{
> $ sage -ipython nbconvert Untitled.ipynb --to pdf
> [...]
>   File "/home/vbraun/Code/sage.git/local/lib/python2.7/site-
> packages/IPython/nbconvert/exporters/../templates/latex/skeleton/null.tplx",
> line 34, in block "any_cell"
>     ((*- block codecell scoped -*))
>   File "/home/vbraun/Code/sage.git/local/lib/python2.7/site-
> packages/IPython/nbconvert/exporters/../templates/latex/skeleton/null.tplx",
> line 35, in block "codecell"
>     ((*- block input_group -*))
>   File "/home/vbraun/Code/sage.git/local/lib/python2.7/site-
> packages/IPython/nbconvert/exporters/../templates/latex/skeleton/null.tplx",
> line 37, in block "input_group"
>     ((*- block input -*))((*- endblock input -*))
>   File "/home/vbraun/Code/sage.git/local/lib/python2.7/site-
> packages/IPython/nbconvert/exporters/../templates/latex/style_ipython.tplx",
> line 23, in block "input"
>     ((( add_prompt(cell.source | highlight_code(strip_verbatim=True),
> cell, 'In ', 'incolor') )))
> UndefinedError: 'add_prompt' is undefined
> }}}
> Workaround is `sage -pip install --upgrade jinja2`

New description:

 If you try to save ipython notebooks as pdf, you'll get the following
 error
 {{{
 $ sage -ipython nbconvert Untitled.ipynb --to pdf
 [...]
   File "/home/vbraun/Code/sage.git/local/lib/python2.7/site-
 packages/IPython/nbconvert/exporters/../templates/latex/skeleton/null.tplx",
 line 34, in block "any_cell"
     ((*- block codecell scoped -*))
   File "/home/vbraun/Code/sage.git/local/lib/python2.7/site-
 packages/IPython/nbconvert/exporters/../templates/latex/skeleton/null.tplx",
 line 35, in block "codecell"
     ((*- block input_group -*))
   File "/home/vbraun/Code/sage.git/local/lib/python2.7/site-
 packages/IPython/nbconvert/exporters/../templates/latex/skeleton/null.tplx",
 line 37, in block "input_group"
     ((*- block input -*))((*- endblock input -*))
   File "/home/vbraun/Code/sage.git/local/lib/python2.7/site-
 packages/IPython/nbconvert/exporters/../templates/latex/style_ipython.tplx",
 line 23, in block "input"
     ((( add_prompt(cell.source | highlight_code(strip_verbatim=True),
 cell, 'In ', 'incolor') )))
 UndefinedError: 'add_prompt' is undefined
 }}}
 Workaround is `sage -pip install --upgrade jinja2`

 New vanilla tarball is already on the Sage mirror.

--

Comment:

 New commits:
 
||[http://git.sagemath.org/sage.git/commit/?id=bb4e7dcb559766e5685b990833153acb790bc718
 bb4e7dc]||{{{update to Jinja2-2.7.3}}}||

--
Ticket URL: <http://trac.sagemath.org/ticket/17960#comment:2>
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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to