Traceback (most recent call last):
File “/home/vital/anaconda3/bin/jupyter-notebook”, line 6, in
from notebook.notebookapp import main
File “/home/vital/anaconda3/lib/python3.9/site-packages/notebook/notebookapp.py”, line 44, in
from jinja2 import Environment, FileSystemLoader
File “/home/vital/anaconda3/lib/python3.9/site-packages/jinja2/init.py”, line 12, in
from .environment import Environment
File “/home/vital/anaconda3/lib/python3.9/site-packages/jinja2/environment.py”, line 25, in
from .defaults import BLOCK_END_STRING
File “/home/vital/anaconda3/lib/python3.9/site-packages/jinja2/defaults.py”, line 3, in
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File “/home/vital/anaconda3/lib/python3.9/site-packages/jinja2/filters.py”, line 13, in
from markupsafe import soft_unicode
ImportError: cannot import name ‘soft_unicode’ from ‘markupsafe’ (/home/vital/anaconda3/lib/python3.9/site-packages/markupsafe/init.py)
Stuff I’ve seem suggest you somehow have a version mismatch of markupsafe with other components? Did you recently upgrade something in your stack or use pip
to update something vs. Anaconda/conda?
However, given this and jinja2 having been listed a bunch before markupsafe, the same question may hold for jinga2.
You probably should run conda list
and pip list
on your command line to check things. You can probably search ‘jinja2’ and ‘markupsafe’ in this forum & compare listings to get a sense of versions that match better or worse.