I am encountering a recurring issue when trying to launch Jupyter Lab on WSL2 with ROOT installed.

Hello,

I am encountering a recurring issue when trying to launch Jupyter Lab on WSL2 with ROOT installed.
cat /etc/os-release:
PRETTY_NAME=“Ubuntu 22.04.2 LTS”
NAME=“Ubuntu”
VERSION_ID=“22.04”
VERSION=“22.04.2 LTS (Jammy Jellyfish)”

When I attempt to start it, I receive the following error message:

Both `sys_prefix` and `user` level settings are read-only, cannot auto-migrate `disabledExtensions` to `lockedExtensions`
Traceback (most recent call last):
  File "/home/konoma/.local/bin/jupyter-lab", line 8, in <module>
    sys.exit(main())
  File "/home/konoma/.local/lib/python3.10/site-packages/jupyter_server/extension/application.py", line 616, in launch_instance
    serverapp = cls.initialize_server(argv=args)
  File "/home/konoma/.local/lib/python3.10/site-packages/jupyter_server/extension/application.py", line 586, in initialize_server
    serverapp.initialize(
  File "/home/konoma/.local/lib/python3.10/site-packages/traitlets/config/application.py", line 118, in inner
    return method(app, *args, **kwargs)
  File "/home/konoma/.local/lib/python3.10/site-packages/jupyter_server/serverapp.py", line 2727, in initialize
    super().initialize(argv=argv)
  File "/home/konoma/.local/lib/python3.10/site-packages/traitlets/config/application.py", line 118, in inner
    return method(app, *args, **kwargs)
  File "/home/konoma/.local/lib/python3.10/site-packages/jupyter_core/application.py", line 256, in initialize
    self.migrate_config()
  File "/home/konoma/.local/lib/python3.10/site-packages/jupyter_core/application.py", line 185, in migrate_config
    migrate()
  File "/home/konoma/.local/lib/python3.10/site-packages/jupyter_core/migrate.py", line 243, in migrate
    with Path.open(Path(env["jupyter_config"], "migrated"), "w", encoding="utf-8") as f:
  File "/usr/lib/python3.10/pathlib.py", line 1119, in open
    return self._accessor.open(self, mode, buffering, encoding, errors,
PermissionError: [Errno 13] Permission denied: '/home/konoma/local/root/etc/notebook/migrated'

This might not be an issue of Jupyter, but ROOT. I tried to re-build and re-install ROOT again, then I’ve succeeded to run Jupyter. However, when I re-run Jupyter, I saw the same error. If I skipped source /path/to/thisroot.sh , the jupyter well be started.

If there are any additional details or settings that would be helpful to provide, please let me know. Thank you for your assistance.

Hi,

Thanks for the post and welcome to the ROOT Community!
Indeed this looks like an unwanted feature of Jupyter. A quick search on the web brought me to discussions like this one Unable to run Jupyter Lab after installing it on a read-only filesystem · Issue #15461 · jupyterlab/jupyterlab · GitHub .
Have you tried following such leads already?

Best,
Danilo

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.