[MacPorts] #64901: py310-nbconvert @6.1.0_0 calls wrong version of py310-jinja2

MacPorts noreply at macports.org
Mon Mar 28 14:31:39 UTC 2022


#64901: py310-nbconvert @6.1.0_0 calls wrong version of py310-jinja2
-------------------------+--------------------
 Reporter:  AndrewSwann  |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.7.2
 Keywords:               |       Port:
-------------------------+--------------------
 py310-jinja2 has just been updated to version 3.1.0_0, but this breaks
 py310-nbconvert, with the following error (when tying to create a pdf from
 jupyterlab)


 {{{
      File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10
 /site-packages/nbconvert/exporters/html.py", line 14, in <module>
         from jinja2 import contextfilter
     ImportError: cannot import name 'contextfilter' from 'jinja2'
 (/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10
 /site-packages/jinja2/__init__.py)
 }}}

 since jinja2's contextfilter has changed name to pass_context.
 evalcontextfilter according to

 https://jinja.palletsprojects.com/en/3.1.x/changes/#version-3-1-0

 Either py310-nbconvert should update to the newest version of nbconvert or

 https://github.com/jupyter/nbconvert/issues/1739

 suggests pinning to version 3.0.3 og jinja2 should work.

-- 
Ticket URL: <https://trac.macports.org/ticket/64901>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list