Jupyter notebook launch error

Hi,
Jupyter notebook launch is throwing the below error:
earlier it was running fine;
its resolved when I uninstalled and reinstalled

Now its not getting resolved with any of it

Traceback (most recent call last):
File “C:\Users\shail\anaconda3\Scripts\jupyter-notebook-script.py”, line 6, in
from notebook.notebookapp import main
File “C:\Users\shail\anaconda3\lib\site-packages\notebook\notebookapp.py”, line 44, in
from jinja2 import Environment, FileSystemLoader
File “C:\Users\shail\anaconda3\lib\site-packages\jinja2_init_.py”, line 12, in
from .environment import Environment
File “C:\Users\shail\anaconda3\lib\site-packages\jinja2\environment.py”, line 25, in
from .defaults import BLOCK_END_STRING
File “C:\Users\shail\anaconda3\lib\site-packages\jinja2\defaults.py”, line 3, in
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File “C:\Users\shail\anaconda3\lib\site-packages\jinja2\filters.py”, line 13, in
from markupsafe import soft_unicode
ImportError: cannot import name ‘soft_unicode’ from ‘markupsafe’ (C:\Users\shail\AppData\Roaming\Python\Python39\site-packages\markupsafe_init_.py)

need help

1 Like

dear anujas.phatak.

Thank you for posting.
A similar problem has been asked on StackOverFlow and offers two solutions.

The root cause of the problem is “ImportError: cannot import name’soft_unicode’ from’markupsafe’”, but I will show you the URL, please refer to it.

Regards, you.
ktsh.tanaka.2020