Who8MyLunch / Jupyter_Video_Widget

Jupyter widget for an awesome HTML5 video player
MIT License
21 stars 8 forks source link

Jupyter labextension fails during install #7

Open CoyoteKampala opened 4 years ago

CoyoteKampala commented 4 years ago

During the installation process the lab extension fails:

jupyter labextension install jupyter-video

An error occured. ValueError: "jupyter-video" is not a valid npm package See the log file for details: /var/folders/lj/6ts0459j765fcjg2jyhb5qzr0000gn/T/jupyterlab-debug-gom6jnz7.log

Below my jupyter version details: jupyter core : 4.5.0 jupyter-notebook : 6.0.0 qtconsole : 4.5.1 ipython : 7.6.1 ipykernel : 5.1.1 jupyter client : 5.3.1 jupyter lab : 1.0.2 nbconvert : 5.5.0 ipywidgets : 7.5.0 nbformat : 4.4.0 traitlets : 4.3.2

stvogel commented 3 years ago

The log-file says:

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/jupyter-video - Not found
npm ERR! 404 
npm ERR! 404  'jupyter-video@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)

Even with this error, everything works in jupyter notebook. But when using the Example.ipynb with jupyter lab, I get:

Error displaying widget: model not found

when wid.display() is called. And I dont see jupyter-video in the list of extensions.

escorciav commented 3 years ago

@stvogel I got a similar error. Any patch?

I guess they delete the package from npmjs :sob:


Yarn configuration loaded.
> /home/SERILOCAL/v.castillo/install/bin/miniconda3/envs/sandbox/bin/npm pack jupyter-video
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/jupyter-video - Not found
npm ERR! 404 
npm ERR! 404  'jupyter-video@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/SERILOCAL/v.castillo/.npm/_logs/2021-03-12T17_49_30_607Z-debug.log

I try to build is as developer and got this in the last step to enable it for JupyterLab.

$ jupyter labextension install .
An error occured.
ValueError: "/home/SERILOCAL/v.castillo/install/jupyter/Jupyter_Video_Widget" is not a valid npm package
See the log file for details:  /tmp/jupyterlab-debug-86s63s9v.log
escorciav commented 3 years ago

ohhh I got what @stvogel meant.

We can compile the Jupyterlab extension, but it still doesn't work. However, it works in Jupyter!

BTW, the instructions should be

cd js
jupyter labextension install .

Tip For getting Jupyter notebook out of your JupyterLab server, just replace the lab, from the URL http://localhost:8888/lab, by tree :wink: