jupyterlab / jupyterlab-git

A Git extension for JupyterLab
BSD 3-Clause "New" or "Revised" License
1.45k stars 313 forks source link

The versions of the JupyterLab Git server frontend and backend do not match. #923

Closed edgBR closed 3 years ago

edgBR commented 3 years ago

Description

Dear colleagues, we were rolling back our jupyterlab version from 3.0.0 to 2.2.9 as some of our users reported some problems with some extensions and also it was messing up with our RStudio Server Pro launcher.

After rebuilding jupyterlab we are getting the following error:

image

Reproduce

This does not make sense as:

/
(base) root@xxxxxxxxx:/home/xxxxxxxx# jupyter labextension list

JupyterLab v2.2.9
Known labextensions:
   app dir: /home/xxxxxxx/anaconda3/share/jupyter/lab
        @jupyter-widgets/jupyterlab-manager v2.0.0  enabled  OK
        @jupyterlab/git v0.24.0  enabled  OK
        @jupyterlab/toc v4.0.0  enabled  OK
        @krassowski/jupyterlab-lsp v2.1.4  enabled  OK
        @lckr/jupyterlab_variableinspector v0.5.1  enabled  OK
        @mohirio/jupyterlab-horizon-theme v2.0.0  enabled  OK
        @yeebc/jupyterlab_neon_theme v3.0.1  enabled  OK
        jupyterlab-plotly v4.14.3  enabled  OK
        jupyterlab-tailwind-theme v0.4.4  enabled  OK
        jupyterlab_theme_onedark v1.0.2  enabled  OK
        nbdime-jupyterlab v2.0.1  enabled  OK
        plotlywidget v4.14.3  enabled  OK

pip list output:

jupyter-client                    6.1.12
jupyter-contrib-core              0.3.3
jupyter-core                      4.7.1
jupyter-lsp                       0.9.3
jupyter-nbextensions-configurator 0.4.1
jupyter-packaging                 0.7.12
jupyter-server                    1.6.0
jupyter-tensorboard               0.2.0
jupyterlab                        2.2.9
jupyterlab-git                    0.24.0
jupyterlab-pygments               0.1.2
jupyterlab-server                 1.2.0
jupyterlab-widgets                1.0.0
(base) root@xxxxxxxxxxxxxxxxx:/home/xxxxxxxxx# pip show jupyterlab-git
Name: jupyterlab-git
Version: 0.24.0
Summary: A server extension for JupyterLab's git extension
Home-page: https://github.com/jupyterlab/jupyterlab-git
Author: Jupyter Development Team
Author-email: None
License: BSD
Location: /home/xxxxxxxxxx/anaconda3/lib/python3.7/site-packages
Requires: nbdime, pexpect, notebook, packaging
Required-by:

Why the extension is complaining a mismatch between the python package and jupyterlab plugin if these ones are the same?

welcome[bot] commented 3 years ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

fcollonval commented 3 years ago

Hey @edgBR

Could you check in /home/xxxxxxx/anaconda3/share/jupyter/lab/extensions that you only have one git extension archive.

You could try running the following commands to rebuild JupyterLab:

jupyter lab clean
jupyter lab build
edgBR commented 3 years ago

Hi @fcollonval


(base) root@xxxxxxxxxx:/home/xxxxxxxxxxxx# jupyter lab clean
[LabCleanApp] Cleaning /home/xxxxxxxxxxxxx/anaconda3/share/jupyter/lab...
[LabCleanApp] Removing staging...
[LabCleanApp] Success!
(base) root@xxxxxxxxxxxxxxxxx/home/xxxxxxx# jupyter lab build
[LabBuildApp] JupyterLab 2.2.9
[LabBuildApp] Building in /home/xxxxxxxx/anaconda3/share/jupyter/lab
[LabBuildApp] Building jupyterlab assets (build:prod:minimize)
(base) root@xxxxxx:/home/xxxxxx#

Same issue:

image

Any other suggestions?

fcollonval commented 3 years ago

Did you check the extension packages in /home/xxxxxxxxxxxxx/anaconda3/share/jupyter/lab/extensions to check there is only one version of each extensions?

What you can do to is to execute jupyter lab clean --all. But you will need to reinstall all extensions after running that command.

edgBR commented 3 years ago

Hi @fcollonval

As expected only one extension is available:

(base) root@ip-xxxxxxxx:/home/xxxxxxxxxxxx/anaconda3/share/jupyter/lab/extensions# ls
jupyterlab-git-0.24.0.tgz            jupyterlab_theme_onedark-1.0.2.tgz            krassowski-jupyterlab-lsp-2.1.3.tgz          nbdime-jupyterlab-2.0.1.tgz
jupyterlab-plotly-4.14.3.tgz         jupyterlab-toc-4.0.0.tgz                      lckr-jupyterlab_variableinspector-0.5.1.tgz  plotlywidget-4.14.3.tgz
jupyterlab-tailwind-theme-0.4.4.tgz  jupyter-widgets-jupyterlab-manager-2.0.0.tgz  mohirio-jupyterlab-horizon-theme-2.0.0.tgz   yeebc-jupyterlab_neon_theme-3.0.1.tgz
(base) root@xxxxxxxxxxxxxxxxxxx:/home/xxxxxxxxxxxx/anaconda3/share/jupyter/lab/extensions

Is jupyter lab clean --all is the only option?

BR /Edgar

fcollonval commented 3 years ago

You may try inspecting the Python side of the force. As the error tells you that the Python package has version 0.23.3 and not 0.24.0. Did you install the package using pip install -e at some points? If so, you probably still have a .egg-link file polluting your environment.

fcollonval commented 3 years ago

Closing this one as the recent release of 0.30.0 should avoid most of the user troubles.