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

JupyterLab Extension install fail #940

Closed
OliverEvans96 opened this issue Dec 4, 2016 · 1 comment
Closed

JupyterLab Extension install fail #940

OliverEvans96 opened this issue Dec 4, 2016 · 1 comment
Labels
resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Milestone

Comments

@OliverEvans96
Copy link
Contributor

I ran dev-install.sh as root and received the following error.
I'm on Arch Linux with node.js v7.2.0, and npm 4.0.3

$ sudo ./dev-install.sh
[sudo] password for oliver: 
4.0.3
npm is installed
pip 9.0.1 from /home/oliver/local/miniconda3/lib/python3.5/site-packages (python 3.5)
pip is installed
npm WARN lifecycle jupyter-js-widgets@2.0.11~postinstall: cannot run in wd %s %s (wd=%s) jupyter-js-widgets@2.0.11 npm dedupe /home/oliver/local/src/ipywidgets/jupyter-js-widgets
npm WARN prepublish-on-install As of npm@5, `prepublish` scripts will run only for `npm publish`.
npm WARN prepublish-on-install (In npm@4 and previous versions, it also runs for `npm install`.)
npm WARN prepublish-on-install See the deprecation note in `npm help scripts` for more information.
npm WARN lifecycle jupyter-js-widgets@2.0.11~prepublish: cannot run in wd %s %s (wd=%s) jupyter-js-widgets@2.0.11 npm run build /home/oliver/local/src/ipywidgets/jupyter-js-widgets
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN prepublish-on-install As of npm@5, `prepublish` scripts will run only for `npm publish`.
npm WARN prepublish-on-install (In npm@4 and previous versions, it also runs for `npm install`.)
npm WARN prepublish-on-install See the deprecation note in `npm help scripts` for more information.
npm WARN lifecycle widgetsnbextension@2.0.10~prepublish: cannot run in wd %s %s (wd=%s) widgetsnbextension@2.0.10 npm run build /home/oliver/local/src/ipywidgets/widgetsnbextension
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
Obtaining file:///home/oliver/local/src/ipywidgets/widgetsnbextension
  Running setup.py (path:/home/oliver/local/src/ipywidgets/widgetsnbextension/setup.py) egg_info for package from file:///home/oliver/local/src/ipywidgets/widgetsnbextension
    Running command python setup.py egg_info
    INFO:root:setup.py entered
    INFO:root:$PATH=/home/oliver/local/miniconda3/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/cuda/bin:/usr/lib/jvm/default/bin:/opt/mpich/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
    running egg_info
    writing widgetsnbextension.egg-info/PKG-INFO
    writing dependency_links to widgetsnbextension.egg-info/dependency_links.txt
    writing top-level names to widgetsnbextension.egg-info/top_level.txt
    writing requirements to widgetsnbextension.egg-info/requires.txt
    /home/oliver/local/miniconda3/lib/python3.5/site-packages/setuptools-23.0.0-py3.5.egg/setuptools/dist.py:285: UserWarning: Normalizing '2.0.0.beta6' to '2.0.0b6'
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'widgetsnbextension.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'widgetsnbextension.egg-info/SOURCES.txt'
  Source in /home/oliver/local/src/ipywidgets/widgetsnbextension has version 2.0.0b6, which satisfies requirement widgetsnbextension==2.0.0b6 from file:///home/oliver/local/src/ipywidgets/widgetsnbextension
