jupyenv
jupyenv copied to clipboard
[Bug]: Project fails to run on aarch64-linux
Current Behavior
Flake fails to start on arm64 Linux machine.
Expected Behavior
Jupyter notebook starts successfully when command is run.
Steps To Reproduce
$ nix flake init --template github:tweag/jupyterWith
warning: Using saved setting for 'extra-substituters = https://tweag-jupyter.cachix.org' from ~/.local/share/nix/trusted-settings.json.
warning: Using saved setting for 'extra-trusted-public-keys = tweag-jupyter.cachix.org-1:UtNH4Zs6hVUFpFBTLaA4ejYavPo5EFFqgd7G7FxGW9g=' from ~/.local/share/nix/trusted-settings.json.
wrote: /mnt/host_user/dev/deep-learning-with-python/flake.nix
wrote: /mnt/host_user/dev/deep-learning-with-python/kernels/python.nix
wrote: /mnt/host_user/dev/deep-learning-with-python/kernels
You have created a jupyterWith template.
Run nix run to immediately try it out.
See the jupyterWith documentation for more information.
https://github.com/tweag/jupyterWith/blob/main/docs/how-to.md
https://github.com/tweag/jupyterWith/blob/main/docs/tutorials.md
$ nix run
warning: Git tree '/mnt/host_user/dev/deep-learning-with-python' is dirty
warning: Using saved setting for 'extra-substituters = https://tweag-jupyter.cachix.org' from ~/.local/share/nix/trusted-settings.json.
warning: Using saved setting for 'extra-trusted-public-keys = tweag-jupyter.cachix.org-1:UtNH4Zs6hVUFpFBTLaA4ejYavPo5EFFqgd7G7FxGW9g=' from ~/.local/share/nix/trusted-settings.json.
warning: creating lock file '/mnt/host_user/dev/deep-learning-with-python/flake.lock'
warning: Git tree '/mnt/host_user/dev/deep-learning-with-python' is dirty
error: flake 'git+file:///mnt/host_user/dev/deep-learning-with-python' does not provide attribute 'apps.aarch64-linux.default', 'defaultApp.aarch64-linux', 'packages.aarch64-linux.default' or 'defaultPackage.aarch64-linux'
Version
$ uname -a
Linux kadabra-dev 5.15.77 #1-NixOS SMP Thu Nov 3 14:59:20 UTC 2022 aarch64 GNU/Linux
This is erroring on commit c67308ef555f100d589c8a0f7febfc02105600a0
Additional Context
No response
Relevant log output
No response
+1
@djacu I've tested this locally and it appears to work well if I add flake-utils.lib.system.aarch64-linux
to the list of systems. Since it's a quick fix any chance of having it?
https://github.com/tweag/jupyenv/blob/3ad2c9512c9efd586cf63adde454e734a8ce049c/flake.nix#L56-L57 https://github.com/tweag/jupyenv/blob/3ad2c9512c9efd586cf63adde454e734a8ce049c/template/flake.nix#L27-L28
/cc other potential maintainers, hope you don't mind, @MMesch @garbas
@djacu I've tested this locally and it appears to work well if I add
flake-utils.lib.system.aarch64-linux
to the list of systems. Since it's a quick fix any chance of having it?https://github.com/tweag/jupyenv/blob/3ad2c9512c9efd586cf63adde454e734a8ce049c/flake.nix#L56-L57
https://github.com/tweag/jupyenv/blob/3ad2c9512c9efd586cf63adde454e734a8ce049c/template/flake.nix#L27-L28
Can you send a PR?
Not currently, apologies, otherwise I would. It's not a mechanical limitation.