jupyenv icon indicating copy to clipboard operation
jupyenv copied to clipboard

[Bug]: Missing aarch64-darwin attributes (support for MacOS M1)

Open rober-m opened this issue 3 years ago • 6 comments

Current Behavior

First of all, thank you for the package!

I'm still learning about it, but I use nix-darwin and home-manager in an M1 MackBook Pro.

I followed the installation instructions and got this error:

error: flake 'jupyterWith' does not provide attribute 'apps.aarch64-darwin.default', 'defaultApp.aarch64-darwin', 'packages.aarch64-darwin.default' or 'defaultPackage.aarch64-darwin'

Is it because aarch64-darwin is not supported? Will it ever be?

Expected Behavior

The notebook runs.

Steps To Reproduce

Follow the installation instructions.

OS

- system: `"aarch64-darwin"`
 - host os: `Darwin 22.1.0, macOS 13.0.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.11.1`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Version

Can't tell

Additional Context

No response

Relevant log output

No response

rober-m avatar Dec 05 '22 14:12 rober-m

I get similar behavior with an Intel Mac:

error: flake 'path:XYZ' does not provide attribute 'apps.x86_64-darwin.default', 'defaultApp.x86_64-darwin', 'packages.x86_64-darwin.default' or 'defaultPackage.x86_64-darwin'

chapmanbe avatar Dec 08 '22 11:12 chapmanbe

Any workaround on this ?

cherryramatisdev avatar Feb 22 '23 17:02 cherryramatisdev

Looks like not even x86_64-darwin is currently supported: https://github.com/tweag/jupyenv/blob/3ad2c9512c9efd586cf63adde454e734a8ce049c/flake.nix#L55-L59

It's a little bit strange that Getting Started contains instructions for installing Nix on macOS though.

zimt28 avatar Apr 18 '23 11:04 zimt28

Enabling it for aarch64-darwin worked for me... I wonder if the TODO is outdated?

diff --git c/flake.nix w/flake.nix
index 47948a0..9f20ca2 100644
--- c/flake.nix
+++ w/flake.nix
@@ -55,7 +55,7 @@
     SYSTEMS = [
       flake-utils.lib.system.x86_64-linux
       # TODO - Fix linux first and then get macos working.
-      # flake-utils.lib.system.x86_64-darwin
+      flake-utils.lib.system.aarch64-darwin
     ];
 
     kernelLib = import ./lib/kernels.nix {inherit self lib;};

kamalmarhubi avatar Apr 24 '23 18:04 kamalmarhubi

➜ nix run
warning: Git tree '/Users/richard.banyi/Developer/nix-project-flakes' is dirty
error: attribute 'aarch64-darwin' missing

       at /nix/store/nvss7vjwjdq6prxfwf24swzksn4f6cvm-source/jupyenv/flake.nix:32:18:

           31|       system: let
           32|         inherit (jupyenv.lib.${system}) mkJupyterlabNew;
             |                  ^
           33|         jupyterlab = mkJupyterlabNew ({...}: {
(use '--show-trace' to show detailed location information)

richban avatar Aug 26 '23 09:08 richban

Any fix yet?

rootid avatar Sep 17 '23 23:09 rootid