Requirement already satisfied: notebook>=4.2.0 in /home/oliver/local/miniconda3/lib/python3.5/site-packages (from widgetsnbextension==2.0.0b6)
Requirement already satisfied: jinja2 in /home/oliver/local/miniconda3/lib/python3.5/site-packages (from notebook>=4.2.0->widgetsnbextension==2.0.0b6)
Requirement already satisfied: ipython-genutils in /home/oliver/local/miniconda3/lib/python3.5/site-packages (from notebook>=4.2.0->widgetsnbextension==2.0.0b6)
Requirement already satisfied: ipykernel in /home/oliver/local/miniconda3/lib/python3.5/site-packages (from notebook>=4.2.0->widgetsnbextension==2.0.0b6)
Requirement already satisfied: terminado>=0.3.3; sys_platform != "win32" in /home/oliver/local/miniconda3/lib/python3.5/site-packages (from notebook>=4.2.0->widgetsnbextension==2.0.0b6)
Requirement already satisfied: tornado>=4 in /home/oliver/local/miniconda3/lib/python3.5/site-packages (from notebook>=4.2.0->widgetsnbextension==2.0.0b6)
Requirement already satisfied: jupyter-client in /home/oliver/local/miniconda3/lib/python3.5/site-packages (from notebook>=4.2.0->widgetsnbextension==2.0.0b6)
Requirement already satisfied: nbformat in /home/oliver/local/miniconda3/lib/python3.5/site-packages (from notebook>=4.2.0->widgetsnbextension==2.0.0b6)
Requirement already satisfied: jupyter-core in /home/oliver/local/miniconda3/lib/python3.5/site-packages (from notebook>=4.2.0->widgetsnbextension==2.0.0b6)
Requirement already satisfied: nbconvert in /home/oliver/local/miniconda3/lib/python3.5/site-packages (from notebook>=4.2.0->widgetsnbextension==2.0.0b6)
Requirement already satisfied: traitlets in /home/oliver/local/miniconda3/lib/python3.5/site-packages (from notebook>=4.2.0->widgetsnbextension==2.0.0b6)
Requirement already satisfied: MarkupSafe in /home/oliver/local/miniconda3/lib/python3.5/site-packages (from jinja2->notebook>=4.2.0->widgetsnbextension==2.0.0b6)
Requirement already satisfied: ipython>=4.0.0 in /home/oliver/local/miniconda3/lib/python3.5/site-packages (from ipykernel->notebook>=4.2.0->widgetsnbextension==2.0.0b6)
Requirement already satisfied: pyzmq>=13 in /home/oliver/local/miniconda3/lib/python3.5/site-packages (from jupyter-client->notebook>=4.2.0->widgetsnbextension==2.0.0b6)
Requirement already satisfied: jsonschema!=2.5.0,>=2.4 in /home/oliver/local/miniconda3/lib/python3.5/site-packages (from nbformat->notebook>=4.2.0->widgetsnbextension==2.0.0b6)
Requirement already satisfied: decorator in /home/oliver/local/miniconda3/lib/python3.5/site-packages (from traitlets->notebook>=4.2.0->widgetsnbextension==2.0.0b6)
Requirement already satisfied: six in /home/oliver/local/miniconda3/lib/python3.5/site-packages (from traitlets->notebook>=4.2.0->widgetsnbextension==2.0.0b6)
Installing collected packages: widgetsnbextension
  Found existing installation: widgetsnbextension 2.0.0b6
    Uninstalling widgetsnbextension-2.0.0b6:
      Removing file or directory /home/oliver/local/miniconda3/lib/python3.5/site-packages/widgetsnbextension.egg-link
      Removing pth entries from /home/oliver/local/miniconda3/lib/python3.5/site-packages/easy-install.pth:
      Removing entry: /home/oliver/local/src/ipywidgets/widgetsnbextension
      Successfully uninstalled widgetsnbextension-2.0.0b6
  Running setup.py develop for widgetsnbextension
    Running command /home/oliver/local/miniconda3/bin/python -c "import setuptools, tokenize;__file__='/home/oliver/local/src/ipywidgets/widgetsnbextension/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps
    INFO:root:setup.py entered
    INFO:root:$PATH=/home/oliver/local/miniconda3/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/cuda/bin:/usr/lib/jvm/default/bin:/opt/mpich/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
    running develop
    running egg_info
    writing top-level names to widgetsnbextension.egg-info/top_level.txt
    writing dependency_links to widgetsnbextension.egg-info/dependency_links.txt
    writing widgetsnbextension.egg-info/PKG-INFO
    writing requirements to widgetsnbextension.egg-info/requires.txt
    /home/oliver/local/miniconda3/lib/python3.5/site-packages/setuptools-23.0.0-py3.5.egg/setuptools/dist.py:285: UserWarning: Normalizing '2.0.0.beta6' to '2.0.0b6'
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'widgetsnbextension.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'widgetsnbextension.egg-info/SOURCES.txt'
    running build_ext
    Creating /home/oliver/local/miniconda3/lib/python3.5/site-packages/widgetsnbextension.egg-link (link to .)
    Adding widgetsnbextension 2.0.0b6 to easy-install.pth file

    Installed /home/oliver/local/src/ipywidgets/widgetsnbextension
Successfully installed widgetsnbextension
Cleaning up...
Installing /home/oliver/local/src/ipywidgets/widgetsnbextension/widgetsnbextension/static -> jupyter-js-widgets
- Validating: OK

    To initialize this nbextension in the browser every time the notebook (or other app) loads:
    
          jupyter nbextension enable widgetsnbextension --py
    
Enabling notebook extension jupyter-js-widgets/extension...
      - Validating: OK
0.11.2
jupyter lab is installed

> jupyter-js-widgets@2.0.11 postinstall /home/oliver/local/src/ipywidgets/jupyterlab_widgets/node_modules/jupyter-js-widgets
> npm dedupe

npm ERR! Linux 4.8.10-1-ARCH
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "dedupe"
npm ERR! node v7.2.0
npm ERR! npm  v4.0.3
npm ERR! path /root/.npm/_locks
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall mkdir

npm ERR! Error: EACCES: permission denied, mkdir '/root/.npm/_locks'
npm ERR!  { Error: EACCES: permission denied, mkdir '/root/.npm/_locks'
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: '/root/.npm/_locks' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/oliver/local/src/ipywidgets/jupyterlab_widgets/node_modules/jupyter-js-widgets/npm-debug.log
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! Linux 4.8.10-1-ARCH
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v7.2.0
npm ERR! npm  v4.0.3
npm ERR! code ELIFECYCLE

npm ERR! jupyter-js-widgets@2.0.11 postinstall: `npm dedupe`
npm ERR! Exit status 243
npm ERR! 
npm ERR! Failed at the jupyter-js-widgets@2.0.11 postinstall script 'npm dedupe'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the jupyter-js-widgets package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm dedupe
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs jupyter-js-widgets
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls jupyter-js-widgets
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/oliver/local/src/ipywidgets/jupyterlab_widgets/npm-debug.log

Here's the npm-debug.log file:
npm-debug.log.txt

Thanks for the great package. I appreciate any insight anyone might have!

Thanks,
Oliver

@OliverEvans96
Copy link
Contributor Author

OliverEvans96 commented Dec 6, 2016

I ran it again not as root after:

pip uninstall widgetsnbextension ipywidgets

jupyter nbextension uninstall --py widgetsnbextension
jupyter nbextension uninstall --py --user widgetsnbextension
jupyter nbextension uninstall --py --sys-prefix widgetsnbextension

then run the dev-install instructions

As recommended by @SylvainCorlay in #662:

and it worked without issue!

@jasongrout jasongrout modified the milestone: 6.0 Mar 1, 2017
@github-actions github-actions bot added the resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label Feb 16, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Projects
None yet
Development

No branches or pull requests

2 participants