jwkvam / jupyterlab-vim

:neckbeard: Vim notebook cell bindings for JupyterLab
MIT License
975 stars 73 forks source link

Error on installation #61

Closed pdoak closed 6 years ago

pdoak commented 6 years ago

I get the following error on trying to install:

 ❯ jupyter labextension install jupyterlab_vim --debug                                                                                                                  [3:18:58 pm]
Searching ['/Users/xxx/Documents/Documents - xxx MacBook/test', '/Users/xxx/.jupyter', '/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
Looking for jupyter_config in /etc/jupyter
Looking for jupyter_config in /usr/local/etc/jupyter
Looking for jupyter_config in /usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/etc/jupyter
Looking for jupyter_config in /Users/pdd/.jupyter
Looking for jupyter_config in /Users/pdd/Documents/Documents - xx MacBook/test
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.61.dylib
  Referenced from: /usr/local/bin/node
  Reason: image not found
> /usr/local/bin/npm pack jupyterlab_vim
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.61.dylib
  Referenced from: /usr/local/bin/node
  Reason: image not found
Traceback (most recent call last):

  File "/usr/local/lib/python3.6/site-packages/jupyterlab/labextensions.py", line 71, in start
    ans = self.run_task()

  File "/usr/local/lib/python3.6/site-packages/jupyterlab/labextensions.py", line 100, in run_task
    for arg in self.extra_args

  File "/usr/local/lib/python3.6/site-packages/jupyterlab/labextensions.py", line 100, in <listcomp>
    for arg in self.extra_args

  File "/usr/local/lib/python3.6/site-packages/jupyterlab/commands.py", line 210, in install_extension
    return handler.install_extension(extension)

  File "/usr/local/lib/python3.6/site-packages/jupyterlab/commands.py", line 347, in install_extension
    info = self._install_extension(extension, tempdir)

  File "/usr/local/lib/python3.6/site-packages/jupyterlab/commands.py", line 1095, in _install_extension
    info = self._extract_package(extension, tempdir)

  File "/usr/local/lib/python3.6/site-packages/jupyterlab/commands.py", line 1135, in _extract_package
    raise ValueError(msg % source)

ValueError: "jupyterlab_vim" is not a valid npm package

Errored, use --debug for full output:
ValueError: "jupyterlab_vim" is not a valid npm package
ah- commented 6 years ago

I think I had something similar when updating, try updating your node installation.

pdoak commented 6 years ago

Thanks @ah- . Updated and now get this error:

 jupyter labextension install jupyterlab_vim --debug                                                                                                                  [6:43:38 pm]
Searching ['/Users/xxx/Documents/Documents - xxx MacBook Pro/test', '/Users/xxx/.jupyter', '/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
Looking for jupyter_config in /etc/jupyter
Looking for jupyter_config in /usr/local/etc/jupyter
Looking for jupyter_config in /usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/etc/jupyter
Looking for jupyter_config in /Users/xxx/.jupyter
Looking for jupyter_config in /Users/xxx/Documents/Documents - xxx MacBook Pro/test
> /usr/local/bin/npm pack jupyterlab_vim
npm notice
npm notice 📦  jupyterlab_vim@0.9.0
npm notice === Tarball Contents ===
npm notice 1.3kB  package.json
npm notice 1.3kB  History.md
npm notice 1.1kB  LICENSE
npm notice 3.3kB  README.md
npm notice 229B   lib/index.d.ts
npm notice 20.4kB lib/index.js
npm notice 0      style/index.css
npm notice === Tarball Details ===
npm notice name:          jupyterlab_vim
npm notice version:       0.9.0
npm notice filename:      jupyterlab_vim-0.9.0.tgz
npm notice package size:  6.3 kB
npm notice unpacked size: 27.6 kB
npm notice shasum:        0faf1eddbfe018b591529e002fa73b161d021153
npm notice integrity:     sha512-uJbqfo48YqJXs[...]LTIvboLhlIGcg==
npm notice total files:   7
npm notice
jupyterlab_vim-0.9.0.tgz
Traceback (most recent call last):

  File "/usr/local/lib/python3.6/site-packages/jupyterlab/labextensions.py", line 71, in start
    ans = self.run_task()

  File "/usr/local/lib/python3.6/site-packages/jupyterlab/labextensions.py", line 100, in run_task
    for arg in self.extra_args

  File "/usr/local/lib/python3.6/site-packages/jupyterlab/labextensions.py", line 100, in <listcomp>
    for arg in self.extra_args

  File "/usr/local/lib/python3.6/site-packages/jupyterlab/commands.py", line 210, in install_extension
    return handler.install_extension(extension)

  File "/usr/local/lib/python3.6/site-packages/jupyterlab/commands.py", line 347, in install_extension
    info = self._install_extension(extension, tempdir)

  File "/usr/local/lib/python3.6/site-packages/jupyterlab/commands.py", line 1112, in _install_extension
    raise ValueError(msg)

ValueError:
"jupyterlab_vim@0.9.0" is not compatible with the current JupyterLab
Conflicting Dependencies:
JupyterLab              Extension            Package
>=0.15.4-0 <0.16.0-0    >=0.18.0-0 <0.19.0-0 @jupyterlab/application
>=0.15.5-0 <0.16.0-0    >=0.18.0-0 <0.19.0-0 @jupyterlab/notebook

Errored, use --debug for full output:
ValueError:
"jupyterlab_vim@0.9.0" is not compatible with the current JupyterLab
Conflicting Dependencies:
JupyterLab              Extension            Package
>=0.15.4-0 <0.16.0-0    >=0.18.0-0 <0.19.0-0 @jupyterlab/application
>=0.15.5-0 <0.16.0-0    >=0.18.0-0 <0.19.0-0 @jupyterlab/notebook
ah- commented 6 years ago

That looks like a version mismatch - you'll need to either update your JupyterLab to 0.34 or install an older version of jupyterlab-vim. See https://github.com/jwkvam/jupyterlab-vim/blob/master/History.md.

pdoak commented 6 years ago

Updated to JupyterLab 0.34 and it all worked. Thank you.