Jupyter Lab extensions fail to build
See original GitHub issueI am attempting to install Plotly extensions to the Jupyter Lab environment as described in the “JupyterLab Support (Python 3.5+)” instructions here.
Whenever I attempt a build, or a jupyterlab extension install ...
without the --nobuild
option, installation fails. The trouble comes from npm
, but I cannot find any information about this error.
error Couldn't find any versions for "@types/d3" that matches "^[object Object]"
For more information on the problem, this is the result of an attempted build:
$ jupyter lab build
[LabBuildApp] JupyterLab 1.2.6
[LabBuildApp] Building in /usr/local/share/jupyter/lab
[LabBuildApp] Building jupyterlab assets (build:prod:minimize)
An error occured.
RuntimeError: npm dependencies failed to install
See the log file for details: ...
These are the contents of the log file:
[LabBuildApp] Building in /usr/local/share/jupyter/lab
[LabBuildApp] Yarn configuration loaded.
[LabBuildApp] Node v13.8.0
[LabBuildApp] Building jupyterlab assets (build:prod:minimize)
[LabBuildApp] > node /usr/local/lib/python3.7/site-packages/jupyterlab/staging/yarn.js install --non-interactive
[LabBuildApp] yarn install v1.15.2
[1/5] Validating package.json...
[2/5] Resolving packages...
warning jupyterlab-plotly > plotly.js > regl-splom > left-pad@1.3.0: use String.prototype.padStart()
warning jupyterlab-plotly > plotly.js > regl-error2d > bubleify > buble > os-homedir@2.0.0: This is not needed anymore. Use `require('os').homedir()` instead.
error Couldn't find any versions for "@types/d3" that matches "^[object Object]"
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[LabBuildApp] npm dependencies failed to install
...
I successfully installed plotly and d3 with npm
.
I am running Python 3.7.6, Jupyter Lab 1.2.6, IPyWidgets 7.5.1, Yarn 1.22.0, and Node 13.8.0.
All Python packages were installed using pip
.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:11
- Comments:30 (12 by maintainers)
Top Results From Across the Web
Jupyter lab failed to build - extensions
I am trying to install extensions to Jupyter Lab on my Mac but it always fails to build. Example with jupyterlab_variableinspector.
Read more >Build failed with 500, please run 'jupyter lab ... - Stack Overflow
Using terminal, try jupyter lab build , which will produce an output on your AppData\Local\Temp folder (if you are on Windows).
Read more >JupyterLab failed to build - done - Prodigy Support
Hi everyone, I'm trying to install jupyterlab-prodigy and I've been following the instructions/googling errors with no help.
Read more >Extension Tutorial — JupyterLab 3.6.0b0 documentation
Build and install the extension for development¶ ... Your new extension project has enough code in it to see it working in your...
Read more >JupyterLab TensorFlow 2.3 Build Failed with 524 - Issue Tracker
Build failed with 524. ... If you specifically intended to install a source extension, please run 'jupyter lab build' on the server for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK I’ve pushed up versions 1.5.2 of the extensions, so that should resolve the current issue!
The root cause of this problem appears to be a bad version of https://www.npmjs.com/package/@types/plotly.js which is something we depend on but do not maintain.
In principle I could just pin the version to a known-working one here: https://github.com/plotly/plotly.py/blob/master/packages/javascript/jupyterlab-plotly/package.json#L35 and release versions 1.5.2 of our extensions. I will try to do this tonight (Pacific Time).