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

[Bug]: Getting Started Fails #533

Open
usmcamp0811 opened this issue Mar 1, 2024 · 2 comments
Open

[Bug]: Getting Started Fails #533

usmcamp0811 opened this issue Mar 1, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@usmcamp0811
Copy link

Current Behavior

I used the template and did nix run and get the following error.

╰─🚧 nix run .\#        
[2024-02-29 21:13:42 jupyenv] needs to build JupyterLab.
Traceback (most recent call last):
  File "/nix/store/kzndcs6zwrsih1mnyf8x11hgh5yfy9c5-python3.10-jupyterlab-3.6.1/bin/.jupyter-lab-wrapped", line 9, in <module>
    sys.exit(main())
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyter_server/extension/application.py", line 598, in launch_instance
    subapp = _preparse_for_subcommand(cls, args)
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyter_server/extension/application.py", line 38, in _preparse_for_subcommand
    app.initialize_subcommand(subc, subargv)
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/traitlets/config/application.py", line 113, in inner
    return method(app, *args, **kwargs)
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/traitlets/config/application.py", line 726, in initialize_subcommand
    self.subapp.initialize(argv)
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/traitlets/config/application.py", line 113, in inner
    return method(app, *args, **kwargs)
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyter_core/application.py", line 252, in initialize
    self.migrate_config()
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyter_core/application.py", line 181, in migrate_config
    migrate()
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyter_core/migrate.py", line 241, in migrate
    with open(os.path.join(env["jupyter_config"], "migrated"), "w", encoding="utf-8") as f:
OSError: [Errno 30] Read-only file system: '/nix/store/ka67xr3wflf6r3x26mplrzc665y1lix4-jupyter-dir/config/migrated'

Expected Behavior

Jupyter Lab starts?

Steps To Reproduce

nix flake init --template github:tweag/jupyenv
nix run .#

OS

NixOS

Version

23.11

Additional Context

No response

Relevant log output

No response

@usmcamp0811 usmcamp0811 added the bug Something isn't working label Mar 1, 2024
@usmcamp0811
Copy link
Author

usmcamp0811 commented Mar 2, 2024

So I've been playing with this some this evening and I've been able to get it to work on 3 other computers, 2 running Nix and the third running Arch. I have a feeling this is a shell environment variable problem but I'm not certain and its odd cause all my Nix boxes are based on the same flake. If I get it on the problem system working I'll report what I did.

@tomasel
Copy link

tomasel commented Nov 4, 2024

I've encountered the same problem and haven't been able to find a solution yet.
The only thing I can think of is that I executed nixos-rebuild --update switch right before nix run and the output I got is the exact same as for @usmcamp0811 :

[2024-11-04 10:53:05 jupyenv] needs to build JupyterLab.
Traceback (most recent call last):
  File "/nix/store/kzndcs6zwrsih1mnyf8x11hgh5yfy9c5-python3.10-jupyterlab-3.6.1/bin/.jupyter-lab-wrapped", line 9, in <module>
    sys.exit(main())
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyter_server/extension/application.py", line 598, in launch_instance
    subapp = _preparse_for_subcommand(cls, args)
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyter_server/extension/application.py", line 38, in _preparse_for_subcommand
    app.initialize_subcommand(subc, subargv)
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/traitlets/config/application.py", line 113, in inner
    return method(app, *args, **kwargs)
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/traitlets/config/application.py", line 726, in initialize_subcommand
    self.subapp.initialize(argv)
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/traitlets/config/application.py", line 113, in inner
    return method(app, *args, **kwargs)
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyter_core/application.py", line 252, in initialize
    self.migrate_config()
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyter_core/application.py", line 181, in migrate_config
    migrate()
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyter_core/migrate.py", line 241, in migrate
    with open(os.path.join(env["jupyter_config"], "migrated"), "w", encoding="utf-8") as f:
OSError: [Errno 30] Read-only file system: '/nix/store/ka67xr3wflf6r3x26mplrzc665y1lix4-jupyter-dir/config/migrated'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants