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

OSError: [Errno 30] Read-only file system: '/nix/store/-python3.8-jupyterlab-2.1.4/share/jupyter/lab/extensions' #38

Open
InLaw opened this issue Aug 13, 2020 · 0 comments

Comments

@InLaw
Copy link

InLaw commented Aug 13, 2020

JupyterLab (like VScode) lives from extensions
but these need to be installed and afterwards it needs a rebuild (for proper integration)


same as with mach-nix


after entering in shell (with nix-shell shell.nix)

jupyter lab build

[LabBuildApp] JupyterLab 2.1.4
[LabBuildApp] Building in /nix/store/xbknapnh3ms8q83hgwld1qq8r9lg16cp-python3.8-jupyterlab-2.1.4/share/jupyter/lab
[LabBuildApp] Building jupyterlab assets (build:prod:minimize)
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` (ie 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.
OSError: [Errno 30] Read-only file system: '/nix/store/xbknapnh3ms8q83hgwld1qq8r9lg16cp-python3.8-jupyterlab-2.1.4/share/jupyter/lab/extensions'
See the log file for details:  /run/user/1000/jupyterlab-debug-9wbcu_nq.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant