Reproduce
Install jupyter and kale by method in README.md
Use command related with jupyter labextension
ex:
> $jupyter labextension list
>
Traceback (most recent call last):
File "/home/junpyo/.conda/envs/ranix/lib/python3.8/site-packages/jupyterlab_server/server.py", line 14, in <module>
from notebook.base.handlers import (
File "/home/junpyo/.conda/envs/ranix/lib/python3.8/site-packages/notebook/base/handlers.py", line 21, in <module>
from jinja2 import TemplateNotFound
File "/home/junpyo/.conda/envs/ranix/lib/python3.8/site-packages/jinja2/__init__.py", line 12, in <module>
from .environment import Environment
File "/home/junpyo/.conda/envs/ranix/lib/python3.8/site-packages/jinja2/environment.py", line 25, in <module>
from .defaults import BLOCK_END_STRING
File "/home/junpyo/.conda/envs/ranix/lib/python3.8/site-packages/jinja2/defaults.py", line 3, in <module>
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File "/home/junpyo/.conda/envs/ranix/lib/python3.8/site-packages/jinja2/filters.py", line 13, in <module>
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/home/junpyo/.conda/envs/ranix/lib/python3.8/site-packages/markupsafe/__init__.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/junpyo/.conda/envs/ranix/bin/jupyter-labextension", line 5, in <module>
from jupyterlab.labextensions import main
File "/home/junpyo/.conda/envs/ranix/lib/python3.8/site-packages/jupyterlab/labextensions.py", line 16, in <module>
from .commands import (
File "/home/junpyo/.conda/envs/ranix/lib/python3.8/site-packages/jupyterlab/commands.py", line 29, in <module>
from jupyterlab_server.process import which, Process, WatchHelper, list2cmdline
File "/home/junpyo/.conda/envs/ranix/lib/python3.8/site-packages/jupyterlab_server/__init__.py", line 4, in <module>
from .app import LabServerApp
File "/home/junpyo/.conda/envs/ranix/lib/python3.8/site-packages/jupyterlab_server/app.py", line 9, in <module>
from .server import ServerApp
File "/home/junpyo/.conda/envs/ranix/lib/python3.8/site-packages/jupyterlab_server/server.py", line 26, in <module>
from jupyter_server.base.handlers import ( # noqa
File "/home/junpyo/.conda/envs/ranix/lib/python3.8/site-packages/jupyter_server/base/handlers.py", line 20, in <module>
from jinja2 import TemplateNotFound
File "/home/junpyo/.conda/envs/ranix/lib/python3.8/site-packages/jinja2/__init__.py", line 12, in <module>
from .environment import Environment
File "/home/junpyo/.conda/envs/ranix/lib/python3.8/site-packages/jinja2/environment.py", line 25, in <module>
from .defaults import BLOCK_END_STRING
File "/home/junpyo/.conda/envs/ranix/lib/python3.8/site-packages/jinja2/defaults.py", line 3, in <module>
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File "/home/junpyo/.conda/envs/ranix/lib/python3.8/site-packages/jinja2/filters.py", line 13, in <module>
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/home/junpyo/.conda/envs/ranix/lib/python3.8/site-packages/markupsafe/__init__.py)
Solution
downgrade MarkupSafe to <= 2.0.1 it works fine in my case.. I don't know the exact version dependency
Env python env : new conda env with python=3.8 jupyter : --version
Reproduce Install jupyter and kale by method in README.md Use command related with
jupyter labextension
ex:Solution downgrade
MarkupSafe
to <= 2.0.1 it works fine in my case.. I don't know the exact version dependency