jupyter / nbdime

Tools for diffing and merging of Jupyter notebooks.
http://nbdime.readthedocs.io
Other
2.67k stars 160 forks source link

nbdime extensions --enable --sys-prefix gives an error in the end "jupyter-labextension: error: unrecognized arguments: --sys-prefix" #622

Open billchen8888 opened 2 years ago

billchen8888 commented 2 years ago

I created a python3 virtual environment with the following steps:

python3 -m venv myvpython
source myvpython/bin/active
pip install --upgrade pip
pip install jupyterlab
pip install nbdime

When I try to enable the extensions, I run

jupyter-labextension: error: unrecognized arguments: --sys-prefix

and I get the following:

Enabling: nbdime
- Writing config: /root/myvpython3810/etc/jupyter
    - Validating...
      nbdime 3.1.1 OK
Installing /root/myvpython3810/lib/python3.8/site-packages/nbdime/notebook_ext -> nbdime
Up to date: /root/myvpython3810/share/jupyter/nbextensions/nbdime/index.js
Up to date: /root/myvpython3810/share/jupyter/nbextensions/nbdime/nbdime.yaml
- Validating: OK

    To initialize this nbextension in the browser every time the notebook (or other app) loads:

          jupyter nbextension enable nbdime --py --sys-prefix

Enabling notebook extension nbdime/index...
      - Validating: OK
usage: jupyter-labextension [-h] [--debug] [--show-config] [--show-config-json] [--generate-config] [-y] [--no-build] [--no-minimize] [--clean] [--splice-source]
                            [--log-level InstallLabExtensionApp.log_level] [--config InstallLabExtensionApp.config_file] [--app-dir InstallLabExtensionApp.app_dir]
                            [--dev-build [InstallLabExtensionApp.dev_build]] [--minimize InstallLabExtensionApp.minimize] [--debug-log-path InstallLabExtensionApp.debug_log_path]
                            [--pin-version-as InstallLabExtensionApp.pin]
                            [extra_args [extra_args ...]]
jupyter-labextension: **error: unrecognized arguments**: --sys-prefix

I run the the whole thing as regular user and don't have permission to the system level files. I wonder why I get the last error "nrecognized arguments". I following the steps as in https://nbdime.readthedocs.io/en/latest/extensions.html Do I miss anything? Thanks in advance.

dev-zero commented 2 years ago

similar error occurs with --user instead of --sys-prefix

aliceoleary0 commented 1 year ago

I have the same issue