Apologies -- the related error occurs in Ubuntu 20.04 compiling sage-9.7 and
on the raspberry pi running Raspbian GNU/Linux 11 also compiling sage-9.7, and
after a successful build.
The configure command is source from $HOME/sage/sage-9.7 as follows.
export PATH=${HOME}/sage/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:
export SAGE_HOME=${HOME}/sage/sage-9.7
export SAGE_LOCAL=${HOME}/sage/local
#export SAGE_BUILD_DIR="$HOME/tmp/sage"
export MAKE="make -j4"
./configure --prefix=$SAGE_LOCAL --without-system-python3 \
--with-system-givaro=no --enable-d3js=yes --enable-gap3 --enable-gap_jupyter \
--enable-pari_galpol --enable-pari_jupyter --enable-pysingular --enable-python_igraph \
--enable-singular_jupyter --enable-lidia --enable-coxeter3 --enable-lie \
--enable-r_jupyter --enable-p_group_cohomology
A make build succeeds.
However this command fails:
sage -i jupyterlab_widgets
[sagelib-9.7] Installed /home/pi/sage/sage-9.7/src
[sagelib-9.7] error: [Errno 2] No such file or directory: '/home/pi/sage/local/lib/sage/ext_data/notebook-ipython'
[sagelib-9.7] error: subprocess-exited-with-error
The error is:
make: *** [Makefile:40: all-build] Error 1
Installing /home/pi/sage/local/lib/python3.10/site-packages/widgetsnbextension/static -> jupyter-js-widgets
Up to date: /home/pi/sage/local/share/jupyter/nbextensions/jupyter-js-widgets/extension.js.map
Up to date: /home/pi/sage/local/share/jupyter/nbextensions/jupyter-js-widgets/extension.js
A related error occurs when attempting to run show3d() in sage-9.7. This led to the following error.
```python
/home/flengyel/sage/sage-9.7/src/sage/repl/rich_output/display_manager.py:610: RichReprWarning: Exception in _rich_repr_ while displaying object: [Errno 2] No such file or directory: '/home/flengyel/sage/local/lib/sage/ext_data/threejs/threejs-version.txt'
warnings.warn(
```
I mention this because the fix in both cases is to copy the missing files to $HOME/sage/local/lib/sage/ext_data
-FL