Coder Social home page Coder Social logo

Comments (8)

jwhendy avatar jwhendy commented on May 18, 2024

Dammit. I just searched on and off all day for incantations of "jupyterlab extension install hangs" and similar and didn't see this. I guess I should have checked here first, but assumed it was a fringe/unique problem.

I've got the exact same issue. Looks like this indefinitely when I try to install:

$ jupyter labextension install @jupyterlab/plotly-extension
> /usr/bin/npm pack @jupyterlab/plotly-extension
npm notice 
npm notice 📦  @jupyterlab/[email protected]
npm notice === Tarball Contents === 
npm notice 0     package         
npm notice 2.4kB README.md       
npm notice 0     lib             
npm notice 1.2kB package.json    
npm notice 0     style           
npm notice 1.3kB lib/index.d.ts  
npm notice 4.7kB lib/index.js    
npm notice 546B  style/index.css 
npm notice 1.7kB style/plotly.svg
npm notice === Tarball Details === 
npm notice name:          @jupyterlab/plotly-extension            
npm notice version:       0.16.0                                  
npm notice filename:      jupyterlab-plotly-extension-0.16.0.tgz  
npm notice package size:  4.3 kB                                  
npm notice unpacked size: 11.8 kB                                 
npm notice shasum:        8426a56c6fc3818c4015df33db5c164edafacf91
npm notice integrity:     sha512-MLDMSe5cXUx/U[...]14383uemZUL3g==
npm notice total files:   9                                       
npm notice 
jupyterlab-plotly-extension-0.16.0.tgz
> node /home/jwhendy/.local/lib/python3.6/site-packages/jupyterlab/staging/yarn.js install
yarn install v1.5.1
(node:22182) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
info No lockfile found.
[1/4] Resolving packages...
⠂ @jupyterlab/plotly-extension@file:../extensions/jupyterlab-plotly-extension-0.16.0.tgz

When I Ctrl-c I get this:

^CTraceback (most recent call last):
  File "/home/jwhendy/.local/bin/jupyter-labextension", line 11, in <module>
    sys.exit(main())
  File "/home/jwhendy/.local/lib/python3.6/site-packages/jupyter_core/application.py", line 266, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/home/jwhendy/.local/lib/python3.6/site-packages/traitlets/config/application.py", line 658, in launch_instance
    app.start()
  File "/home/jwhendy/.local/lib/python3.6/site-packages/jupyterlab/labextensions.py", line 213, in start
    super(LabExtensionApp, self).start()
  File "/home/jwhendy/.local/lib/python3.6/site-packages/jupyter_core/application.py", line 255, in start
    self.subapp.start()
  File "/home/jwhendy/.local/lib/python3.6/site-packages/jupyterlab/labextensions.py", line 75, in start
    logger=self.log, command=command)
  File "/home/jwhendy/.local/lib/python3.6/site-packages/jupyterlab/commands.py", line 259, in build
    command=command, clean_staging=clean_staging)
  File "/home/jwhendy/.local/lib/python3.6/site-packages/jupyterlab/commands.py", line 400, in build
    self._run(['node', YARN_PATH, 'install'], cwd=staging)
  File "/home/jwhendy/.local/lib/python3.6/site-packages/jupyterlab/commands.py", line 1278, in _run
    return proc.wait()
  File "/home/jwhendy/.local/lib/python3.6/site-packages/jupyterlab/process.py", line 108, in wait
    time.sleep(1.)
KeyboardInterrupt

Misc details:

$ jupyter --version
4.4.0
$ jupyter notebook --version
5.4.1
$ jupyter lab --version
0.32.1
$ node --version
v10.0.0
$ npm --version
6.0.0

>>> plotly.__version__
'2.5.1'

from jupyter-renderers.

dvandagriff avatar dvandagriff commented on May 18, 2024

I have tried this on 2 different machines (My work Mac and home PC, both using Anaconda distro) and getting the same results.

from jupyter-renderers.

gnestor avatar gnestor commented on May 18, 2024

Can you try @realjumy's solution: #132

from jupyter-renderers.

gnestor avatar gnestor commented on May 18, 2024

I am able to reproduce this using Node 10. Downgrading to Node 9 fixes the "hang on resolving packages step of yarn install".

from jupyter-renderers.

jwhendy avatar jwhendy commented on May 18, 2024

The install works for me using Node 9 as well. On arch, I downgraded to 2018-03 versions from the Arch Linux Archive:

from jupyter-renderers.

dvandagriff avatar dvandagriff commented on May 18, 2024

Downgraded to node 6 using Brew from #132 and it worked with no issues. Thank!!!

from jupyter-renderers.

gnestor avatar gnestor commented on May 18, 2024

Good to hear!

from jupyter-renderers.

jwhendy avatar jwhendy commented on May 18, 2024

Can I clarify that this is closed because it's a duplicate of #132? (Not that I need to re-downgrade the default nodejs version indefinitely?) :)

from jupyter-renderers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.