Open kmkarakaya opened 1 year ago
Hi! On collab, I got the below error today. Colab installs jinja: Requirement already satisfied: jinja2>=2.4 in /usr/local/lib/python3.9/dist-packages (from nbconvert==5.6.1->jupyter_to_medium) (3.1.2)
However, error message states that cannot import name 'contextfilter' from 'jinja2'
The screen capture is below. Thank you! KMK
ImportError Traceback (most recent call last) in ----> 1 import jupyter_to_medium as jtm 2 jtm.publish('Text Vectorization Use Save Upload.ipynb', 3 integration_token='2bfbbeb667b47ac73716707e336043272e4458836f965dd70ae9069cdd194dc41', 4 pub_name=None, 5 title=None,
4 frames /usr/local/lib/python3.9/dist-packages/nbconvert/exporters/html.py in 10 from traitlets.config import Config 11 from jupyter_core.paths import jupyter_path ---> 12 from jinja2 import contextfilter 13 14 from nbconvert.filters.highlight import Highlight2HTML
ImportError: cannot import name 'contextfilter' from 'jinja2' (/usr/local/lib/python3.9/dist-packages/jinja2/init.py)
try downgrade Jinja2 to 3.0.3
Hi! On collab, I got the below error today. Colab installs jinja: Requirement already satisfied: jinja2>=2.4 in /usr/local/lib/python3.9/dist-packages (from nbconvert==5.6.1->jupyter_to_medium) (3.1.2)
However, error message states that cannot import name 'contextfilter' from 'jinja2'
The screen capture is below. Thank you! KMK
ImportError Traceback (most recent call last) in
----> 1 import jupyter_to_medium as jtm
2 jtm.publish('Text Vectorization Use Save Upload.ipynb',
3 integration_token='2bfbbeb667b47ac73716707e336043272e4458836f965dd70ae9069cdd194dc41',
4 pub_name=None,
5 title=None,
4 frames /usr/local/lib/python3.9/dist-packages/nbconvert/exporters/html.py in
10 from traitlets.config import Config
11 from jupyter_core.paths import jupyter_path
---> 12 from jinja2 import contextfilter
13
14 from nbconvert.filters.highlight import Highlight2HTML
ImportError: cannot import name 'contextfilter' from 'jinja2' (/usr/local/lib/python3.9/dist-packages/jinja2/init.py)