timkpaine / jupyterlab_autoversion

Automatically version jupyter notebooks in JupyterLab
https://jupyterlab-autoversion.readthedocs.io
Apache License 2.0
75 stars 10 forks source link

Error after jupyter lab build version 3.0.7 Jupyterlab #41

Closed Jacques2101 closed 2 years ago

Jacques2101 commented 3 years ago

Describe the bug I tried to install Autoversion for jupyterlab 3.0.7 and follow the instruction ie:

pip install jupyterlab_autoversion
jupyter lab build  

but get an error after jupyter lab buildinstruction.

the error is:

[LabBuildApp] JupyterLab 3.0.7
[LabBuildApp] Building in /Users/jacques/opt/anaconda3/envs/jlb/share/jupyter/lab
[LabBuildApp] Building jupyterlab assets (production, minimized)
Build failed.
Troubleshooting: If the build failed due to an out-of-memory error, you
may be able to fix it by disabling the `dev_build` and/or `minimize` options.

If you are building via the `jupyter lab build` command, you can disable
these options like so:

jupyter lab build --dev-build=False --minimize=False

You can also disable these options for all JupyterLab builds by adding these
lines to a Jupyter config file named `jupyter_config.py`:

c.LabBuildApp.minimize = False
c.LabBuildApp.dev_build = False

If you don't already have a `jupyter_config.py` file, you can create one by
adding a blank file of that name to any of the Jupyter config directories.
The config directories can be listed by running:

jupyter --paths

Explanation:

- `dev-build`: This option controls whether a `dev` or a more streamlined
`production` build is used. This option will default to `False` (i.e., the
`production` build) for most users. However, if you have any labextensions
installed from local files, this option will instead default to `True`.
Explicitly setting `dev-build` to `False` will ensure that the `production`
build is used in all circumstances.

- `minimize`: This option controls whether your JS bundle is minified
during the Webpack build, which helps to improve JupyterLab's overall
performance. However, the minifier plugin used by Webpack is very memory
intensive, so turning it off may help the build finish successfully in
low-memory environments.

An error occured.
RuntimeError: npm dependencies failed to install
See the log file for details:  /var/folders/zh/p5f3ptld0pq2zys9y_ls3hcw0000gn/T/jupyterlab-debug-sw9vihwi.log

here is also the file jupyterlab-debug-sw9vihwi.log:

[LabBuildApp] Building in /Users/jacques/opt/anaconda3/envs/jlb/share/jupyter/lab
[LabBuildApp] Node v15.3.0

[LabBuildApp] Yarn configuration loaded.
[LabBuildApp] Building jupyterlab assets (production, minimized)
[LabBuildApp] > node /Users/jacques/opt/anaconda3/envs/jlb/lib/python3.8/site-packages/jupyterlab/staging/yarn.js install --non-interactive
[LabBuildApp] yarn install v1.21.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error An unexpected error occurred: "/Users/jacques/Library/Caches/Yarn/v6/npm-@jupyterlab-console-extension-3.0.4-cfdf0c9896924984ef854fef7155aba7570b30c9-integrity/node_modules/@jupyterlab/console-extension/.yarn-metadata.json: Unexpected end of JSON input".
info If you think this is a bug, please open a bug report with the information provided in "/Users/jacques/opt/anaconda3/envs/jlb/share/jupyter/lab/staging/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

[LabBuildApp] npm dependencies failed to install
[LabBuildApp] Traceback (most recent call last):

[LabBuildApp]   File "/Users/jacques/opt/anaconda3/envs/jlb/lib/python3.8/site-packages/jupyterlab/debuglog.py", line 47, in debug_logging
    yield

[LabBuildApp]   File "/Users/jacques/opt/anaconda3/envs/jlb/lib/python3.8/site-packages/jupyterlab/labapp.py", line 168, in start
    raise e

[LabBuildApp]   File "/Users/jacques/opt/anaconda3/envs/jlb/lib/python3.8/site-packages/jupyterlab/labapp.py", line 164, in start
    build(name=self.name, version=self.version,

[LabBuildApp]   File "/Users/jacques/opt/anaconda3/envs/jlb/lib/python3.8/site-packages/jupyterlab/commands.py", line 469, in build
    return handler.build(name=name, version=version, static_url=static_url,

[LabBuildApp]   File "/Users/jacques/opt/anaconda3/envs/jlb/lib/python3.8/site-packages/jupyterlab/commands.py", line 669, in build
    raise RuntimeError(msg)

[LabBuildApp] RuntimeError: npm dependencies failed to install

[LabBuildApp] Exiting application: JupyterLab

Desktop (please complete the following information):