Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
billchen8888 opened this issue Jun 3, 2022 · 2 comments

Comments

@billchen8888
Copy link

billchen8888 commented Jun 3, 2022

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
Copy link

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

@aliceoleary0
Copy link

I have the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants