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: home-manager refused to evaluate due to broken python311 package k5test #5447

Closed
2 tasks done
imcom opened this issue May 24, 2024 · 5 comments
Closed
2 tasks done
Assignees
Labels
bug triage Issues or feature request that have not been triaged yet

Comments

@imcom
Copy link

imcom commented May 24, 2024

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

╰─ home-manager switch --show-trace                                                                                                                                                     ─╯
error:
       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:9:12:
            8|
            9|   strict = derivationStrict drvAttrs;
             |            ^
           10|

       … while evaluating derivation 'home-manager-generation'
         whose name attribute is located at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'buildCommand' of derivation 'home-manager-generation'
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/build-support/trivial-builders/default.nix:68:16:
           67|         enableParallelBuilding = true;
           68|         inherit buildCommand name;
             |                ^
           69|         passAsFile = [ "buildCommand" ]

       … while evaluating derivation 'activation-script'
         whose name attribute is located at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'text' of derivation 'activation-script'
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/build-support/trivial-builders/default.nix:103:16:
          102|       ({
          103|         inherit text executable checkPhase allowSubstitutes preferLocalBuild;
             |                ^
          104|         passAsFile = [ "text" ]

       … while calling 'mkCmd'
         at /Users/ij0723/.nix-defexpr/channels/home-manager/modules/home-environment.nix:666:17:
       … from call site
         at /Users/ij0723/.nix-defexpr/channels/home-manager/modules/lib/dag.nix:83:16:
       … while calling anonymous lambda
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/lib/attrsets.nix:1205:18:
         1204|         mapAttrs
         1205|           (name: value:
             |                  ^
         1206|             if isAttrs value && cond value

       … from call site
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/lib/attrsets.nix:1208:18:
         1207|             then recurse (path ++ [ name ]) value
         1208|             else f (path ++ [ name ]) value);
             |                  ^
         1209|     in

       … while calling anonymous lambda
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/lib/modules.nix:242:72:
          241|           # For definitions that have an associated option
          242|           declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
             |                                                                        ^
          243|

       … while evaluating the option `home.activation.checkFilesChanged.data':

       … while calling anonymous lambda
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/lib/modules.nix:824:28:
          823|         # Process mkMerge and mkIf properties.
          824|         defs' = concatMap (m:
             |                            ^
          825|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))

       … while evaluating definitions from `/Users/ij0723/.nix-defexpr/channels/home-manager/modules/files.nix':

       … from call site
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/lib/modules.nix:825:137:
          824|         defs' = concatMap (m:
          825|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
             |                                                                                                                                         ^
          826|         ) defs;

       … while calling 'dischargeProperties'
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/lib/modules.nix:896:25:
          895|   */
          896|   dischargeProperties = def:
             |                         ^
          897|     if def._type or "" == "merge" then

       … from call site
         at /Users/ij0723/.nix-defexpr/channels/home-manager/modules/files.nix:256:12:
       … while calling 'concatMapStrings'
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/lib/strings.nix:60:25:
           59|   */
           60|   concatMapStrings = f: list: concatStrings (map f list);
             |                         ^
           61|

       … while calling anonymous lambda
         at /Users/ij0723/.nix-defexpr/channels/home-manager/modules/files.nix:264:22:
       … from call site
         at /Users/ij0723/.nix-defexpr/channels/home-manager/modules/files.nix:264:25:
       … while calling anonymous lambda
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/lib/attrsets.nix:1205:18:
         1204|         mapAttrs
         1205|           (name: value:
             |                  ^
         1206|             if isAttrs value && cond value

       … from call site
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/lib/attrsets.nix:1208:18:
         1207|             then recurse (path ++ [ name ]) value
         1208|             else f (path ++ [ name ]) value);
             |                  ^
         1209|     in

       … while calling anonymous lambda
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/lib/modules.nix:242:72:
          241|           # For definitions that have an associated option
          242|           declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
             |                                                                        ^
          243|

       … while evaluating the option `home.file."Library/Fonts/.home-manager-fonts-version".onChange':

       … while calling anonymous lambda
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/lib/modules.nix:824:28:
          823|         # Process mkMerge and mkIf properties.
          824|         defs' = concatMap (m:
             |                            ^
          825|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))

       … while evaluating definitions from `/Users/ij0723/.nix-defexpr/channels/home-manager/modules/targets/darwin/fonts.nix':

       … from call site
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/lib/modules.nix:825:137:
          824|         defs' = concatMap (m:
          825|           map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
             |                                                                                                                                         ^
          826|         ) defs;

       … while calling 'dischargeProperties'
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/lib/modules.nix:896:25:
          895|   */
          896|   dischargeProperties = def:
             |                         ^
          897|     if def._type or "" == "merge" then

       … from call site
         at /Users/ij0723/.nix-defexpr/channels/home-manager/modules/targets/darwin/fonts.nix:22:13:
       … while calling 'concatMapStringsSep'
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/lib/strings.nix:116:5:
          115|     # List of input strings
          116|     list: concatStringsSep sep (map f list);
             |     ^
          117|

       … while calling 'escapeShellArg'
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/lib/strings.nix:454:20:
          453|   */
          454|   escapeShellArg = arg: "'${replaceStrings ["'"] ["'\\''"] (toString arg)}'";
             |                    ^
          455|

       … while evaluating derivation 'home-manager-fonts'
         whose name attribute is located at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'passAsFile' of derivation 'home-manager-fonts'
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/build-support/trivial-builders/default.nix:69:9:
           68|         inherit buildCommand name;
           69|         passAsFile = [ "buildCommand" ]
             |         ^
           70|           ++ (derivationArgs.passAsFile or [ ]);

       … while evaluating derivation 'python3.11-ansible-core-2.16.5'
         whose name attribute is located at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute '__impureHostDeps' of derivation 'python3.11-ansible-core-2.16.5'
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/stdenv/generic/make-derivation.nix:446:7:
          445|       __propagatedSandboxProfile = unique (computedPropagatedSandboxProfile ++ [ propagatedSandboxProfile ]);
          446|       __impureHostDeps = computedImpureHostDeps ++ computedPropagatedImpureHostDeps ++ __propagatedImpureHostDeps ++ __impureHostDeps ++ stdenv.__extraImpureHostDeps ++ [
             |       ^
          447|         "/dev/zero"

       … while calling anonymous lambda
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/stdenv/generic/make-derivation.nix:436:30:
          435|         computedPropagatedImpureHostDeps =
          436|           unique (concatMap (input: input.__propagatedImpureHostDeps or [])
             |                              ^
          437|             allPropagatedDependencies);

       … from call site
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/stdenv/generic/make-derivation.nix:321:59:
          320|       (map (drv: getDev drv.__spliced.hostHost or drv) (checkDependencyList "depsHostHostPropagated" depsHostHostPropagated))
          321|       (map (drv: getDev drv.__spliced.hostTarget or drv) (checkDependencyList "propagatedBuildInputs" propagatedBuildInputs))
             |                                                           ^
          322|     ]

       … while calling 'checkDependencyList''
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/stdenv/generic/make-derivation.nix:274:43:
          273|   checkDependencyList = checkDependencyList' [];
          274|   checkDependencyList' = positions: name: deps:
             |                                           ^
          275|     imap1

       … from call site
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/stdenv/generic/make-derivation.nix:275:5:
          274|   checkDependencyList' = positions: name: deps:
          275|     imap1
             |     ^
          276|       (index: dep:

       … while calling 'imap1'
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/lib/lists.nix:334:14:
          333|   */
          334|   imap1 = f: list: genList (n: f (n + 1) (elemAt list n)) (length list);
             |              ^
          335|

       … from call site
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/development/interpreters/python/mk-python-derivation.nix:299:29:
          298|
          299|     propagatedBuildInputs = validatePythonMatches "propagatedBuildInputs" (propagatedBuildInputs ++ dependencies ++ [
             |                             ^
          300|       # we propagate python even for packages transformed with 'toPythonApplication'

       … while calling anonymous lambda
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/development/interpreters/python/mk-python-derivation.nix:210:18:
          209|
          210|     in attrName: inputs: map (checkDrv attrName) inputs;
             |                  ^
          211|

       … while calling anonymous lambda
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/lib/lists.nix:1793:25:
         1792|   */
         1793|   unique = foldl' (acc: e: if elem e acc then acc else acc ++ [ e ]) [];
             |                         ^
         1794|

       … while evaluating derivation 'python3.11-ncclient-0.6.15'
         whose name attribute is located at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'propagatedBuildInputs' of derivation 'python3.11-ncclient-0.6.15'
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/stdenv/generic/make-derivation.nix:385:7:
          384|       depsHostHostPropagated      = elemAt (elemAt propagatedDependencies 1) 0;
          385|       propagatedBuildInputs       = elemAt (elemAt propagatedDependencies 1) 1;
             |       ^
          386|       depsTargetTargetPropagated  = elemAt (elemAt propagatedDependencies 2) 0;

       … while evaluating derivation 'python3.11-paramiko-3.4.0'
         whose name attribute is located at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'nativeBuildInputs' of derivation 'python3.11-paramiko-3.4.0'
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/stdenv/generic/make-derivation.nix:375:7:
          374|       depsBuildBuild              = elemAt (elemAt dependencies 0) 0;
          375|       nativeBuildInputs           = elemAt (elemAt dependencies 0) 1;
             |       ^
          376|       depsBuildTarget             = elemAt (elemAt dependencies 0) 2;

       … while evaluating derivation 'python3.11-gssapi-1.8.3'
         whose name attribute is located at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'nativeBuildInputs' of derivation 'python3.11-gssapi-1.8.3'
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/stdenv/generic/make-derivation.nix:375:7:
          374|       depsBuildBuild              = elemAt (elemAt dependencies 0) 0;
          375|       nativeBuildInputs           = elemAt (elemAt dependencies 0) 1;
             |       ^
          376|       depsBuildTarget             = elemAt (elemAt dependencies 0) 2;

       … from call site
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/stdenv/generic/check-meta.nix:511:13:
          510|           else if valid == "no" then (
          511|             handleEvalIssue { inherit meta attrs; } { inherit (validity) reason errormsg; }
             |             ^
          512|           )

       … while calling 'handleEvalIssue'
         at /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/stdenv/generic/check-meta.nix:269:38:
          268|
          269|   handleEvalIssue = { meta, attrs }: { reason , errormsg ? "" }:
             |                                      ^
          270|     let

       error: Package ‘python3.11-k5test-0.10.4’ in /nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source/pkgs/development/python-modules/k5test/default.nix:45 is marked as broken, refusing to evaluate.

Maintainer CC

No response

System information

- system: `"aarch64-darwin"`
 - host os: `Darwin 23.4.0, macOS 14.4.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.20.5`
 - nixpkgs: `/nix/store/0kl2p60mvnpscnza21p8583sz3f60jxf-source`
@imcom imcom added bug triage Issues or feature request that have not been triaged yet labels May 24, 2024
@devusb
Copy link

devusb commented May 24, 2024

I was having this issue when my nixpkgs was at NixOS/nixpkgs@5710852, but I just switched to unstable-small which is at NixOS/nixpkgs@2ee89d5 and my configuration seems to build now.

@mradalbert
Copy link

It is fixed by NixOS/nixpkgs@09c7cd1

@mradalbert
Copy link

I have opened backport PR to fix this: NixOS/nixpkgs#315062

@mradalbert
Copy link

fixed on release-24.05

@imcom
Copy link
Author

imcom commented Jun 2, 2024

confirmed fixed
Thanks a lot!

@imcom imcom closed this as completed Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues or feature request that have not been triaged yet
Projects
None yet
Development

No branches or pull requests

6 participants