I installed JupyterHub following doc here. JupyterHub and lab are working fine.
Now when I try to install jupyterlab_git it fails .
Steps followed -
- sudo conda install -c conda-forge jupyterlab jupyterlab-git
as per docThe following NEW packages will be INSTALLED:
:
jupyterlab-git conda-forge/noarch::jupyterlab-git-0.23.3-pyhd8ed1ab_0
: -
Downloading and Extracting Packages
:
jupyterlab-git-0.23. | 256 KB | ############################################################################# | 100%Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Login as lab user But did not find Git extension . Tried to enable extension from UI but failed with âPermission errorâ and message of pip install or conda install.
As per troubleshooting guide checked
(jupyerhubenv) [ec2-user@ip-xxx home]$ jupyter server extension list
Config dir: /home/ec2-user/.jupyterConfig dir: /opt/jupyterhub/etc/jupyter
jupyterlab enabled
- Validating jupyterlabâŚ
jupyterlab 3.0.7 OK
nbclassic enabled
- Validating nbclassicâŚ
nbclassic OKConfig dir: /usr/local/etc/jupyter
(jupyerhubenv) [ec2-user@ip-xxxxx home]$ jupyter labextension list
JupyterLab v2.2.9
Known labextensions:
app dir: /opt/miniconda3/share/jupyter/lab
@jupyterlab/git v0.23.3 enabled OK
nbdime-jupyterlab v2.0.1 enabled OKBuild recommended, please run
jupyter lab build
:
nbdime-jupyterlab needs to be included in build
@jupyterlab/git needs to be included in build
Trying to enable extension fails
(jupyerhubenv) [ec2-user@ip-xxxx home]$ sudo /opt/jupyterhub/bin/jupyter serverextension enable --py jupyterlab_
git
Traceback (most recent call last):
File â/opt/jupyterhub/bin/jupyter-serverextensionâ, line 8, in
sys.exit(main())
File â/opt/jupyterhub/lib64/python3.7/site-packages/jupyter_core/application.pyâ, line 254, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File â/opt/jupyterhub/lib64/python3.7/site-packages/traitlets/config/application.pyâ, line 845, in launch_instance
app.start()
File â/opt/jupyterhub/lib64/python3.7/site-packages/notebook/serverextensions.pyâ, line 291, in start
super().start()
File â/opt/jupyterhub/lib64/python3.7/site-packages/jupyter_core/application.pyâ, line 243, in start
self.subapp.start()
File â/opt/jupyterhub/lib64/python3.7/site-packages/notebook/serverextensions.pyâ, line 208, in start
self.toggle_server_extension_python(arg)
File â/opt/jupyterhub/lib64/python3.7/site-packages/notebook/serverextensions.pyâ, line 197, in toggle_server_extension_python
m, server_exts = _get_server_extension_metadata(package)
File â/opt/jupyterhub/lib64/python3.7/site-packages/notebook/serverextensions.pyâ, line 325, in _get_server_extension_metadata
m = import_item(module)
File â/opt/jupyterhub/lib64/python3.7/site-packages/traitlets/utils/importstring.pyâ, line 38, in import_item
return import(parts[0])
ModuleNotFoundError: No module named âjupyterlab_gitâ(jupyerhubenv) [ec2-user@ip-xxx tmp]$ sudo ls /opt/miniconda3/share/jupyter/lab/extensions/
jupyterlab-git-0.23.3.tgz nbdime-jupyterlab-2.0.1.tgz.
I want to enable git extension for all users . Am I missing any step or making any obvious mistake.
regards,
Thomas