On the computer of a Student (I think Ubuntu 20.04) with 9.6.beta7 installing jupyterlab fails with the error "ImportError: cannot import name 'soft_unicode' from 'markupsafe' ". Googling this error, we found this link: https://github.com/aws/aws-sam-cli/issues/3661 suggesting to downgrade markupsafe from 2.1.1 to 2.0.1. After doing that, sage -n jupyterlab worked. Should build/pkgs/markupsafe/install-requires.txt be adapted?
$ cat build/pkgs/markupsafe/install-requires.txt markupsafe >=1.1.0 Traceback of the error is here: [...] [sagelib-9.6.beta7] Traceback (most recent call last): [sagelib-9.6.beta7] File "setup.py", line 101, in <module> [sagelib-9.6.beta7] code = setup( [sagelib-9.6.beta7] File "/home/steffania/sage/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup [sagelib-9.6.beta7] return distutils.core.setup(**attrs) [sagelib-9.6.beta7] File "/usr/lib/python3.8/distutils/core.py", line 148, in setup [sagelib-9.6.beta7] dist.run_commands() [sagelib-9.6.beta7] File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands [sagelib-9.6.beta7] self.run_command(cmd) [sagelib-9.6.beta7] File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command [sagelib-9.6.beta7] cmd_obj.run() [sagelib-9.6.beta7] File "/home/steffania/sage/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/sage_setup/command/sage_build.py", line 36, in run [sagelib-9.6.beta7] self.run_autogen() [sagelib-9.6.beta7] File "/home/steffania/sage/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/sage_setup/command/sage_build.py", line 18, in run_autogen [sagelib-9.6.beta7] from sage_setup.autogen import autogen_all [sagelib-9.6.beta7] File "/home/steffania/sage/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/sage_setup/autogen/__init__.py", line 2, in <module> [sagelib-9.6.beta7] from . import interpreters [sagelib-9.6.beta7] File "/home/steffania/sage/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/sage_setup/autogen/interpreters/__init__.py", line 118, in <module> [sagelib-9.6.beta7] from .generator import InterpreterGenerator, AUTOGEN_WARN [sagelib-9.6.beta7] File "/home/steffania/sage/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/sage_setup/autogen/interpreters/generator.py", line 19, in <module> [sagelib-9.6.beta7] from .memory import string_of_addr [sagelib-9.6.beta7] File "/home/steffania/sage/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/sage_setup/autogen/interpreters/memory.py", line 16, in <module> [sagelib-9.6.beta7] from .utils import je, reindent_lines as ri [sagelib-9.6.beta7] File "/home/steffania/sage/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/sage_setup/autogen/interpreters/utils.py", line 19, in <module> [sagelib-9.6.beta7] from jinja2 import Environment [sagelib-9.6.beta7] File "/home/steffania/sage/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/jinja2/__init__.py", line 12, in <module> [sagelib-9.6.beta7] from .environment import Environment [sagelib-9.6.beta7] File "/home/steffania/sage/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/jinja2/environment.py", line 25, in <module> [sagelib-9.6.beta7] from .defaults import BLOCK_END_STRING [sagelib-9.6.beta7] File "/home/steffania/sage/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/jinja2/defaults.py", line 3, in <module> [sagelib-9.6.beta7] from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401 [sagelib-9.6.beta7] File "/home/steffania/sage/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/jinja2/filters.py", line 13, in <module> [sagelib-9.6.beta7] from markupsafe import soft_unicode [sagelib-9.6.beta7] ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/home/steffania/sage/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/markupsafe/__init__.py) [sagelib-9.6.beta7] ************************************************************************ [sagelib-9.6.beta7] Error building the Sage library [sagelib-9.6.beta7] ************************************************************************ [sagelib-9.6.beta7] Please email sage-devel (http://groups.google.com/group/sage-devel) [sagelib-9.6.beta7] explaining the problem and including the relevant part of the log file [sagelib-9.6.beta7] /home/steffania/sage/logs/pkgs/sagelib-9.6.beta7.log [sagelib-9.6.beta7] Describe your computer, operating system, etc. [sagelib-9.6.beta7] ************************************************************************ [sagelib-9.6.beta7] [sagelib-9.6.beta7] real 0m3,552s [sagelib-9.6.beta7] user 0m3,213s [sagelib-9.6.beta7] sys 0m0,318s make[3]: *** [Makefile:2910: sagelib-SAGE_VENV-no-deps] Error 1 make[2]: *** [Makefile:2910: /home/steffania/sage/local/var/lib/sage/venv-python3.8/var/lib/sage/installed/sagelib-9.6.beta7] Error 2 make[1]: *** [Makefile:2475: all-build] Error 2 make[1]: Leaving directory '/home/steffania/sage/build/make' real 0m7,981s user 0m7,634s sys 0m0,823s *************************************************************** Error building Sage. The following package(s) may have failed to build (not necessarily during this run of 'make all-build'): * package: sagelib-9.6.beta7 last build time: avril 7 11:59 log file: /home/steffania/sage/logs/pkgs/sagelib-9.6.beta7.log It is safe to delete any log files and build directories, but they contain information that is helpful for debugging build problems. WARNING: If you now run 'make' again, the build directory of the same version of the package will, by default, be deleted. Set the environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this. make: *** [Makefile:39: all-build] Error 1 *solution:* $ sage -pip install markupsafe==2.0.1 Collecting markupsafe==2.0.1 Downloading MarkupSafe-2.0.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (30 kB) Installing collected packages: markupsafe Attempting uninstall: markupsafe Found existing installation: MarkupSafe 2.1.1 Uninstalling MarkupSafe-2.1.1: Successfully uninstalled MarkupSafe-2.1.1 Successfully installed markupsafe-2.0.1 -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/77f323d3-b392-4c44-9ad0-bf53c02feda8n%40googlegroups.com.